18.04.2013 Views

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Lecture 10 - tree restructuring<br />

Next: Lecture 11 - backtracking Up: No Title Previous: Lecture 9 - catch<br />

Lecture 10 - tree restructuring<br />

Listen To Part 10-1<br />

14.1-5 Describe a Red-Black tree with the largest and smallest ratio of red nodes.<br />

To minimize the ratio of red-black nodes, make all black (possible for )<br />

To maximize the ratio of red nodes, interleave with red nodes as real leaves<br />

Listen To Part 10-2<br />

Rotations<br />

<strong>The</strong> basic restructuring step for binary search trees are left and right rotation:<br />

file:///E|/LEC/LECTUR16/NODE10.HTM (1 of 9) [19/1/2003 1:34:50]

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

Saved successfully!

Ooh no, something went wrong!