AlgoLab

Every algorithm here runs on data you choose and records each step it takes, so you can stop anywhere, go backwards, and read what it was doing. Pick one.

29 algorithms

Sorts

Putting things in order, and what each way costs.

Finding a value, and what you have to know about the data first.

AI-era algorithms

How a language model turns text into tokens, how every token is scored against every other, how the next one is picked, how a cache avoids redoing that scoring at every step, and how several tokens can be proposed cheaply and verified together instead of one at a time. These run no model: every number comes from data written by hand and shown in full inside the tool.