Zig-Zig Case

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

We need to show that $\hat{c}_t + \Phi(D_{t-1}) - \Phi(D_t) \ge
c_t$.

Here, we'll take $\hat{c}_t = 3(\log s_{t}(x)- \log
s_{t-1}(x))$. The actual cost ct = 2. Why?

\begin{eqnarraystar}
\lefteqn{\hat{c}_t + \Phi(D_{t-1}) - \Phi(D_t)}\ &=& 3(\lo...
 ...e& 2\log s_{t}(x)- \log s_{t-1}(x) - \log(s_{t}(z))\ &\ge& 2.\end{eqnarraystar}

The last step here is sort of tricky.

Zig-zag case a little different, but same result.


next up previous
Next: Entire Splay Up: ANALYSIS OF SPLAY TREES Previous: Zig Case