“Draw a Turing machine for unary increment: in q0, read 1, write 1, and move right; on blank B, write 1, stay, and enter accepting qa.”
Comprenez les décisions qui le sous-tendent.
q0 preserves each unary mark while moving right.
B marks the end of the current number.
qa is reached after the new final 1 is written.
Use this machine to introduce the read/write/move notation of a Turing machine.
Questions fréquentes
What does 1/1,R mean?
Read 1, write 1 back to the tape, then move the head one cell right.
Why does the machine write on B?
The first blank marks the end of the unary number, so writing 1 there appends one unit.
What does S mean?
S means stay; the tape head does not move after that transition.