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

CodingAges 8โ1135 minutesFamily plan
๐ Grid Treasure Code
Write step-by-step code to move a 'robot' across a paper grid to the treasure. Find the bugs and shorten it with loops.
CodingAges 4โ720 minutesFamily plan