Data Structures & AlgorithmsVery hardICPC regional · algorithm theory

Problem: What is the complexity of Dinic's algorithm on a unit-capacity bipartite matching graph with V vertices and E edges?

  1. A. O(V^2)
  2. B. O(E log V)
  3. C. O(E sqrt(V))
  4. D. O(V E^2)

Correct answer: C. O(E sqrt(V))

Unit capacities make Dinic run in O(E sqrt(V)) (Hopcroft-Karp bound), which is the standard matching bound.

More Coding Interview Problems questions

Exams that ask this topic