Data Structures & AlgorithmsVery hardGATE CS · Product-company placement

What is the maximum flow from S to T in the network with directed capacities A→C (5), B→A (10), B→C (13), B→T (9), C→T (12), S→A (14), S→B (3), S→T (9)?

  1. A. 26
  2. B. 30
  3. C. 17
  4. D. 20

Correct answer: C. 17

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

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic