AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Efficient algorithms

Week 8 · Unit 4: Be a designer · 3 lessons
Answers are for parents and teachers.
1
Write an algorithm for walking from your door to the table, one step at a time. Then write a shorter one by joining steps. How many steps did you save?
2
Rewrite with fewer steps: Start, Move 1, Move 1, Turn left, Move 1, Move 1, Move 1, Stop.
3
Think about setting the table for four people. Which steps repeat? Write the algorithm using “repeat”.
4
Do the steps cancel out? Turn left, Turn right, Move 3.
5
Tell a grown-up two reasons why efficient algorithms are good.