Data Structures & AlgorithmsVery hardGATE CS · ICPC regional

A flow network has source S and sink T, with directed arcs and capacities in brackets: S→B (7), S→T (6), A→B (5), A→T (3), E→B (2), B→C (3), C→A (9), C→E (3). What is the maximum flow from S to T?

  1. A. 13
  2. B. 6
  3. C. 9
  4. D. 2

Correct answer: C. 9

Edmonds–Karp (augmenting paths with residual capacities) gives maximum flow 9, which equals the minimum cut capacity. Sending along a single best path only carries 6; the total out of S is 13; and minimising the number of cut arcs (ignoring capacity) gives 2.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic