Data Structures & AlgorithmsVery hardProduct company OA

What is the maximum flow from S to T in the network with capacities S→A 10, S→B 5, A→B 15, A→T 6, B→T 10?

  1. A. 16
  2. B. 21
  3. C. 15
  4. D. 11

Correct answer: C. 15

The cut {S} → {A, B, T} has capacity 10 + 5 = 15, so the flow cannot exceed 15; it is achieved by S→A 10 (6 to T, 4 to B) and S→B 5, with B→T carrying 9. The cut into T (6 + 10 = 16) is larger, so it is not the bottleneck; 21 just adds edges out of A and B.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic