Algorithm Visualizers

17 algorithms and data structures, each animated one step at a time with the matching line of pseudocode highlighted as it runs. Pick one to watch it work, change the input, and scrub backwards and forwards through every comparison, swap and pointer move.

New to this? Start with Bubble Sort, then Binary Search, then BFS.

Sorting

From the quadratic sorts everyone learns first to the O(n log n) workhorses. Switch the input to sorted, reversed, nearly sorted or few-unique and watch how the shape of the data changes the amount of work.

Not sure which to open? See what each sorting visualizer shows best.

Searching

Two ways to find a value: check every element, or halve a sorted array until the target is cornered. Compare the step counts to see what sorting your data buys you.

Data Structures

The containers algorithms are built on. In the binary search tree and AVL tree you insert, search and delete your own values and watch the structure respond.

Graph

Traversal and shortest paths on a small graph you can follow by eye: a queue for breadth-first, a stack for depth-first, and for Dijkstra, always expanding the closest unvisited node.

Head-to-Head Comparisons

Written guides for the choices that come up most: which sort to use, when binary search pays off, and which traversal fits your graph. Each one ends with a clear verdict.

Prefer a one-page reference? See the Big-O and sorting cheat sheets.