← Back to Index

🌲 AVL Tree

Self-balancing BST · Insert / Delete / Step-through
0
Tree Height
0
Node Count
0
Root Balance
None
Current Rotation
Ready
Status
Node label value + height + balance factor
No rotation in focus

Step Timeline

Operations

Balanced node (height shown above BF)
Deleted / unstable node focus
Inserted or selected node
Rotation path highlight
RL/LR secondary rotation

How It Works

AVL trees maintain a balance factor on every node: height(left) - height(right). After each insertion or deletion, the tree updates heights bottom-up and performs one of four rotations if a node becomes unbalanced.