CodeViz

Everything in CodeViz

Two collections, both free and both interactive: 48 algorithm pages covering Princeton's Algorithms Part I and II, and 55 built-in problems with a full statement, a worked solution and test cases. Everything opens in the visualizer and runs on input you choose.

Pages

Algorithms, visualized · 48 pages

Every core algorithm from Princeton's Algorithms Part I and Part II, in lecture order. Each page has the Python, its cost, the invariant that makes it correct, and a step-by-step animation you drive yourself. Start at the index, or open any algorithm below.

Part I — data types, sorting, searching

Union–Find

Analysis of algorithms

Stacks and queues

Elementary sorts

Sorting applications

Mergesort

Quicksort

Priority queues

Binary search trees

Balanced search trees

Hash tables