Skip to content

Algorithms

Sixty-seven algorithms in eight families. Pick one to watch it work, one step at a time.

ordering

Putting a row of numbers in order, smallest first.

finding

Finding one number in a row without looking at every one.

storing

Keeping things so they are quick to add, find and take out again.

networks

Places joined by roads: the shortest way, the cheapest links, what has to come first.

planning ahead

Making the best choice when every choice changes what comes next.

words

Finding a short piece of text inside a long one.

puzzles

Classic puzzles, solved by trying, ruling out and moving one piece at a time.

learning

Learning from examples to sort new points into classes, or to predict a number.