The transition () function of a Turing Machine (TM) is mapped as follows
Given a state and the current tape symbol (pointed by the tape-head) the transition writes a new symbol, changes state and moves the tape-head one cell either to the left or to the right.
Here are some example transitions and the notations used
In state with the tape-head reading , the machine goes to , writes , and moves the tape-head to the right.
In state with the tape-head reading , the machine goes to , writes , and moves the tape-head to the left.
The notation is reduced to
In state with the tape-head reading , the machine goes to , and moves the tape-head to the right.
The notation is reduced to
In state with the tape-head reading , the machine goes to , and moves the tape-head to the left.