Gabow's Cardinality Matching Algorithm in General Graphs: Implementation and Experiments
Abstract
It is known since 1975 (HK75) that maximum cardinality matchings in bipartite graphs with n nodes and m edges can be computed in time O(n m). Asymptotically faster algorithms were found in the last decade and maximum cardinality bipartite matchings can now be computed in near-linear time~NearlyLinearTimeBipartiteMatching, AlmostLinearTimeMaxFlow,AlmostLinearTimeMinCostFlow. For general graphs, the problem seems harder. Algorithms with running time O(n m) were given in~MV80,Vazirani94,Vazirani12,Vazirani20,Vazirani23,Goldberg-Karzanov,GT91,Gabow:GeneralMatching. Mattingly and Ritchey~Mattingly-Ritchey and Huang and Stein~Huang-Stein discuss implementations of the Micali-Vazirani Algorithm. We describe an implementation of Gabow's algorithm~Gabow:GeneralMatching in C++ based on LEDA~LEDAsystem,LEDAbook and report on running time experiments. On worst-case graphs, the asymptotic improvement pays off dramatically. On random graphs, there is no improvement with respect to algorithms that have a worst-case running time of O(n m). The performance seems to be near-linear. The implementation is available open-source.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.