Overview
Hopcroft-Karp layers unmatched vertices with BFS, then uses DFS to find a maximal set of vertex-disjoint shortest augmenting paths.
Finds maximum bipartite matching by augmenting many shortest paths per phase.
Compact metadata for implementation and discovery.
Hopcroft-Karp layers unmatched vertices with BFS, then uses DFS to find a maximal set of vertex-disjoint shortest augmenting paths.
Quick facts
Runtime and memory behavior at a glance.
Best
O(E sqrt(V))
Average
O(E sqrt(V))
Worst
O(E sqrt(V))
Space
O(V + E)
M = M xor pathsFlips matched and unmatched edges along all selected augmenting paths.
Highlight active nodes, discovered edges, and the graph structure produced by each step.
Hopcroft-Karp should be used with the assumptions and tradeoffs of bipartite Matching in mind.
What each reference supports for this entry.
Textbook support for Hopcroft-Karp's algorithm family, complexity framing, and standard implementation concepts.
Open sourceReference for Hopcroft-Karp's graph matching model and augmenting-path or blossom-style concepts.
Original reference for finding maximum bipartite matchings by phases of shortest augmenting paths.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Hopcroft-Karp uses BFS layers to find groups of augmenting paths.
Both accelerate augmenting-path search with layered structure.