AlgorithmsGraphsEdit on GitHubEdit history
Hopcroft–Karp Algorithm
1973
An algorithm that finds a maximum matching in a bipartite graph in O(E√V) time by repeatedly building a layered graph of shortest augmenting paths with BFS and augmenting along a maximal set of vertex-disjoint shortest paths found with DFS.
Origin
John E. Hopcroft, Richard M. Karp (1973). An $n^{5/2} $ Algorithm for Maximum Matchings in Bipartite Graphs. SIAM Journal on Computing 2(4).doi:10.1137/0202019 — checked against Crossref, 2026-11-08
Lineage
Algorithms 4 · Relations 3
Parent algorithms
Where it came from
Breadth-First Search1945
Structural analysisEach phase uses BFS to build the layered graph of shortest augmenting paths.
Dinic's Algorithm1970
Structural analysisIts phase structure of finding a blocking flow in a layered graph matches Dinic's algorithm, of which it can be viewed as a bipartite-matching specialization.
Notable implementations
Paths checked against the GitHub default branch
- networkx/networkx/networkx/algorithms/bipartite/matching.pyPython
- scipy/scipy/scipy/sparse/csgraph/_matching.pyxCython
- jgrapht/jgrapht/jgrapht-core/src/main/java/org/jgrapht/alg/matching/HopcroftKarpMaximumCardinalityBipartiteMatching.javaJava
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…