Data Structures & AlgorithmsHardICPC regional · flow

Problem: What is the running time of Ford-Fulkerson when augmenting paths are found by DFS with integer capacities?

  1. A. O(V^3) always
  2. B. O(E log V) always
  3. C. O(2^V)
  4. D. O(E * f), where f is the maximum flow value

Correct answer: D. O(E * f), where f is the maximum flow value

Each augmentation adds at least 1 unit, so the number of augmentations is bounded by the flow value f.

More Coding Interview Problems questions

Exams that ask this topic