A Turing Machine is formally defined as a 7-tuple (Q, Σ, Γ, δ, q₀, qaccept, qreject
) where:
Q
is a finite set of statesΣ
is a finite input alphabet not containing the blank symbol_
Γ
is a finite tape alphabet, where_ ∈ Γ
andΣ ⊂ Γ
δ: Q × Γ → Q × Γ × {'L, R'}
is the transition function, whereL
indicatesq₀ ∈ Q
is the start stateqaccept ∈ Q
is the accept stateqreject ∈ Q
is the reject state, whereqreject ≠ qaccept