Can you add one to a tally if you can only see one mark at a time?
You’re keeping a tally at a GAA club. To add one more mark, you need to find the end. Now suppose you can only see one space at a time. What rules would get you to the right spot?
You already know that an algorithm gives instructions in an order. To add a tally mark, you find the first empty space, write the mark, then stop. Finding that space is the part we need to break into smaller instructions.
You can see three ones and a blank. Each space is a cell, and the dots show that the tape keeps going. The read and write head starts on the first one. It can read or change the cell it is on, then move to a neighbouring cell.
The tape shows three ones followed by a blank. You start with the head on the first one and move it one cell to the right. What can the head read now? Pick an answer.
A state tells you what mode the machine is in. It starts in Scan. Match the state and the symbol to choose a transition rule. For a one, write one, move right and stay in Scan. For a blank, write one, move right and enter Halt, which stops the machine.
The brackets show where the head is. Start on the first one in Scan. Each time you read a one, leave it there and move right. After three moves you reach the blank. Write a one there, move right again and halt. The tape now contains four ones.
This time you start in Scan on the first of two ones. Use the same two rules and picture where the head moves. When the machine halts, what does the tape look like? Pick an answer.
If you stop at the blank, you skip the rule that adds the mark. Write one, move right, then halt. Fixed rules work when you know the exact steps. To recommend videos, you could train a decision tree on views labelled finished or unfinished. It predicts which videos someone will finish.
If the exam asks you to distinguish Turing’s model from a physical early computer, use the trace. The tape, head and rules let you work out what the machine does without building it. A physical computer is a device that actually runs instructions.