Data Structures & AlgorithmsVery hardGATE CS · Product-company placement

What is the maximum flow from S to T in the network with directed capacities A→B (15), A→C (9), A→T (12), B→T (12), C→B (12), S→A (6), S→B (9), S→C (4)?

  1. A. 19
  2. B. 24
  3. C. 18
  4. D. 22

Correct answer: C. 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 (19) and into T (24) are only upper bounds.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic