Simpler Analyses of Union-Find
Zhiyi Huang, Chris Lambert, Zipei Nie, Richard Peng

TL;DR
This paper presents simplified analyses of the union-find data structure using potential functions inspired by continuous algorithms, providing alternate proofs for various near-logarithmic amortized bounds.
Contribution
It introduces a novel potential function approach to analyze union-find, simplifying proofs of its amortized bounds and offering new insights into its efficiency.
Findings
Provided alternate proofs for $O(\log\log n)$, $O(\log^* n)$, $O(\log^{**} n)$, and $O(\alpha(n))$ bounds.
Used potential functions based on subtree sizes to analyze path compression.
Showed that potential increases are bounded by $O(n)$, leading to simplified amortized analyses.
Abstract
We analyze union-find using potential functions motivated by continuous algorithms, and give alternate proofs of the , , , and amortized cost upper bounds. The proof of the amortized bound goes as follows. Let each node's potential be the square root of its size, i.e., the size of the subtree rooted from it. The overall potential increase is because the node sizes increase geometrically along any tree path. When compressing a path, each node on the path satisfies that either its potential decreases by , or its child's size along the path is less than the square root of its size: this can happen at most times along any tree path.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsComputational Geometry and Mesh Generation · Complexity and Algorithms in Graphs
