Simpler Version LLRBT Left Leaning Red Black Tree
Evaluated from: B Tree, 2-3-4 Tree
Properties
- The root is black
- NULL is black (
leaf || root.parent
) - Red node has 2 black child
- All paths from the node to descendant leaves contain the same number of black nodes
Misc
Lemma 13.1
A red-black tree with internal nodes has height at most
Proof Mathematical Induction
- Lemma 1: For subtree rooted at node x, internal nodes
If height is 0, OK
Else: todo