Skip to content
Vibe Math Lab.

News · · Preprint (ECCC and arXiv, November 23, 2026); not peer reviewed. The paper's new theorem, a linear bound on comparisons, was machine-checked in Lean by an outside project on December 1 (I read its statement but did not run the proof myself); the step from that bound to running time is not formalized. Reported 3:41 p.m. Pacific time, December 1, 2026 · Updated December 1, 2026

Three researchers say an OpenAI model found the long-sought deterministic linear-time algorithm for minimum spanning trees

Picture towns and the possible roads between them, each road with a building cost. A minimum spanning tree is the cheapest set of roads that still connects every town. Sanjeev Khanna and Junkai Song of New York University and Aaron Putterman of Harvard posted a paper on November 23 that claims a deterministic algorithm for finding it in linear time, a question computer scientists had left open for decades. They write that "the main ideas in this paper were entirely generated by AI", specifically Astra 6.2, one of OpenAI's AI models, "with minimal human intellectual intervention", and that they then verified the argument themselves before simplifying and clarifying it.

The problem is old and practical. Otakar Borůvka worked on it in 1926 while planning the electrification of Moravia, and textbook methods (Borůvka's, Kruskal's, Prim's) solve it in time proportional to the number of roads times a logarithm. Linear time means time proportional to the number of roads alone, which is about what it costs just to read the map.

The open part was doing that deterministically, with a guarantee on every run. David Karger, Philip Klein and Robert Tarjan had a linear-time algorithm in 1995, but it makes random choices, so its speed is guaranteed on average and with overwhelming probability rather than every time. The best guaranteed bound, Bernard Chazelle's of 2000, was linear time multiplied by an extra factor, the inverse Ackermann function, that grows so slowly it stays below about 4 for any map that could fit in the universe, yet still grows. In 2002 Seth Pettie and Vijaya Ramachandran found a way around the question. Their algorithm breaks the map into tiny pieces and, on each piece, uses the best possible plan of cost comparisons, found ahead of time by a computer trying every possible plan, which is feasible only because the pieces are so small. That made it provably as fast as any algorithm of its kind can be, but nobody knew how many comparisons those best plans need, so nobody could say what its running time was.

The new paper says the answer is linear. Its genuinely new part is a counting result: the cheapest network can always be found with a number of cost comparisons proportional to the number of roads. Combined with Pettie and Ramachandran's algorithm, that gives linear running time. On December 1 an outside group, the cslib-frontier Lean project, finished a machine-checked proof of the counting result in Lean, a language in which a computer checks every step of a proof; the step to running time has not been formalized yet.

The algorithm is a theoretical one. Tarjan called it "Not at all practical." Its interest is in settling what is possible in principle. The claim also holds in the most general setting: the algorithm only compares road costs in pairs and assumes nothing else about them, so it does not lean on tricks that work only when the costs are whole numbers (Michael Fredman and Dan Willard already had linear time for those in 1994), and the paper states it for both of the standard abstract models of a computer that theorists use.

Status: preprint, not peer reviewed. The new comparison theorem is machine-checked by an outside project whose review was done by AI agents; I read its Lean statement but did not run the proof myself. The full running-time claim rests on that theorem plus Pettie and Ramachandran's 2002 algorithm, which is published and refereed but not yet formalized. Scott Aaronson and Tarjan have written and spoken about the result as a solution; I found no public comment from Pettie, Ramachandran, Chazelle or Mikkel Thorup.

The paper, the AI's part, and what has been checked

  • The paper. "A Deterministic Linear Time Algorithm for Minimum Spanning Tree" by Sanjeev Khanna (Courant Institute, NYU), Aaron Putterman (Harvard School of Engineering and Applied Sciences) and Junkai Song (Courant Institute, NYU), posted on November 23 on arXiv and on ECCC, an online archive for complexity theory. Its main theorem reads: "There is a uniform deterministic algorithm that, on every connected undirected multigraph with n vertices and m edges with real weights, finds an MST in O(m) worst-case time, accessing edge weights only through pairwise comparisons." The abstract says it settles the problem and is "the first improvement since the work of Chazelle (JACM 2000)."
  • How the proof is built. In network terms, the towns are vertices, the roads are edges and the costs are weights. Pettie and Ramachandran showed in 2002 that their algorithm's running time is proportional to the fewest comparisons any algorithm needs in the worst case. Before this paper, that number was known only to lie between linear and linear times the inverse Ackermann factor. The paper's Theorem 4.1 proves it is linear, and Corollary 4.2 combines this with Pettie and Ramachandran's algorithm to get a linear-time algorithm "in both the RAM model and pointer machine model", the two standard abstract models of a computer. The key new tool is a way to find many redundant edges, ones that are the heaviest on some cycle and so can never be in the tree, using few comparisons.
  • What the AI did, in the authors' words. Section 1.4, "AI Acknowledgments", says Putterman thanks "OpenAI for providing the credits to Astra 6.2". A direct prompt to Astra 6 and 6.2 to reach linear comparison complexity failed. Asked instead for any bound below Chazelle's, "A team of 15 agents" produced one after 15 hours. The authors then "continuously prompted the model to iteratively improve the comparison complexity", through a series of ever-smaller bounds involving iterated logarithms and inverse Ackermann functions, until a final batch of runs, given "the entire history of developed algorithms until this point", produced a linear-time algorithm. The largest human intervention, they write, was steering the model away from "structural graph theory" approaches, which they had tried themselves in the spring and summer. The intermediate AI-written papers are in a GitHub repository of Putterman's.
  • Where the problem came from. The paper's acknowledgments thank Vijaya Ramachandran for drawing the authors' attention to her work with Pettie during Khanna's visit to the University of Texas at Austin in spring 2026, when, they write, they began working on the problem. Its history table runs from Borůvka in 1926 through Kruskal (1956), Prim (1957), Fredman and Tarjan's Fibonacci heaps (1984), and Chazelle's soft heap algorithm (2000).
  • The outside Lean check. On November 24, Samuel Schlesinger opened a task in cslib-frontier, a community project formalizing theoretical computer science in Lean, a language in which a computer checks every step of a proof, to machine-check Theorem 4.1. The task says the work is "also an independent check of the argument." It was completed and merged at 12:51 p.m. Pacific time on December 1. The headline theorem says there is one constant C such that, for every network, even one with several roads between the same two towns, there is a fixed sequence of cost comparisons, decided before the costs are known, that finds the minimum spanning tree for every choice of distinct costs using at most C comparisons per road. In other words, the comparisons can be planned in advance, and their number grows only in proportion to the number of roads. I read that statement but did not run the proof myself. The project's own approval comment says "This is agent action, not human review." The computer's check is the same whoever approves the code; what is still missing is a person confirming that the Lean statement says what the paper says. The running-time half, joining this bound to Pettie and Ramachandran's algorithm, is a separate task, still open.
  • Who is on record. Scott Aaronson wrote about the paper on his blog on November 24 and called it "a huge open problem for decades", adding that his wife, the complexity theorist Dana Moshkovitz, spent about two years on it. Robert Tarjan discussed it in an interview with Vasek Rozhon published on December 1, recorded for a video on the problem's history that Rozhon is making for the YouTube channel Polylog. The paper thanks Ramachandran for pointing the authors to the problem; I found no public statement from her, Pettie, Chazelle or Thorup on whether the proof is correct, as of the afternoon of December 1.

What people said

“Indeed, the main ideas in this paper were entirely generated by AI ... with minimal human intellectual intervention (see below). The authors then worked to first carefully verify, and then to simplify and clarify the treatment, resulting in the present manuscript.”

Khanna, Putterman and Song, Section 1.4, "AI Acknowledgments", arXiv 2611.31187

“Very recently, with the help of AI, there's a brand-new result which says that the number of comparisons you need to find a minimum spanning tree is linear. Which means we now have a deterministic linear-time algorithm. Compared to the randomized algorithm, it's amazingly complicated, I would say. Not at all practical. Not likely to become practical.”

Robert Tarjan, interviewed by Vasek Rozhon, "Bob Tarjan on 100 Years of Minimum Spanning Trees", December 1, 2026

“I'm happy to know the solution, or know that there is a solution. I'd be happier if some human had come up with it and not AI.”

Robert Tarjan, same interview

“This was a huge open problem for decades, and one that my wife Dana spent roughly two years working on.”

Scott Aaronson, "I've been drinking wine in my kitchen", Shtetl-Optimized, November 24, 2026

“Using Astra 6.2, we show the first deterministic linear time algorithm for this problem, thereby completely settling its complexity”

Aaron Putterman, on X, November 23, 2026 (4:02 p.m. Pacific time)

The full record: the dated log, with sources

Did this make sense?

Was this helpful?

Share this page