24.12.2013 Views

․Course ․Readings:

Unit-3.pdf

Unit-3.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Case 2 for Color Fixup<br />

․Case 2: x has a black sibling and two black nephews.<br />

․Take off one black from x and its sibling, push one<br />

black up to x.p, and repeat the while loop with x.p as<br />

the new node x.<br />

․The # of black nodes in each path is preserved.<br />

․Perform constant # of color changes and repeat at<br />

most O(h) times. (No rotation!!)<br />

B<br />

Unit 3 Spring 2013<br />

25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!