| | | | | |

Left-Leaning Red-Black Trees

  • BST
  • Satisfies RB rules
  • One additional "left leaning" rule keeps code simpler
    1. Every node is either red or black
    2. Root is black
    3. If a node is red, all its children are black
    4. All root-null paths have the same number of black nodes
    5. If a node is red, it must be a left child
  • Sedgewick, 2007

| | Top of Page | 13. Balanced BSTs - 7 of 35