Concept Flow - AVL tree rotations
Insert Node
Check Balance
Is balance factor > 1 or < -1?
No→Tree Balanced, Stop
Yes
Identify Rotation Type
Perform Rotation
Tree Balanced, Stop
When a node is inserted, check the balance factor. If unbalanced, identify and perform the correct rotation to restore balance.