Please wait
Loading technology simulations
The requested content is still loading.
Finished experimenting?
Save one completion to this browser's signed guest ledger, or directly to your account when signed in.
Please wait
Loading technology simulations
The requested content is still loading.
Save one completion to this browser's signed guest ledger, or directly to your account when signed in.
1insert(node, v):2 if node is null: return Node(v)3 if v < node.value:4 node.left = insert(node.left, v)5 else:6 node.right = insert(node.right, v)
This binary search tree simulator animates the one rule that defines a BST: smaller values go left, larger go right. Insert a value and watch it walk from the root to its slot; search a value and follow the highlighted path to a match or a dead end. The lab makes balance tangible with a tree-shape card comparing the current height against the ideal log-base-2 height and the worst case, and a one-tap Skewed preset that inserts already-sorted values so the tree collapses into a linked-list chain of height n. The signature interaction: Predict mode pauses each search and asks you to call left, right, or found at every node before it moves, with instant feedback and a score, turning passive watching into active recall of the comparison rule.
binary search tree · BST insert and search · tree height and balance · O(log n) vs O(n) · in-order traversal · self-balancing trees · degenerate tree
Browse all Technology simulations →
Free to use in your browser — no signup required. Found a bug or have an idea to make it better? Tell us.