Chapter 9: Red / Black Trees Flashcards
1
Q
How do trees become unbalanced?
A
Items are inserted in ascending or descending order
2
Q
What are the red-black rules
A
- Every node is red or black
- The root is always black
- Every red node may have only black children (??)
- Every path from a leaf or null child to the root must contain the same number of black nodes
3
Q
I didn’t really finish the chapter
A
So look at it