Choose a country
Grade 4Computer scienceLogic and algorithms

Who carries out an algorithm

Lesson goal: Know what an executor and its command set are, and write algorithms using only the commands it understands.
← Logic and algorithms

About this lesson

Whoever carries out an algorithm, a person, an animal or a machine, is called the executor. A cook follows a recipe; a robot follows a program. Each executor has a list of commands it understands, called its command set. For example, Robot’s commands are “forward”, “turn left”, “turn right” and “pick up”. If Robot doesn’t know “dance”, it can’t do it. So an algorithm must use only the executor’s commands, in an exact order. The executor follows commands exactly as written, so a wrong command gives a wrong result.

Lesson goal: Know what an executor and its command set are, and write algorithms using only the commands it understands.

What the book shows

In computer science the child first learns to think through unplugged games: recognising information, ordering steps and learning safety rules.

Textbook link:

This is not the textbook’s text but a short description of the topic. Check the exact page in your own textbook.

The lesson step by step

  1. 1

    Warm-up5 min

    Robot game.

  2. 2

    New topic10 min

    Who is the executor?

  3. 3

    Practice10 min

    Command set.

  4. 4

    Game10 min

    Grid route.

  5. 5

    Wrap-up5 min

    My own executor.

Let’s understand

For the student Simple language

ExecutorCommand set
🤖 Robotforward, turn left, turn right, pick up
🐢 Turtle (draws)forward N steps, turn, pen up, pen down
🧺 washing machinefill, wash, rinse, spin
Algorithm = commands it knows + the right order

Going deeper

Scientific language: for older students, parents and teachers.

The same task can be solved by different algorithms; finding the shortest one is a favourite job for programmers.

Play and check

Does Robot know this command?

How to write it down

  1. Draw a 5×5 grid with Robot and a target.
  2. Write Robot’s route using its commands.

How the classwork looks in the notebook

15 November1Classwork2executor · command set · algorithm3
Writing order: 1 Date 2 Heading 3 Line 3: executor · command set · algorithm
Sample: the date and heading follow this country’s notebook rules.

Open notebook

Watch out: common mistakes

Using a command it doesn’t know. Stick to its command set.
Forgetting to turn. Robot can’t change direction without a turn command.

Where it helps in life

  • Branching in algorithms
  • Coding environments

At home

Core

  1. Write a 5-command algorithm for a family member to walk from one place at home to another.

Extra ⭐

  1. Invent your own executor and its 4 commands.

How to do it

  1. Do the task with a grown-up.
  2. Explain in words what you noticed.
Answers for parents

For example: “forward 3, turn left, forward 2, turn right, forward 1”. Executor example: Gardener-bot with “dig”, “plant seed”, “water”, “forward”.

Step-by-step homework solution — Show the solution (try it yourself first)
  1. Think

    1. Robot faces up and the target is 2 squares to the right: “turn right, forward, forward”.

How the homework looks in the notebook

15 November1Homework2Executors3
Writing order: 1 Date 2 Heading 3 Line 3: Executors
Sample: the date and heading follow this country’s notebook rules.

Check yourself