Data Structures & AlgorithmsVery hardICPC regional · matching
Problem: Which statement about Hopcroft-Karp is correct?
- A. It computes maximum bipartite matching in O(E sqrt(V))
- B. It is exponential in the number of vertices
- C. It works only for complete bipartite graphs
- D. It computes minimum vertex cover only
Correct answer: A. It computes maximum bipartite matching in O(E sqrt(V))
Augmenting along a maximal set of shortest paths per phase gives O(sqrt V) phases.
More Coding Interview Problems questions
- Problem: What does the Gale-Shapley algorithm guarantee for stable matching with n men and n women?
- Problem: How many states does a bitmask DP over subsets of n = 15 items have?
- Problem: Which statement about the Floyd-Warshall algorithm's memory usage for V vertices is correct?
- Problem: Which problem asks for the minimum number of edges to add to make a graph 2-edge-connected?
- Problem: What does 'lazy propagation' in a segment tree guarantee for a range-add update?
- Problem: Which result is the basis of Mo's algorithm's complexity analysis?