What Is An Algorithm?

Science Interactive lesson Free to play

An algorithm is a list of steps, written in the right order, that finishes a job. Recipes, hand-washing routines and the instructions for tying shoelaces are all algorithms β€” and so is every set of instructions a computer follows, from sorting a class list by name to working out the fastest MRT route.

Algorithms matter because computers have no common sense. A person told to "cook the rice properly" will fill in the gaps; a computer cannot. Instructions must be exact ("add 2 cups of water"), complete, and in a sequence that actually works β€” soap goes on after the tap is turned on, socks before shoes. Change the order and the same steps produce a mess.

The core ideas a young learner picks up are: sequence (order changes the result), precision (vague steps fail), repetition (a step like "find the smallest, put it first, repeat" is how Selection Sort works), and debugging β€” finding the one wrong or missing step when a program misbehaves. These are the foundations of computational thinking that Primary-school coding, robotics and Scratch work all build on.

β–Ά Play the lesson β€” free, no signup

Want to create your own Spark? Sign up free β€” type any skill and LearnBuddy builds you a playable lesson.

Sign up free to create your own Spark

What this Spark covers

Frequently asked questions

What is an algorithm in simple words for a child?
An algorithm is a set of steps, in order, that gets something done β€” like the steps for making a sandwich or brushing your teeth. Computers follow algorithms the same way, except they need every step spelt out exactly.
Do you need to know how to code to understand algorithms?
No. Algorithms are about thinking clearly in steps, not about typing code. Children can build and test algorithms using everyday routines, step-cards or drag-and-drop blocks long before they write a line of a programming language.
Why does the order of steps matter so much?
Because each step often depends on the one before it. Putting shoes on before socks uses exactly the same steps as the correct version, but the result does not work β€” and a computer will carry out the wrong order without complaining.
What does "debugging" mean?
A bug is a mistake in an algorithm β€” a step that is missing, wrong, or out of place. Debugging is the process of tracing through the steps one by one to find that mistake and fix it, which is a skill programmers use every single day.
Is this related to what my child learns in school?
Yes. Algorithmic thinking underpins the Code for Fun programme and the coding, robotics and Scratch activities many Singapore primary schools run, and it also strengthens Maths problem-solving, where working through steps in the right order is exactly what's being marked.

More Sparks like this

Related practice papers

Related reads

Loved this Spark? Sign up free for AskBuddy AI tutoring, past-year papers, and unlimited Sparks.

Sign up free β†’