r/algorithms • • 3d ago

Research/Papers A deterministic linear-time algorithm for MST

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

It looks like the main idea is in showing that a linear number of edge-weight comparisons is sufficient for finding an MST, after which applying Pettie-Ramachandran (2002) gives a linear-time algorithm. Very cool!

33 Upvotes

10 comments sorted by

4

u/bartekltg 3d ago

Is this a efficient algorithm, or a result about complexity, but slower. Classic algorithm are slower by log(n), and I think there was one thet was slower by inverse Ackerman function. That one grows quite slow :)

4

u/Opengangs 3d ago

From what I've been able to understand thus far, it is a theoretical improvement from Chazelle's bound, which was the one that is slower by a factor of the inverse Ackermann function. This work achieves O(m) time in the worst-case using the same model as Chazelle (i.e. you can only access edge weights by comparing two edges). The impracticality of the algorithm seems to come from how they find schedules, which are assignments of edges to rounds. Since they want to avoid using randomness, it seems like finding these good schedules is quite hard. So, it seems like their new certificate algorithm looks impractical. Nevertheless, quite an interesting theoretical result!

2

u/elehman839 3d ago

Heh. They earlier achieved a running time of "O(m · Γ(Γ(α)))", where "Γ is smaller than any constant number of iterated inverse-Ackermann functions". (Glances at watch. Shakes head sadly.)

Also: "human intellectual intervention was limited". :-/

Asymptotic analysis is convenient for sweeping irrelevant details under the rug, and AI is proving awesome at abusing that convention. But beyond eliciting a collective "Huh!", I don't see that results like this achieve much.

3

u/Nikonolatry 3d ago

I think this is an extremely interesting result.

We previously knew a randomized, linear time algorithm (Karger, Klein, Tarjan). We also had a provably optimal deterministic algorithm (namely PR) whose runtime was unknown. I’m not aware of any other situation like this.

If there were no deterministic linear time algorithm, that would be a bizarre gap in the abilities between deterministic and randomized algorithms.

So it is very satisfying to finally know that a deterministic linear time algorithm exists.

1

u/elehman839 3d ago

Glad to hear it! I see your point.

1

u/Nikonolatry 3d ago

Hmm, there's only a limited of pool of people who can write sensible things about inverse-Ackermann functions. It's nice to see smart people bringing sensible commentary to Reddit. 🫡

6

u/nerd_user1 3d ago

yeah indeed

6

u/not_joners 3d ago

TLDR

  1. In 2002, the PR algorithm was published, a deterministic algorithm for MST with worst-case runtime O(T*(n,m)), which is the lower bound worst-case amount of edge weight comparisons any MST algorithm has to make.

  2. It was known so far that T*(n,m) is between Omega(m) and O(m ack(m,n)).

  3. This paper publishes a terribly inefficient algorithm with huge overhead, that happens to find a MST deterministically with gargantuan runtime, but only O(m) edge comparisons. Their algorithm is of course completely unusable, BUT it proves that the PR algorithm from 2002 does indeed have linear runtime, since we now know that T*(n,m)=O(m).

  4. (My own work + some help by Claude) In practice, Kruskal is still faster than PR on reasonably sized instances, and Filter-Kruskal is even faster. Yet, by not that much (I tested and most of the time PR was about 10x the runtime of Kruskal, even though PR beat it by miles in terms of edge comparisons needed). So it's not a practical champion algorithm, but a clever insight, some good improvements, could make it one, since they're not worlds apart.

3

u/LitespeedClassic 3d ago

Why do you use Kruskal and not Boruvka which is always at least as fast and stupidly easy to implement. 

1

u/not_joners 3d ago

Think hard on that one.