Tree Rotation
Left and right rotations are the basic operations.
Rotations take O(1) time.
They preserve BST inorder ordering.
AVL Trees use rotations to restore balance.
Red-Black Trees use rotations together with recoloring.
Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.