arXiv:2611.02287cs.DSNov 2026

Manuscript Offprint

arXiv:2611.02287

Faster graphic matroid parity: Breaking the nmnm time complexity barrier

Tatsuya Terao

Abstract

In the graphic matroid parity problem, we are given an undirected multigraph G=(V,E)G = (V, E) with nn vertices, together with a partition of EE into mm pairs of distinct edges, and the goal is to find a maximum-cardinality collection of pairs whose union is a forest. This problem generalizes both graph matching and graphic matroid intersection. Graph matching admits the celebrated O~(nm)\tilde{O}(\sqrt{nm})-time algorithm of Micali-Vazirani [FOCS'80], and graphic matroid intersection admits o(nm)o(nm)-time algorithms due to Gabow-Stallmann [ICALP'85] and Gabow-Xu [FOCS'89]. In contrast, for graphic matroid parity, Gabow-Stallmann [FOCS'84 & Combinatorica'86] gave an O(n2m)O(n^2m)-time algorithm, and its O~(nm)\tilde{O}(nm)-time implementation by Gabow-Stallmann [ICALP'85] had long remained the best known bound, except in very dense regimes where m=ω(n3)m = \omega(n^3), in which case the algebraic O~(n4)\tilde{O}(n^4)-time algorithm of Cheung-Lau-Leung [SODA'11 & TALG'14] is faster.

We present a randomized O~(n3/2m+nm)\tilde{O}(n^{3/2}\sqrt{m}+\sqrt{nm})-time algorithm for graphic matroid parity. This is the first algorithm to break the O(nm)O(nm)-time complexity barrier for this problem outside the very dense regime. Moreover, it improves over the previous bounds except in very sparse regimes where m=O~(n)m = \tilde{O}(n) and in very dense regimes where m=Ω~(n3.5)m = \tilde{\Omega}(n^{3.5}). In particular, when m=Θ(n2)m = \Theta(n^2), our algorithm runs in O~(n2.5)\tilde{O}(n^{2.5}) time, which nearly matches the O~(n2.5)\tilde{O}(n^{2.5})-time bounds of Micali-Vazirani for graph matching and of Gabow-Xu for graphic matroid intersection in this regime.

*Research Institute for Mathematical Sciences, Kyoto University. E-mail: ttatsuya@kurims.kyoto-u.ac.jp

Contents

1 Introduction 1
1.1 Additional related work 3
2 Preliminaries 4
3 Technical overview 5
4 Fast exact algorithm for graphic matroid parity (Proof of Theorem 1) 13
5 Minimum Covers: Definitions and Structural Properties 14
6 Adapting Assadi's framework to graphic matroid parity 16
7 Modifying Assadi's framework for a faster implementation 22
8 Fast (1 - ε)-approximation algorithm for graphic matroid parity 26
9 Fast span-membership tests via patterns (Proof of Lemma 30) 27
9.1 Patterns 28
9.2 Preliminaries on data structures 30
9.3 Fast enumeration of all patterns 31
9.4 Fast span-membership tests 33
A Matroids 46
B Gabow-Stallmann's algorithm 46
C Handling indices with large ∣Mi∣|M_i| 48

References (100)

Couldn't load all references. Reload the page to try again.