Almost-linear-time exact matching and prescribed-degree factors in general graphs

A randomized algorithm finds a largest matching in any graph in almost-linear time, the paper claims.

1 paper September 24, 2026 Explained by AI

A matching pairs up vertices of a network along its links, using each vertex at most once. The task is to find a matching with as many pairs as possible. This paper claims a randomized algorithm that does this for any graph in time close to the size of the input. The time bound holds even on unlucky runs, and the answer is right with probability at least 2/3. No Lean formalization is listed.

First step
1965
Jack Edmonds, blossom algorithm for general graphs
Significance
Major
If the proof holds, it brings exact general-graph matching to almost-linear time, matching what flows gave for bipartite graphs.
Trust
Claimed, not checked
Field
Theoretical computer science
1 paper

The explanation

Take five people sitting in a ring, each friends with the two beside them. You want to pair friends off, with no one in two pairs. A set of such pairs is a matching [a set of links with no shared endpoint]. The best you can do here is two pairs. With five people, one is always left out.

Odd rings like this are the classic trap. Try a triangle and give each of its three links a weight of ½. Every person then has total weight 1, so the per-person limits are met. The weights add up to 1.5, yet a real matching in a triangle has just one pair. Rules about single people miss the odd-set problem.

For graphs without odd rings, called bipartite, matching is a kind of network flow. Recent flow algorithms run in almost-linear time [time close to the size of the input]. That gives almost-linear exact bipartite matching. General graphs require extra control of odd blocks. Edmonds handled odd blocks in 1965 by shrinking them into single points, called blossoms. The Micali–Vazirani algorithm runs in time of order m√n, with n vertices and m links.

Put numbers on that. Take a network with a million vertices and three million links. The input has about four million items. The m√n bound is 3,000,000 × 1,000, or three billion steps. Algebraic methods run at matrix-multiplication speed instead, which helps most on dense graphs.

This paper claims one randomized algorithm that finds a largest matching in (n + m) raised to the power 1 + o(1) steps. The o(1) is an extra exponent that shrinks toward zero as graphs grow. The paper gives no numerical value for it. The time bound holds on every run, even unlucky ones. With probability at least 2/3, the output is an explicit list of matched links.

The same guarantees cover a wider task. Each vertex gets a target number of links, between zero and its full count. The algorithm decides whether some set of links hits every target exactly, and finds one if so.

The hard part sits in a core subproblem: a perfect matching in a graph where every vertex has at most three links. The algorithm keeps a current matching organized around odd blocks. When the structure changes, it must repair this record without rescanning every odd block. The paper does this with layered accounts that allow small temporary debts, then pays them back with bounded work. It also builds on the almost-linear flow framework for its search directions.

How sure is this? No Lean formalization is listed for this paper in the openai/math release. So no computer proof checker has checked it. No specialist review has been published.

What it doesn't show. This does not handle weighted matching, and it does not give a deterministic algorithm.

Where it came from

This result comes from an unreleased OpenAI model, published in the openai/math release on 6 October 2026.

Hype check

Major only if the proof holds. The algorithm is randomized, succeeds with probability at least 2/3, and has an unquantified o(1) in its exponent. No Lean formalization is listed and no specialist review is published.

Words used

Graph
A set of points, called vertices, with links, called edges, between some pairs.
Matching
A set of edges in which no two share an endpoint.
Maximum-cardinality matching
A matching with the largest possible number of edges.
Bipartite graph
A graph whose vertices split into two sides with every edge crossing between them, so it has no odd cycles.
Almost-linear time
Running time of the input size raised to 1 + o(1), where the extra exponent shrinks to zero.
Randomized algorithm
An algorithm that flips coins and may fail with some small chance.
f-factor
A set of edges giving each vertex exactly a prescribed number of links.

The original paper

All quoted lines (14)

  1. A matching in a graph is a set of edges with pairwise disjoint endpoints.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  2. His matching-polytope theorem gives a complementary explanation of the odd-set constraints: vertex-degree inequalities alone allow, for example, value 1/21/2 on each edge of a triangle.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  3. The almost-linear exact integral-flow algorithms of Chen et al. and van den Brand et al. then yield almost-linear exact bipartite matching.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  4. General graphs require additional control of odd blocks.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  5. Edmonds made this approach algorithmic in general graphs through blossom contraction and expansion.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  6. The latter has running time O(mn)O(m\sqrt n) on a RAM; reading the explicit input and removing isolates gives the convenient universal bound O(n+mn)O(n+m\sqrt n).
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  7. Their matrix-multiplication bound is most competitive on dense graphs.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  8. We prove that maximum-cardinality matching in a simple undirected graph with nn vertices and mm edges can be found by one uniform randomized algorithm in (n+m)1+o(1)(n+m)^{1+o(1)} time.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  9. The bound holds on every computation path in a logarithmic-word model, and the algorithm returns an explicit maximum matching with probability at least 2/32/3.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  10. The bound holds on every computation path in a logarithmic-word model, and the algorithm returns an explicit maximum matching with probability at least 2/32/3.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  11. An explicit reduction gives the same time and probability guarantees for deciding whether a simple host graph has a spanning subgraph with prescribed valid vertex degrees, and for finding one when it exists.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  12. The central subproblem is to find a perfect matching in a graph of maximum degree three.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  13. The difficulty is to repair this representation after structural changes without repeatedly scanning all its odd blocks.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text
  14. The use of approximate minimum-ratio circulations as optimization directions has its modern antecedent in the almost-linear flow framework.
    Almost-Linear-Time Maximum-Cardinality Matching in General Graphs Back to text

Other sources

  1. J. Edmonds, “Paths, Trees, and Flowers”, Canadian Journal of Mathematics 17 (1965), 449–467
  2. S. Micali and V. V. Vazirani, “An O(√|V| |E|) Algorithm for Finding Maximum Matching in General Graphs”, FOCS 1980, 17–27
  3. J. E. Hopcroft and R. M. Karp, “An n^{5/2} Algorithm for Maximum Matchings in Bipartite Graphs”, SIAM Journal on Computing 2(4) (1973), 225–231
  4. L. Chen, R. Kyng, Y. P. Liu, R. Peng, M. Probst Gutenberg and S. Sachdeva, “Maximum Flow and Minimum-Cost Flow in Almost-Linear Time”, FOCS 2022, 612–623
  5. openai/math release notes (2026): model provenance and review status manuscripts and supporting proof artifacts produced by an internal OpenAI model

Browse Theoretical computer science Graph theoryOpen since the 1960sClaimed, not yet checked