SIMULATION CANVASRUNNING
Adjust the controls to explore the model.
Insert and remove values to see how self-balancing binary search trees preserve logarithmic height.
Live model · Adjustable parameters · Real-time feedbackAn AVL tree maintains a balance factor of −1, 0 or +1 at every node. When an insertion or deletion makes a node unbalanced, rotations restore the height invariant while preserving binary-search ordering.
Change one parameter at a time, observe the response, then reset and compare. The model runs locally in your browser and does not require an account or external libraries.