compsci 2 notes

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 3

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

4 Terms

1

Case 1 - Sibling is Red

1) Sibling → Black

2) Parent → Red

3) Left Rotation on Parent, reassing W to new sibling

New cards
2

Case 2 - ALL BLACK (Sibling & Children)

1) Sibling → Red

2) Reasing X to Parent

New cards
3

Case 3 - Sibling Black, left child red, right child black

1) Left → Black

2) Sibling → Red

3) Right Rotaton

New cards
4

Case 4 - Sibling is Black, Right Child is Red

1) Sibling Color = Parents Color

2) parent → black

3) right rotation on parent

4) x would be reassigned at the root

New cards
robot