[prev] [index] [next]

Exercise #9 (cont)

Analysis of AVL trees:
  • trees are height-balanced; subtree depths differ by +/-1
  • average/worst-case performance of O(logN)
  • require extra data to be stored in each node
  • may not be weight-balanced; subtree sizes may differ

[Diagram:Pics/trees/height-weight.png]