Maintain Credit Rule: Zig-Zig Case

We're splaying x, with y and z as the immediate parents.

The function W gives the subtree sizes before the pair of rotations, W' gives the sizes after.

Same idea works for Zig-Zag and Zig.


next up previous
Next: Paying for Rotation: Zig-Zig Up: ANALYSIS OF SPLAY TREES Previous: Amortized Analysis Template