Simpler Analyses of Union-Find
Abstract
We analyze union-find using potential functions motivated by continuous algorithms, and give alternate proofs of the O(n), O(*n), O(**n), and O(α(n)) amortized cost upper bounds. The proof of the O(n) 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 O(n) 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 (1), or its child's size along the path is less than the square root of its size: this can happen at most O(n) times along any tree path.
Turn this paper into a lesson
ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.