Search algorithmsCTRL K

Trees

· 10 algorithms · tree visualizer
Start with Binary search tree
// trees

Trees keep data ordered while it changes. A binary search tree makes insert, lookup and delete logarithmic, as long as it stays balanced.

Ten pages show the trade-offs: plain BST and its traversals, self-balancing AVL and red-black trees, B-trees for disks, heaps and tries for special shapes of data.

Binary search tree
BST insert · 20 keys
comparedinsertedin tree

All algorithms

10
Each card runs its own algorithm