Data Structures & AlgorithmsVery hardGATE CSE · Advanced

In a flow network with capacities S->A 10, S->B 8, A->B 5, A->C 7, B->D 10, C->D 4, C->T 9, D->T 10, what is the maximum flow from S to T?

  1. A. 18
  2. B. 19
  3. C. 15
  4. D. 17

Correct answer: D. 17

The cut separating {S, A, B} from {C, D, T} has capacity A->C 7 + B->D 10 = 17, and 17 units can be routed, so max flow = min cut = 17.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic