WillTeachMaths logo

WillTeachMaths

Thinking-first maths tools

Back to Learn

Algorithms

Clear step-by-step methods for solving a problem.

An algorithm is a rulebook for what to do next. Good algorithms are precise enough that someone else, or a computer, could follow them.

Tiny example

Find the smallest

Look through a list and keep track of the smallest number seen so far.

Every step is simple, but together the steps solve the whole task.

Why it matters

Algorithms power search, route finding, optimisation, sorting, simulations and many interactive tools.

Things to watch for

  • Writing a vague instruction where a precise step is needed.
  • Forgetting to say when the algorithm stops.
  • Assuming a faster-looking method always gives the correct answer.

Try it in a tool