TY - GEN
T1 - On Finding ℓ-Th Smallest Perfect Matchings
AU - El Maalouly, Nicolas
AU - Haslebacher, Sebastian
AU - Taubner, Adrian
AU - Wulf, Lasse
PY - 2025
Y1 - 2025
N2 - Given an undirected weighted graph G and an integer k, Exact-Weight Perfect Matching (EWPM) is the problem of finding a perfect matching of weight exactly k in G. In this paper, we study EWPM and its variants. The EWPM problem is famous, since in the case of unary encoded weights, Mulmuley, Vazirani, and Vazirani showed almost 40 years ago that the problem can be solved in randomized polynomial time. However, up to this date no derandomization is known. Our first result is a simple deterministic algorithm for EWPM that runs in time nO(ℓ), where ℓ is the number of distinct weights that perfect matchings in G can take. In fact, we show how to find an ℓ-th smallest perfect matching in any weighted graph (even if the weights are encoded in binary, in which case EWPM in general is known to be NP-complete) in time nO(ℓ) for any integer ℓ. Similar next-to-optimal variants have also been studied recently for the shortest path problem. For our second result, we extend the list of problems that are known to be equivalent to EWPM. We show that EWPM is equivalent under a weight-preserving reduction to the Exact Cycle Sum problem (ECS) in undirected graphs with a conservative (i.e. no negative cycles) weight function. To the best of our knowledge, we are the first to study this problem. As a consequence, the latter problem is contained in RP if the weights are encoded in unary. Finally, we identify a special case of EWPM, called BCPM, which was recently studied by El Maalouly, Steiner and Wulf. We show that BCPM is equivalent under a weight-preserving transformation to another problem recently studied by Schlotter and Sebő as well as Geelen and Kapadia: the Shortest Odd Cycle problem (SOC) in undirected graphs with conservative weights. Finally, our nO(ℓ) algorithm works in this setting as well, identifying a tractable special case of SOC, BCPM, and ECS.
AB - Given an undirected weighted graph G and an integer k, Exact-Weight Perfect Matching (EWPM) is the problem of finding a perfect matching of weight exactly k in G. In this paper, we study EWPM and its variants. The EWPM problem is famous, since in the case of unary encoded weights, Mulmuley, Vazirani, and Vazirani showed almost 40 years ago that the problem can be solved in randomized polynomial time. However, up to this date no derandomization is known. Our first result is a simple deterministic algorithm for EWPM that runs in time nO(ℓ), where ℓ is the number of distinct weights that perfect matchings in G can take. In fact, we show how to find an ℓ-th smallest perfect matching in any weighted graph (even if the weights are encoded in binary, in which case EWPM in general is known to be NP-complete) in time nO(ℓ) for any integer ℓ. Similar next-to-optimal variants have also been studied recently for the shortest path problem. For our second result, we extend the list of problems that are known to be equivalent to EWPM. We show that EWPM is equivalent under a weight-preserving reduction to the Exact Cycle Sum problem (ECS) in undirected graphs with a conservative (i.e. no negative cycles) weight function. To the best of our knowledge, we are the first to study this problem. As a consequence, the latter problem is contained in RP if the weights are encoded in unary. Finally, we identify a special case of EWPM, called BCPM, which was recently studied by El Maalouly, Steiner and Wulf. We show that BCPM is equivalent under a weight-preserving transformation to another problem recently studied by Schlotter and Sebő as well as Geelen and Kapadia: the Shortest Odd Cycle problem (SOC) in undirected graphs with conservative weights. Finally, our nO(ℓ) algorithm works in this setting as well, identifying a tractable special case of SOC, BCPM, and ECS.
KW - Derandomization
KW - Exact Cycle Sum
KW - Exact Matching
KW - Exact-Weight Perfect Matching
KW - Perfect Matching
KW - Shortest Odd Cycle
KW - k-th Best Solution
KW - l-th Largest Solution
KW - l-th Smallest Solution
U2 - 10.4230/LIPIcs.ESA.2025.19
DO - 10.4230/LIPIcs.ESA.2025.19
M3 - Article in proceedings
SN - 978-3-95977-395-9
T3 - Leibniz International Proceedings in Informatics, LIPIcs
BT - Proceedings of 33rd Annual European Symposium on Algorithms
PB - Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik, Germany
T2 - 33<sup>rd</sup> Annual European Symposium on Algorithms
Y2 - 15 September 2025 through 17 September 2025
ER -