

















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!


















Yes! 5 = 2, 1 4 = 1, 0 3 = 0, 0 7 = 0, 0
No! 10 = 3, 1
No! 5 = 3, 4 = 2,
Notation: NODE = Left-Ht, Right-Ht
Algorithm rotateLeft(nodeN) nodeC = right child of nodeN Set nodeN ’s right child to nodeC ’s left child Set nodeC ’s left child to nodeN