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 (14), A→T (4), C→B (4), C→T (15), S→A (6), S→B (7), S→C (10), S→T (4)?

  1. A. 27
  2. B. 23
  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 (27) and into T (23) are only upper bounds.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic