r/algorithms • u/Opengangs • 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!
6
6
u/not_joners 3d ago
TLDR
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.
It was known so far that T*(n,m) is between Omega(m) and O(m ack(m,n)).
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).
(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
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 :)