20
Algorithm performers
Textbook: pp. 51–53
GoalKnow who can be an algorithm performer and understand that a performer knows only its own commands.
New words
performer · ijrochirobot · robotset of commands · buyruqlar to‘plamiexact, clear · aniq
Explanation
The one who carries out an algorithm is called a performer. A performer can be a person, some animals, a robot or a computer. Each performer understands only the commands it knows. A puppy understands the command “sit”, but not computer commands. The commands in an algorithm must be exact and complete for that performer.
↑ ↑ → →
The robot left the grid — change the commands
⚙️ Where will I use this?
In real life
A door lock can only open or close. It knows nothing else.
Try it today
Give one exact command, such as “Raise your hand”.
Worked examples
| Robot knows | Robot doesn’t know |
|---|---|
| go forward, turn right, turn left | dance |
For soup it is enough to tell a person “add salt”. For a robot we must write exactly: “take one teaspoon of salt and put it into the pot”.
Class activity
“Trusty robot”: a child is the “robot” who obeys only three commands: “forward”, “turn right”, “turn left”. The class builds an algorithm to lead it between the desks to the board.
Practice
1
Give three examples of an algorithm performer.
person, robot, computer, puppy
2
A robot knows “forward”, “turn right”, “turn left”. Can it carry out “draw a house”?
No, this command is not in its set
3
Make a 4-step algorithm for crossing the road at a traffic light.
Free answer (stop, look at the light, wait for green, look both ways and cross)