Successor Tree Walk: Analysis

\begin{displaymath}
\Phi(T,i) = n-\mbox{rank}(i) + sum_j (\chi(T_{lc}[j]=\mbox{white})+\chi(T_{rc}[j]==\mbox{white}))\end{displaymath}

Each operation increments the rank of i, and, on each iteration of a while loop, makes at least one edge ``black''. (This can include ``Find Min'' as well.)

Upper bound on maximum value of potential function is 3n.


next up previous
Next: Successive Insertions and Deletions Up: BINARY SEARCH TREES Previous: Successor Tree Walk