Skip to content
Data Structures and Algorithms / Shortest Paths, Spanning Trees, and Weighted Graphs

Derivation — Amortized Analysis of Union-Find: the Inverse Ackermann Bound

The previous lesson stated, without proof, that union by rank plus path compression together give O(m α(n))O(m\,\alpha(n)) total cost for mm operations, where α\alpha is the inverse Ackermann function. This derivation sketches why — reusing the potential-method machinery from Topic 2, applied here to its most dramatic payoff in the entire unit. CLRS itself marks this proof "starred" (its most technically demanding, requiring an auxiliary function CLRS calls the "Ackermann-style" hierarchy); this note gives the structure of the argument at the depth appropriate for a unit-level treatment, without reproducing every algebraic step of CLRS's own multi-page derivation.

In this lesson

  1. The inverse Ackermann function
  2. The potential-method sketch
  3. Why both heuristics are necessary for this sharper bound

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or explore the curriculum.