61
Balanced BSTs
Reminder …
Goal: build binary search trees which have
minimum height
⇒
minimum worst case search cost
Best balance you can achieve for tree with
N
nodes:
tree height of
log
2
N
⇒
worst case search
O(log N)