Tested tool guide
Tested browser tools
Checked August 15, 2026
What Binary Tree Visualizer does, with a checked example
This tool builds a binary search tree on screen as you insert, delete, or search for keys, then plays back each rotation or recoloring step so you watch the tree rebalance rather than just see the end state. Switch between plain BST, AVL, and red-black modes to compare how each structure handles the same sequence of keys. The most common surprise: two trees holding the identical set of keys can look completely different in shape, because BST and AVL results depend on the order keys were inserted, not just which keys are present.
Worked example
A concrete input and expected output from the current implementation.
Input
AVL mode, insert in order: 10, 20, 30
->
Expected output
Root 20, with 10 as its left child and 30 as its right child; balance factor 0 at every node.
Inserting 20 then 30 makes node 10 right-heavy by two levels (a right-right case), so the tool performs a single left rotation at 10, promoting 20 to root with 10 and 30 as its children.