r/compsci • Professor | Crypto/theory • 5d ago • Mindblown 1

Minimum spanning tree solvable in deterministic linear time

https://eccc.weizmann.ac.il/report/2026/339/
658 Upvotes

66 comments sorted by

68

u/Opposite_Diamond_662 5d ago

The hits keep on coming

188

u/wollywoo1 5d ago

According to the paper, it improves on the best previous result by an inverse-Ackermann factor. So this is only the tiniest tiniest sliver better than previously known, and probably then only asymptotically. Unless I am misreading, the practical improvement seems to be nil.

104

u/ahbonilapasdeprenom 5d ago

Still seems like a big deal by managing to cleanly achieve linear time

39

u/wollywoo1 5d ago

Fair enough y'all, it's theoretically cool, I just don't want anyone to get overly excited that it will give speedups in practice.

47

u/ahbonilapasdeprenom 5d ago • Bravo

it's a TCS result, it's not about speedups in practice

2

u/wolfefist94 4d ago

True Charged Slash?

6

u/mfukar 4d ago

The Chappelle Show

4

u/Active_Distance3223 4d ago

The Chazelle algorithm was already not used in practice 

1

u/Organic_botulism 3d ago

No one in TCS is expecting a practical speedup. It’s about asymptomatic complexity

1

u/ccppurcell 3d ago

I'd bet my bottom dollar none of this LLM generated mathematics and computer science gives speedups in practice. The reason for the breakthroughs is the clean formulation of the problem. The instances we have to deal with in practise are not clean. 

0

u/yuvalshahaf 2d ago

Wow you are probably so fun at parties

37

u/CompellingProtagonis 5d ago

The reason the Ackerman function comes up is because the solution is dependent upon a very specific algorithm (union find) with a specific maintenance policy. If the optimal solution is just linear that admits the possibility of an entire class of algorithms existing that can do a better job. To be fair I haven’t read the paper, but just the headline is pretty crazy.

17

u/Minnakht 5d ago

As far as I know, for practical purposes, the constant matters. The inverse Ackermann function basically means "for any data that fits in the universe, it's at most 5", so if you have the linear*inverse-Ackermann algorithm with some constant factor and a linear algorithm with a constant factor five or more times bigger, the former's practically better.

1

u/gaydaddy42 5d ago

The constant matters, yes. As in, up to a constant factor, O(log(n)) grows more slowly than O(n). That is part of the very definition of big O. If our barometer is indeed a constant-time operation, we don’t give a shit about the constant out front as n goes to infinity. So if n is really large, we don’t care. People keep throwing this constant shit around all the time and don’t seem to know the definition of big O.

12

u/Mojert 4d ago

I think you're the one that seems to misunderstand

Noone is saying that the algorithm is not O(n), just that the n at which the algorthim becomes faster is not an n anyone will ever reach in practice. Look up "galactic algorithm" on Wikipedia

But just to be clear, it's not because they do not have direct practical applications that they are not interesting research wise

0

u/gaydaddy42 2d ago

Who cares if n is small? If n is not small, we care… If n is small, brute force it.

0

u/gaydaddy42 2d ago

Also, the algorithm under question is not O(n). Bot.

2

u/Extension-Thought552 5d ago

It's strictly in non polynomial Ackerman space

10

u/ABCosmos 4d ago

This is a great example of the difference between computer scientists and software engineers. this is a big deal to computer scientists.

35

u/IDontLikeCherryTomat 5d ago

The practical improvement is literally nil lol. We've had a provably optimal algorithm since 2002, we just didn't know what its runtime conplexity was. There's even an Java implementation of the original algorithm that's been on github for years

18

u/iplayconnections 5d ago

There's a few things going on here. The optimal algorithm has not been practically improved upon. However it was not known and not proven until now whether the runtime of that same algorithm was O(m * alpha(m, n)), published in 2000, or better.

The post proves that the existing algorithm does indeed have a better runtime: O(m) (i.e. linear with edge count). It's not proposing a new algorithm.

I'm not arguing against anything anyone else said; it's all true. But it wasn't clear to me what was theoretical versus practical in these comments, so I clear up my own confusion to maybe help others.

7

u/kgangadhar 5d ago

Progress is progress, no matter how tiny it is

20

u/StoneCypher 5d ago

Unless I am misreading

dude you missed the title

