Interactive Tree Visualizers
Select an algorithm to inspect real-time pointer manipulation and coordinate layout.
Binary Search Tree (BST)
HierarchicalOrdered binary tree where left descendants are strictly less than and right descendants are greater than the node. Features dynamic SVG non-overlapping layout, search, insertion, deletion, and inorder/preorder/postorder/level-order traversals.
AVL Tree (Self-Balancing BST)
Self-BalancingStrictly height-balanced BST guaranteeing O(log n) operations. Calculates balance factors and executes single (LL, RR) or double (LR, RL) rotations when imbalance exceeds ±1.
Red-Black Tree
Self-BalancingCLRS self-balancing binary search tree using node color bits (red/black), NIL sentinels, recoloring, and rotation fixups guaranteeing O(log n) worst-case height.
B-Tree
Multi-WaySelf-balancing multi-way tree data structure with order m. Nodes maintain between ceil(m/2)-1 and m-1 keys, executing proactive node splits to minimize block read operations.
Tree Traversal Strategies
Visits nodes in strictly ascending numerical order in a BST.
Useful for cloning or serializing the exact tree structure.
Essential for bottom-up deletions, subtree sizing, and expression tree evaluation.
Visits nodes depth by depth using a FIFO queue.