Skip to content

Faster graphic matroid parity: Breaking the nm time complexity barrier

Tatsuya Terao

cs.DSarXiv:2611.02287

Abstract

In the graphic matroid parity problem, we are given an undirected multigraph G=(V,E) with n vertices, together with a partition of E into m 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)-time algorithm of Micali--Vazirani~[FOCS'80], and graphic matroid intersection admits 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(n2 m)-time algorithm, and its O(nm)-time implementation by Gabow--Stallmann~[ICALP'85] had long remained the best known bound, except in very dense regimes where m=ω(n3), in which case the algebraic O(n4)-time algorithm of Cheung--Lau--Leung~[SODA'11 \& TALG'14] is faster. We present a randomized O(n3/2 m + n m)-time algorithm for graphic matroid parity. This is the first algorithm to break the 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) and in very dense regimes where m = Ω(n3.5). In particular, when m=Θ(n2), our algorithm runs in O(n2.5) time, which nearly matches the O(n2.5)-time bounds of Micali--Vazirani for graph matching and of Gabow--Xu for graphic matroid intersection in this regime.

Create a lesson