Back to the 2024 paper

Module 3: Graph and Tree Algorithms

20242m

Which algorithm is typically used in maximum flow problems?
(i) Kruskal's Algorithm
(ii) Floyd-Warshall
(iii) Ford-Fulkerson
(iv) Prim's Algorithm

Worked SolutionAI Assisted

Answer: (iii) Ford-Fulkerson

Explanation:

  • Maximum Flow problem: given network with capacities c(u,v)c(u,v), find flow ff maximizing value from ss to tt respecting capacity and conservation.
  • Ford-Fulkerson method (and Edmonds-Karp O(VE2)O(VE^2) implementation, Dinic, Push-relabel) repeatedly finds augmenting paths in residual graph and augments until none remain; correctness via max-flow min-cut theorem.
  • Kruskal/Prim = MST, Floyd-Warshall = APSP, not flow.

Correct choice: (iii) Ford-Fulkerson (also Edmonds-Karp, Dinic are refinements).

Similar questions

Student FinanceWeb Platform

Pocketly — Personal Finance for Students

Keep your hostel and college expenses under control. Track accounts, log spending in seconds, and stay within your monthly budget.