An Experimental Evaluation of Maximum Weighted Matching Algorithms: Edmonds, Gabow, and Scaling on General Graphs
Abstract
Maximum weighted matching is a classic problem in combinatorial optimization. Edmonds gave the first polynomial time algorithm for the problem on general graphs; the fastest algorithms are Gabow's, which runs in time for general weights, and that of Duan, Pettie and Su, which runs in time for integer weights. We compare three algorithms: Edmonds, a blossom search organized as in Galil, Micali and Gabow (1986) with one lazily pruned queue of candidate edges; Gabow, the same search with the supporting forest and tree-blossom merging of Gabow (2018); and Scaling, the Hybrid scaling algorithm of Duan, Pettie and Su (2018). To the best of our knowledge, Gabow and Scaling are the first implementations of Gabow's candidate structure and of the Hybrid algorithm. Edmonds and Gabow break ties by the same rule and perform the same search, so their differences stem from the data structure. On graphs from SuiteSparse and random graphs with up to 55 million vertices, Gabow was slower on 74 of 75 graphs, by up to 39%, but faster on all 24 structured graphs that we built from dense bipartite or odd-cycle blocks, by 4 to 53%, and it used 1.2 to 2.0 times as much memory. On 50 graphs that admit maximum-weight perfect matchings, Scaling was the fastest on all 29 Erdős-Rényi graphs, 2.6 to 11.8 times faster than Edmonds, whereas Edmonds was fastest on random geometric graphs, by a factor of 26 to 33, and on clique and biclique blocks. Instrumented runs trace the overhead of Gabow to tearing down search trees, the slow Erdős-Rényi seeds of Edmonds and Gabow to repeated contraction of large blossoms, and the slowdown of Scaling on geometric graphs to longer searches and the dismantling of deeply nested blossoms. Our implementations and data are available at https://github.com/AzizFaraj/maximum-weight-matching.
Create a lesson
Metadata
- Comments
- 42 pages, 14 figures
Related papers
Parameterized Algorithms for Obstruction Hitting with Exact Weight Constraint
Shared title terminologycs.DSMadhumita Kundu, Soumi Nandi, Ashutosh Rai et al.
Row-Private Symmetric Cone Programming: Scale-Efficient Algorithm and Lower Bound
Shared title terminologycs.DSDeming Chu, Ruizhe Zhang
O(1)-Competitive Stochastic Online Metric Matching in General Metrics
Shared title terminologycs.DSJittat Fakcharoenphol, Pasin Manurangsi, Phanu Vajanopath
Near-Linear Time Maximum Weight Clique for Objects Inscribed in a Circle
Shared title terminologycs.DSJaehyun Koo, Dario Moschetti
A deterministic O(n\log n) algorithm for fixed-link shortest paths in concave Monge graphs
Shared title terminologycs.DSShucheng Chi, Jiayi Lian
Maximum Letter-Duplicated and Longest Run Subsequences: Algorithms, Approximation, and Interval-Selection Connections
Shared title terminologycs.DSRiccardo Dondi, Mohammad Mehdi Hosseinzadeh, Adrian Miclăuş et al.