Module M20 · 20 of 35 in teaching order · Advanced
Balanced Trees
Rotations, AVL and red-black trees, B-trees, and the ordered collections built on them.
Lessons
Keeping a BST shallow: heights, balance factors, the four AVL rotation cases, the 1.44 log n height bound, and how red-black trees and B-trees trade the same idea.
Topics this module covers
The full module scope. Topics without a lesson above are not written yet.
- rotations
- AVL insert/delete
- red-black invariants/rebalancing
- B-tree/B+ tree
- ordered collections
- comparison