Incremental Minimum Spanning Trees on a Napkin
Lucian Bicsi, Adrian Bud\u{a}u
Key points
From the paper's conclusion- We then present a structure with the same state, two arrays and a single loop, and prove that it runs in $O(\log n)$ amortized time per insertion and per query.
Abstract
In the incremental minimum spanning forest problem, weighted edges arrive one at a time. After each insertion we must report the edge that leaves the minimum spanning forest, and queries ask for the bottleneck distance of two vertices: the smallest possible maximum edge cost on a path between them. Link-cut trees solve both in $O(\log n)$ amortized time. In 2021 we wrote the folklore BottleneckTree, a short competitive-programming structure that stores one parent pointer and one cost per vertex, and conjectured that it also runs in $O(\log n)$ amortized time. We show that this conjecture is false: on a family of inputs, its amortized cost per operation is $\Omega(\sqrt{n})$. We then present a structure with the same state, two arrays and a single loop, and prove that it runs in $O(\log n)$ amortized time per insertion and per query. Unlike the AM-tree of Ding, Gu and Sun, which attains the same bound, it stores no subtree sizes and maintains no balance invariant. For a connected graph with distinct costs, the structure can be viewed as an implicit link-cut tree on the Kruskal reconstruction tree: each rotation corresponds to exactly one preferred-child change, and each skip acts on a stale path-parent pointer. In experiments it is 1.3-2.1 times faster than the folklore BottleneckTree on insertions, up to 480 times faster on its adversarial input, and 6.3-16 times faster than an explicit link-cut tree.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Fast and Theoretically-Efficient Batch-Parallel Link-Cut Trees, Euler Tour Trees, and TreapsarXiv · 2026
- Dynamic Steiner Tree under Edge UpdatesarXiv · 2026
- Parallel Spanning Forest and Biconnectivity for Well-Connected Graph in Sub-Logarithmic TimearXiv · 2026
- An Optimal Structure for All-Pairs Nearest Mincuts and Sensitivity Oracles for Edge InsertionsarXiv · 2026
- Canonical Cut Hierarchy in Almost-Linear Time via Reduction to Max-FlowarXiv · 2026
- A Deterministic Linear Time Algorithm for Minimum Spanning TreearXiv · 2026