Chapter 9: Red / Black Trees Flashcards

1
Q

How do trees become unbalanced?

A

Items are inserted in ascending or descending order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the red-black rules

A
  1. Every node is red or black
  2. The root is always black
  3. Every red node may have only black children (??)
  4. Every path from a leaf or null child to the root must contain the same number of black nodes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

I didn’t really finish the chapter

A

So look at it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly