A Tradeoff

The worst-case algorithms are complicated to implement but relatively simple to analyze.

Next we'll talk about splay trees... relatively simple to implement, but harder to analyze. Gets us $O(\log n)$ insert, delete, and find, but only averaged over a sequence of operations. But good constant factors and simple implementation is a win.


next up previous
Next: LISTING LARGEST ELEMENTS Up: ROTATIONS Previous: Nearly Balanced Trees