A Turing Machine is formally defined as a 7-tuple (Q, Σ, Γ, δ, q₀, qaccept, qreject) where:
Qis 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, whereLindicatesq₀ ∈ Qis the start stateqaccept ∈ Qis the accept stateqreject ∈ Qis the reject state, whereqreject ≠ qaccept