A state is the only memory

The machine looks at one cell at a time. Once the head moves on, the cell it left is out of view, and the only thing the machine takes along is its state. Turing said this in the first section of his 1936 paper.1 The symbol under the head, he wrote, is the only one of which the machine is, so to speak, "directly aware". But:

by altering its m-configuration the machine can effectively remember some of the symbols which it has "seen" (scanned) previously.

An m-configuration is what Turing Daily calls a state. Deciding what each state should remember is most of the work of designing a machine, and in a puzzle, most of the work of reading one.

One state remembers nothing

A machine with one state treats every A alike and every B alike. It can turn every A into B, as in the first practice puzzle, or swap A and B everywhere. It cannot do anything that depends on where a cell is or on what came before it.

Two states: one yes-or-no fact

With two states a machine can carry one fact that is either true or false. This one adds a parity cell. It copies the input and writes one more cell at the end: A if the input has an even number of B cells, B if the number is odd. Afterwards every tape has an even number of B cells. The same trick, called a parity bit, has long been used in computer memory and on serial lines to catch a single flipped bit.2

This is a parity machine. State 1 means the number of B cells so far is even, and state 2 means it is odd.
InputOutput
ABBABBA
BABBABA
BBBBBBB
AAA

Each B switches the state and each A leaves it alone. At the blank, the state says which cell to add. Here is BBAB, which has three B cells:

StepStateReadsWritesMovesNextTape after
11BBright2BBAB
22BBright1BBAB
31AAright1BBAB
41BBright2BBAB
52blankBright✓BBABB

The machine never counts past one. It does not know how many B cells it has passed, only whether the number is odd or even, and that is all the last cell needs.

A state can hold a symbol

Sometimes the thing to remember is a symbol. This machine moves the input one cell to the right and puts an A in front, so BAB becomes ABAB. Every cell gets the symbol that stood before it, so the machine has to carry that symbol along as it walks. State 1 carries A and state 2 carries B.

This machine shifts the input. Each cell is overwritten with the symbol being carried, and the state switches to carry the symbol that was there.
StepStateReadsWritesMovesNextTape after
11BAright2AAB
22ABright1ABB
31BAright2ABA
42blankBright✓ABAB

The rule for each cell depends on two things, the symbol under the head and the symbol being carried. That is the shape of the rule table itself: one row for each symbol, one column for each state.

Three states: counting to three

To turn every third cell into B, the machine has to know where it is in a repeating count of one, two, three. Three positions need three states. Cells counted one and two are written back unchanged, the third is written as B, and the count starts again.

Every third cell becomes B. The states go round 1, 2, 3, 1, and only state 3 writes B.
InputOutput
AAAAAAAABAAB
ABABABABBBAB
AAAA

Every fourth cell would take four states, every tenth cell ten. The table grows with the number of situations the machine has to tell apart, not with the length of the input.

How many states does a job need?

Count the situations the machine can be in when it reads the next cell, where two situations count as different if the machine might have to act differently in them. Parity needs two: even so far and odd so far. The shifter needs two: carrying A and carrying B.

If two states act the same in every row, writing the same symbol, moving the same way and going to matching states, they are one state with two names. The daily puzzles are built to avoid this. The program that makes them throws away any table in which two states could be merged or a state is never used, so in a Turing Daily puzzle every state has a job of its own. Working out that job tells you a lot about the ? cells.

When solving, you will sometimes want state 2 reading B to write A in one example and B in another. That means the machine is missing a fact it needs. The number of states is fixed, so the fact has to be kept by a state you have not looked at closely yet, and some other cell should be sending the machine there.

What states cannot do

A fixed number of states can only tell a fixed number of situations apart. A machine that only moves right cannot decide whether its input has as many A cells as B cells, however many states it has: on a long enough input, the difference between the two counts can be larger than the number of states.3

A Turing machine gets around this with the tape. It can walk back and forth, cross off one A and one B at a time, and keep what is left of the count written down. Turing made the same point about people in 1936.1 Having argued that a human computer can only be in a finite number of states of mind, he added that this is no real limit, since

the use of more complicated states of mind can be avoided by writing more symbols on the tape.

Turing Daily puzzles stay small, with two or three states and inputs of at most six cells, so the interesting part is deciding what those few states should remember. The page on machines that turn around shows what changes when the head is allowed to come back.

Sources

  1. A. M. Turing, On Computable Numbers, with an Application to the Entscheidungsproblem, Proceedings of the London Mathematical Society s2-42 (1936), 230–265.
  2. Parity bit, Wikipedia.
  3. Michael Sipser, Introduction to the Theory of Computation, 3rd ed., Cengage, 2012, chapter 1.