Incremental Minimum Spanning Trees on a Napkin
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 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 amortized time. We show that this conjecture is false: on a family of inputs, its amortized cost per operation is . We then present a structure with the same state, two arrays and a single loop, and prove that it runs in 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.
Create a lesson
Related papers
Two (2+ε)-Approximation Algorithms for Minimum Spanning Tree Interdiction
Shared title terminology · Junjie Luo, Changjun Wang, Chenhao Wang et al.
Flows in High Degree Places: Sublinear Spanning Tree Congestion
Shared title terminology · D Ellis Hershkowitz, Richard Z Huang
Sublinear Approximations for Spanning Tree Congestion
Shared title terminology · Sunny Atalig, Marek Chrobak, Petr Kolman et al.
Logarithmic Embeddings into Probabilistic Spanning Trees for Distances and Capacities
Shared title terminology · Mohammad Hajiaghayi
Asymptotically Optimal Representation of Tree-Like Graphs
Shared title terminology · Johannes Fischer
A Polynomial Time Algorithm for Finding a Minimum 5-Partition of a Submodular Function
Shared title terminology · Yuhao Liu, Ke Shi, Chao Xu