it's not that you're misreading. it's that you tried to pull an "i know better" and you don't understand what you're looking at

2

u/Brutal_Lobotomy 5d ago

Chazelle's algorithm (the previous best result you are referring to) is not practical at all - this really isn't the point of this research/the thing to focus on here bud.

5

u/scrumbly 4d ago

Fun fact: Chazelle's son wrote and directed La La Land.

3

u/Brutal_Lobotomy 4d ago

Holy smokes that is a talented family!

1

u/BridgelessAlex 4d ago

You clearly don’t do TCS

1

u/wollywoo1 3d ago

Alright alright everyone, I didn't know this was a longstanding TCS open problem and I shouldn't have dismissed it before learning more. I knew TCS is not about practical speedups but I didn't know this particular one was considered important. Mea culpa...

-3

u/codefupanda 5d ago

Doesn't matter, your Google interviewer still want you to be able to codify this with edges handled 

1

u/StoneCypher 5d ago

no we won't.

3

u/fearstone 5d ago

unless I add it to go/iq 🧠

4

u/StoneCypher 5d ago

right in the tombstone

-1

u/Cultural-Capital-942 5d ago

It depends on how you interpret it.

I always tried to find the boundaries of knowledge and I asked for the best solution they could come up with (and the best in industry/library).

So in some sense, I always wanted more and this would be one part of it. Not that it would be necessary to pass, but it helped with decisions.

0

u/anor_wondo 5d ago

Lol but why. What's the point

1

u/Cultural-Capital-942 5d ago

Interview output is not binary like yes/no.

If I want to evaluate certain areas (and dismiss some of your mistakes), I need to know what you know to which depth and what you don't know. If I cannot find what you don't know, I didn't ask enough or you know much more than me in that area. Also the reaction to "don't know" is important - will the person start making things up? Argue that it cannot work? Admit it may be something new? Discuss it?

Don't consider it wrong, I recommended hiring more ppl, all my recommendations were hired and each of them didn't know something.

1

u/anor_wondo 5d ago

Yeah makes sense. I suppose if someone has really geeked out on a topic, its a good datapoint anyways

I feel I can improve a lot as an interviewer, its a skill in its own right

-4

u/strettist 5d ago

I read this the same way. Seems like a very minimal improvement.

32

u/noop_noob 5d ago

Is this an AI or human result? How trustworthy is this paper? Are the results of practical use?

81

u/Opengangs 5d ago

The ideas were completely AI-generated but the manuscript was revised, clarified, and simplified by the authors. In terms of their credentials, I have seen all three names in previous papers that have been accepted into STOC, FOCS, and SODA so I'd say that they're at least not cranks.

19

u/Nikonolatry 5d ago

Lol, "not cranks" is an understatement. The first author is an extremely prominent researcher in the field.

35

u/polychronous 5d ago

It is AI generated, using Astra 6.2. It seemed to have specific guidance and planning from the authors but also did a lot of it in unguided stretches with small interventions.

From the paper:

A. P. would like to thank OpenAI for providing the credits to Astra 6.2 which were used in gener- ating this result. Indeed, the main ideas in this paper were entirely generated by AI – specifically 6.2 Astra, on a mixture of Ultra and Max effort – 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.

13

u/Bastian00100 5d ago

TL:DR Astra but validated and simplified by the authors.

Long version from the paper:

1.4 AI Acknowledgments

