






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







CPSC 223 -‐-‐ Fall 2010
CPSC 223 -‐-‐ Fall 2010
NULL NULL NULL NULL
NULL NULL
A
NULL NULL
NULL NULL
NULL NULL
NULL NULL
CPSC 223 -‐-‐ Fall 2010
S could be
Red or Black
NOTE: Because we are possibly
propagating up, we consider the
general case where X may have
subtrees A and B
CPSC 223 -‐-‐ Fall 2010
rota)ons
re-‐color
CPSC 223 -‐-‐ Fall 2010
CPSC 223 -‐-‐ Fall 2010
CPSC 223 -‐-‐ Fall 2010
child’s color to Black
CPSC 223 -‐-‐ Fall 2010
CPSC 223 -‐-‐ Fall 2010
CPSC 223 -‐-‐ Fall 2010
CPSC 223 -‐-‐ Fall 2010
CPSC 223 -‐-‐ Fall 2010