Algorithms (2/2)

Computing: Year 5 & 6 National Curriculum, topic 3.1.4

Algorithms

Repetition

Repetition

  • Repetition means doing the same step over again.
  • The step can be repeated with different variables.
  • A variable is something that can change.
Repetition: example

Repetition: example

  • The toppings must be placed on the cakes.
  • The step is repeated for each cake (repetition).
  • But the type of topping can change each time (variable).
Repeat until...

Repeat until...

  • Sometimes a step can be repeated until something happens.
  • Then we can move to the next step.
  • A step is repeated until something happens.
  • This step is called a ‘repeat until’ instruction.
Repeat until: example

Repeat until: example

  • Put cake batter in each paper case.
  • Repeat until all the cases are filled
  • Then stop and go to the next step.

Test yourself on Algorithms (2/2)

  • What is a variable?

  • What does a 'repeat until' instruction do?

  • What do you call it when you change the cupcake topping each time?

  • What does repetition mean in computing?

Practise this topic for free