Data Structures & AlgorithmsVery hardGATE CS

What is the maximum flow from S to T in the network with directed capacities A→B (15), A→T (2), B→T (10), C→A (2), C→B (13), C→T (9), S→B (13), S→T (8)?

  1. A. 21
  2. B. 29
  3. C. 20
  4. D. 18

Correct answer: D. 18

Augment along residual paths until none remains; the value 18 equals the capacity of a minimum S–T cut (max-flow min-cut). The total out of S (21) and into T (29) are only upper bounds.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic