arXiv:2610.40591cs.DSOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.40591

Maximum Cardinality Matching in n2+o(1)n^{2+o(1)} Time

George Z. Li, Jason Li, Junkai Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We consider the maximum cardinality matching problem in general graphs, and give an n2+o(1)n^{2+o(1)}-time algorithm for the problem. Our work builds on recent work on combinatorial algorithms for maximum flow and extends the techniques to skew-symmetric flow problems which capture general matchings as a special case.

Concurrent Work: OpenAI released an m1+o(1)m^{1+o(1)}-time algorithm for the same problem on October 6, 2026. We first obtained our result the day before this announcement and the techniques seem orthogonal. We believe our results are independently interesting, giving a simpler combinatorial algorithm for general matchings.

Acknowledgments: Sanjeev Khanna and Junkai Song mentioned skew-symmetric flows as an approach towards general matchings algorithm when the first author was visiting NYU in February 2026. Since then, the authors have discussed the approach in this paper with several humans (Aaron Bernstein and Isaac Hair) and several non-humans (GPT 5.5, 5.6, and 6).

1 Introduction

In recent years, there has been tremendous progress in designing faster algorithms for classical problems in graph algorithms. From maximum flow and min-cost flow [CKL +^{+}22, BBL +^{+}25, HJS26] to minimum cut [ALPS23, HLRW24, FLSW26] to shortest paths [BNWN22, DMM +^{+}25, HLLZ26], there have been numerous breakthroughs on designing almost-linear time algorithms for many classical graph problems. One problem which remained untouched was the maximum matching problem in general graphs, where the classical O(mn)O(m\sqrt{n})-time algorithm [MV80] remains the fastest in sparse graphs and matrix-multiplication based algorithms [MS04] remain fastest on dense graphs. Our main result is an improvement on dense graphs:

Theorem 1. Given a unweighted general graph G with n vertices, we can compute a maximum matching of G in n2+o(1)n^{2+o(1)} time with high probability.

In fact, our algorithm extends to the maximum integral symmetric flow problem on simple graphs, i.e., graphs with no parallel edges between any two vertices.

Theorem 2. Given a simple, directed, skew-symmetric graph G with n vertices, and two symmetric vertices s and s′s', we can compute a maximum integer skew-symmetric flow from s to s′s' in n2+o(1)n^{2+o(1)} time with high probability.