Algomination
Data Structures
AboutContact

Algomination

Learn algorithms and data structures through smooth, interactive visualizations.

SortingSearchingArray AlgorithmsData StructuresAboutContact

© 2026Algomination. Created by Omang Rawat & Rahul Soni.

Omang Rawat
Rahul Soni
All data structures

AVL Tree (Self-Balancing BST)

Guaranteed O(log n)Space O(n)

A binary search tree that rotates after every insert and delete to keep itself balanced, guaranteeing O(log n) operations. Each node's balance factor stays within {-1, 0, 1}.

50
10+1
20+1
250
30+1
350
400
500
A self-balancing BST. After every insert or delete it rotates so each node's balance factor stays in {-1, 0, 1}.
ActiveUnbalancedFoundSmall number above each node is its balance factor.

About AVL Tree (Self-Balancing BST)

A binary search tree that rotates after every insert and delete to keep itself balanced, guaranteeing O(log n) operations. Each node's balance factor stays within {-1, 0, 1}.

Time complexity: O(log n). Space complexity: O(n).

Use the interactive visualizer above to run AVL Tree (Self-Balancing BST) on your own input and watch every comparison, swap, and operation animate step by step — pause, scrub, or replay at any speed.