Data Structures & AlgorithmsHardICPC regional · matching
Problem: What is the time complexity of the Hopcroft-Karp algorithm for maximum matching on V vertices and E edges?
- A. O(V^3)
- B. O(E^2)
- C. O(V log V)
- D. O(E sqrt(V))
Correct answer: D. O(E sqrt(V))
Each phase is O(E) and there are O(sqrt V) phases, giving the O(E sqrt V) bound.
More Coding Interview Problems questions
- Problem: Which technique gives the answer to 'minimum number of platforms' by sorting events?
- Problem: Which of these is the standard O(n log n) algorithm for the longest increasing subsequence?
- Problem: What is the standard complexity of computing all pairs of shortest paths in a graph with V vertices using repeated squaring of…
- Problem: Which result says that every planar graph is 5-colourable?
- Problem: What is the purpose of the 'lowest common multiple of the array' technique in competitive programming?
- Problem: In counting sort, what limits its use on a large input?