Lemma. ZIG-ZIG bound [00UK]
- November 25, 2026
In the context of the ZIG-ZIG operation, 2 \leq 2R'(x) - R(x) - R'(g).
Proof.
- November 25, 2026
R(x) + R'(g) - 2R'(x)
= \quad \quad \quad { definition of R }
\lg (S(x)) + \log _2(S'(g)) - 2\log _2(S'(x))
= \quad \quad \quad { properties of \lg }
\lg (S(x)/S'(x)) + \lg (S'(g)/S'(x))
\leq \quad \quad \quad { see below }
-2
For the final step, note that S(x) + S'(g) \leq S'(x) (since the original tree rooted at x and the new tree rooted at g are completely disjoint, and all the elements of both have x as an ancestor in the new tree), so \frac {S(x)}{S'(x)} + \frac {S'(g)}{S'(x)} = \frac {S(x) + S'(g)}{S'(x)} \leq 1. Therefore, the bound of -2 follows from the previous lemma.
The lemma as stated now follows by negating both sides of the inequality (and flipping the inequality appropriately).