Year 2 (ages 6–7, Grade 1 in the US) · Computing · Programming a floor robot · Lesson 1
What is an algorithm?
Understanding that algorithms are precise step-by-step instructions, putting steps in order and spotting bugs.
Exam boards: this lesson matches the AQA and Pearson Edexcel GCSE computing courses. Check which course your school follows.

13-minute video lesson
Teaching, worked examples and 20 practice questions solved step by step.
Watch free for a monthWhat your child will learn
- Know what an algorithm is
- Order instructions
- Write exact steps
- Find and fix bugs
The method
- Break the task into small steps.
- Put them in the right order.
- Make each step exact.
- Test it - debug any mistakes.
Key words: algorithm, instructions, order, bug, debug, program.
Worked examples
Worked examples from the lesson, with every step.
Question 1
Is a recipe an algorithm?
- Step 1: steps in order
Answer: yes
Question 2
Is a shopping list an algorithm?
- Step 1: no steps
Answer: no - it isn't step-by-step instructions
Question 3
Order: put on shoes / put on socks
- Step 1: socks first
Answer: socks, then shoes