2
Numbers and pictures
Computing 1: Topic 1.3, pp. 33–48
GoalNumber the steps of an algorithm and say that algorithms can use pictures.
New words
number the steps · write 1, 2, 3 beside the steps to show the orderpicture algorithm · an algorithm that uses pictures instead of words
Explanation
Numbers show the order of the steps. Step 1 is first. Step 2 is next. Numbers help us not to lose our place. Algorithms can use words. They can also use pictures or arrows. Both are algorithms if they show the steps in order.
Worked examples
Algorithm to colour a flag: 1 Colour the top stripe blue. 2 Colour the next stripe yellow. 3 Colour the next stripe red. 4 Colour the last stripe green.
This algorithm is made of pictures. Follow it from left to right: make a big ball of snow, put a small ball on top, then add a hat and a face.
Numbers make an algorithm easy to follow. If we mix up the cards, the numbers tell us the right order again.
Class activity
Flag algorithm: use four crayons. Write an algorithm with numbers for a flag with three stripes. Give it to a friend. They colour the flag without seeing yours. Compare the two flags. Did they match?
Practice
1
Algorithm: 1 Colour the top stripe blue. 2 Colour the next stripe yellow. 3 Colour the next stripe red. 4 Colour the last stripe green. Which step colours the red stripe?
Step 3.
2
Put the cards in order: A ‘3 colour red’, B ‘1 colour blue’, C ‘2 colour yellow’. Which comes first?
B, the card with number 1.
3
Can an algorithm use only pictures?
Yes, if the pictures show the steps in order.
4
Why do numbers help?
They show the order and help us keep our place.