A. P. would like to thank OpenAI for providing the credits to Astra 6.2 which were used in gener- ating this result. Indeed, the main ideas in this paper were entirely generated by AI – specifically 6.2 Astra, on a mixture of Ultra and Max effort – 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. The authors had originally tried to query Astra 6 and 6.2 with a direct prompt of achieving deterministic linear comparison complexity for this problem, with no success. The authors then re- tried with the simpler task of proving any bound of the form o(mα), which would be an improvement over the work of Chazelle [Cha00a]. A team of 15 agents (managed across several Ultra and Max effort settings) succeeded in proving such an improvement after 15 hours, providing a bound of the form O  m · α log(α) 1/3  . This gave the authors confidence that O(m) is indeed the right answer. Before that, there was some doubt that linear time was the correct answer, largely due to Ω(mα) lower bounds for related union-find data structures (see [Tar79b]), and variants of the MST problem [Pet06]. After this, the authors continuously prompted the model to iteratively improve the comparison complexity, resulting in a sequence of small improvements. This took several forms. The first improvement was a bound of the form O(m log(α)), which was subsequently followed by 10 O(m log∗ (α)), then O(mα(α)), and then O(mΓ(α)). Here, Γ can be seen as the “inverse of a hyper- Ackermannian function”. See [Sch16], where the function Γ is essentially the inverse of Fωω . In particular, Γ is smaller than any constant number of iterated inverse-Ackermann functions. This was then followed by bounds of the form O(m log(Γ(α))), then O(m log∗ (Γ(α))), and even the absurdly small O(m · Γ(Γ(α))). The authors then sent off one final batch of runs which used the entire history of developed algorithms until this point, and asked for a single linear time algorithm, which was finally generated. A collection of these intermediate papers are available at the following URL: https://github.com/Louiealbp/DLMST/tree/main/IntermediateMSTs. 4 Throughout the entire process leading up to the discovery of our main result, human intellectual intervention was limited. The largest such intervention was the advice that the authors did not believe it to be a fruitful direction to pursue “structural graph theory” approaches to the problem (whereby the model would study efficient algorithms on graphs which have special structure like low- density, no short cycles, etc.), and repeatedly redirected attempts that got stuck in such pursuits. This guidance was largely due to the fact that the authors themselves had extensively studied structural approaches (in addition to other ideas) for linear time MST algorithms in the spring and summer of this year.

4

u/AirlineExpress5242 5d ago

So lmao so a version of 'do better' each time

9

u/Nerdlinger 5d ago

You could read the paper to find out.

In particular section 1.4.

3

u/Brambletail 5d ago

Please leave this sub if you are going to preemptively disparage the technology that this field has built

15

u/CompellingProtagonis 5d ago

WAT. This is the first one actually in my field. What the fuck.

7

u/j_ockeghem 4d ago

Respect for the honest attribution. This result is yet another win for AI:

A. P. would like to thank OpenAI for providing the credits to Astra 6.2 which were used in generating this result. Indeed, the main ideas in this paper were entirely generated by AI – specifically 6.2 Astra, on a mixture of Ultra and Max effort – 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.

6

u/tamionv 4d ago

to everyone, this result is in a very funny situation where we had an *optimal algorithm*, we just didn't know it's runtime :)) It always seemed hilarious to me that this was the situation for MST, glad it's squared off. (Although I still think, if anything we should be learning from this AI stuff, it's that many things were easier than we thought, and probably humans have been underexploring "big open problems".)

15

u/lonelyroom-eklaghor 5d ago

OH SHIT

Linear time. Deterministic...

oh shit

4

u/TwistedBrother 5d ago

Still not possible for graphs with cycles which is a lot of data.

4

u/Few-Employment4580 5d ago

I appreciate that this paper is actually readable

2

u/Electrical_Price_179 3d ago

I'm not against using AI to prove things, as long as you go over the final result and make sure things are crisp and clean.

9

u/evarol 5d ago

Is this artisanal math or the mass produced kind?

17

u/Nerdlinger 5d ago

If only this were mentioned in the paper that you were given a link to.

0

u/evarol 5d ago

For some reason, I scrolled past the AI acknowledgment part, oops.

It's mass produced...ideas entirely generated by Astra 6.2. Authors job was to verify and simplify.

wow

15

u/sosodank 5d ago

Ai wouldn't have missed it

-11

u/True_World708 5d ago

It's hard to believe these people actually exist. Like, you can't be bothered to come up with your own understanding of the subject you're an expert in? IMO they should be fired.

2

u/evarol 5d ago

who should be fired?

-5

u/True_World708 5d ago

Well, at the current moment, it's it's hard to give a socially acceptable answer to that question because there hasn't been enough time for the people doing slop science to be 1) found out and 2) have been doing it for long enough to be considered a "serious issue." At the very least, the people organizing the presentations on slop science should stop hosting them because it is incredibly embarrassing for the scientific community to be spreading slop as real science as it undermines public trust in the scientific establishment.

6

u/FIREATWlLL 5d ago

Why does it matter?

12

u/hongooi 5d ago

They only accept free-range, preservative-free science in Brooklyn

1

u/PANIC_EXCEPTION 4d ago

So... weed? If so, I'm not complaining.

1

u/dev_dan_2 3d ago

Oh wow, that's one I will actually read, nice! Curious to see what they tried and combined!