Hands-On Science Lab

Glossary โ€บ Coding โ€บ Algorithm

Algorithm

A set of step-by-step instructions to do something.

For kids

A recipe is an algorithm. So is the route to school. Computers follow algorithms, one step at a time, exactly as written.

For grown-ups

Algorithms are precise, ordered procedures that solve a problem. Good algorithms are correct, clear and efficient. Writing them for humans to follow ('program a parent to make toast') reveals how much we usually leave unsaid.

Try it in one minute

Write instructions for brushing teeth. Ask someone to follow them exactly, word for word.

Common mix-up

An algorithm isn't a program yet; a program is an algorithm written in a language a computer understands.

See it in an activity