The previous lesson stated, without proof, that union by rank plus path compression together give total cost for operations, where 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
- The inverse Ackermann function
- The potential-method sketch
- Why both heuristics are necessary for this sharper bound
Before you start
- Union-Find (Disjoint Sets) with Union by Rank and Path Compression
- Dynamic Arrays and Amortized Analysis
The full lesson, with worked examples and exercise solutions, is for members.
Read the full lessonNew to SelfMadeQuant.com? See membership options or explore the curriculum.