Writing an algorithm sounds abstract, but it's really just writing down a set of instructions carefully enough that someone else could follow them exactly — a skill that reveals itself to be much harder than it first appears.
Explaining coding concepts is one thing; actually writing an algorithm forces a child to confront the gap between what feels obvious and what's actually been stated. This hands-on writing practice builds the precision habit covered conceptually in our what is coding introduction far more effectively than explanation alone.
| Topic | Why It Works Well |
|---|---|
| Morning routine | Familiar, clear order, appropriately short |
| Making a sandwich | Concrete steps with an obvious final check (does it look right?) |
| Directions to a specific room | Requires precise, sequential spatial instructions |
| How to tie a shoe | Genuinely difficult to write precisely — a great challenge activity |
Writing the algorithm is only half the activity — testing it is where the real learning happens. Have someone else follow the written steps exactly, doing nothing that wasn't explicitly stated. Any point where they get stuck, do something unintended, or ask "wait, what do I do here?" reveals a missing or unclear step in the original algorithm — this mirrors the debugging concept from our unplugged coding activities guide.
When testing someone else's algorithm, following it overly literally (if a step says "put the bread on the plate" without specifying which slice, put down a random one) makes gaps obvious fast and turns the activity into a genuinely fun back-and-forth rather than a chore.
Once single-path algorithms feel comfortable, add a condition ("if it's raining, take an umbrella") or a loop ("repeat this step 3 times") to the instructions — connecting directly to the vocabulary covered in our coding vocabulary guide. This naturally increases complexity without requiring any screen or coding tool yet.
A morning routine works especially well — familiar, clear order, and short enough to write out completely.
It requires including every step explicitly, even obvious ones — most first attempts skip steps a person fills in automatically.
Have someone follow the steps exactly, doing nothing unstated — any point of confusion reveals a missing step.