The machine operates as follows: For q∈Q, a∈Σ and δ(q,a)=(p,b,m), when in state q and scanning a, enter state p, replace a with b, and move the head (m is L, R, or S).
To do computation, we have to have some conventions about starting and ending the process. The machine stops immediately if (1) it enters any final state, or (2) it is in a state and scans a character for which there is no transition. (Note that there are many ways to define Turing Machines, and some definitions require an explicit reject state. We do not.)
M=(Q,Σ,Γ,s,F,δ) where
Q={q0,q1},
Σ={a},
Γ=Σ∪{#},
s=q0,
F=q1,
δ=
A configuration for a Turing machine looks like this:
This means that the TM is on state q, the tape contains aaba##_a and read / write head position is on the underlined a. In this book, any TM starts running with the read/write head position is on the first Tape letter from the left.
A halted configuration occurs when the machine do not find a move from the given state using the tape letter (the current configuration). In other words, TM halts if there is no Δ defined. That is why in this book we always assume that there are no transitions defined out of the final state. Therefore, any TM will halt once it entered a final state.