Data Structures & AlgorithmsHardICPC regional · flow
Problem: What is the running time of Ford-Fulkerson when augmenting paths are found by DFS with integer capacities?
- A. O(V^3) always
- B. O(E log V) always
- C. O(2^V)
- 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
- Problem: Which algorithm finds the maximum subarray sum in O(n log n) by splitting the array and handling the crossing case?
- Problem: What does the Pisano period of m describe?
- Problem: Which characterisation of bipartite graphs is correct?
- Problem: What does the Erdos-Szekeres theorem state?
- Problem: What does Dilworth's theorem say about a finite partially ordered set?
- Problem: What is the time complexity of range-assign and range-sum queries with a lazy segment tree?