AVL Tree
AVL Tree
Rotations
Double
Single Rotation
Rotation
Right Left (RL) Left Right (LR) Right Rotation Left Rotation
Rotation Rotation (RR Rotation) (LL Rotation)
After performing
LL Rotation
Insert 89 into it
After performing
RR Rotation
• We will apply the left rotation and after that, we will apply the right
rotation.
• Now again the tree becomes unbalanced like in the first case, so we
have to apply LL Rotation to make it balanced.
After performing
LR Rotation
• We will apply the right rotation and after that, we will apply the left
rotation
• Now again the tree becomes unbalanced like in the first case, so we
have to apply RR Rotation to make it balanced.
Prob: Delete nodes 52, 36, and 61 from the AVL tree given in
below Fig.
https://www.javatpoint.com/
https://www.tutorialspoint.com
https://www.geeksforgeeks.org/
https://www.prepbytes.com/blog/tree/avl-
tree-in-data-structure
https://www.scholarhat.com/tutorial/datastr
uctures/avl-tree-in-data-structures
https://chat.openai.com/