


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A lecture outline for cs 361 from the university of new mexico, covering various balanced search trees, including red-black trees, avl trees, b-trees, and skip lists. Topics include rb-properties, rb-insert, rb-insert-fixup, avl tree height, and b-tree properties.
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Jared Saia University of New Mexico
A BST is a red-black tree if it satisfies the RB-Properties
RB-Insert-Fixup(T,z){ while (color(p(z)) is red){ case 1: z’s uncle is red{ do case 1 } case 2: z’s uncle is black and z is a right child{ do case 2 } case 3: z’s uncle is black and z is a left child{ do case 3 } } color(root(T)) = black; }