Complete Binary Search Tree

Given a list of numbers, we could create a well-balanced binary search tree.

If we choose i to be $\lfloor (n-1)/2 \rfloor$, what is the height of the tree? How prove?

Running time?

How can we choose i so that the resulting tree is complete (i.e., deepest level is ``left justified'')?


next up previous
Next: Recovering from Bad Luck Up: ROTATIONS Previous: ROTATIONS