Skip to content

Automata and tuple representations.

Writing Order of 4 types of tuples: -> Sets → Functions → States -> Symbol -> Subset

Purpose: Accept/reject strings over an input alphabet.

Tuple Format:

  • M = (Q, Σ, δ, q₀, F)
ComponentMeaningType
QFinite set of statesSet (States)
ΣInput alphabetSet (Input Alphabets)
δTransition functionFunction: Q × Σ → Q
q₀Initial stateState: q₀ ∈ Q
FSet of accepting statesSubset (State): F ⊆ Q

5 Tuples:
→ 2 Sets: Q, Σ
→ 1 Function: δ
→ 1 States: q₀ → 1 Subset: F

Tuple Format:

  • M = (Q, Σ, δ, q₀, F)Same as DFA, but:
ComponentChange
δQ × (Σ ∪ {ε}) → 𝒫(Q) (power set)

Changes Compared to DFA: 5 Tuples (Same count)
→ Only transition function δ changes to allow:

  • Multiple transitions (nondeterminism)
  • ε-transitions (empty string moves)

Purpose: Produce output for each input & State on transitions.

Tuple Format:

  • M = (Q, Σ, Δ, δ, λ, q₀)
ComponentMeaningType
QFinite set of statesSet (States)
ΣInput alphabetSet (Input Alphabets)
ΔOutput alphabetSet (Output Alphabets)
δTransition functionFunction: Q × Σ → Q
λOutput functionFunction: Q × Σ → Δ
q₀Initial stateState: q₀ ∈ Q

Changes Compared to DFA: 6 Tuples (+1) → 3 Sets: Q, Σ, Δ (+1)
→ 2 Functions: δ, λ (+1)
→ 1 State: q₀
→ ❌ No Subset F (No final state – Mealy transduces, doesn’t accept)

Purpose: Produce output based only on states.

Tuple Format:

  • M = (Q, Σ, Δ, δ, λ, q₀)
Componentλ (Output Function)
Mooreλ: Q → Δ

Changes Compared to DFA: 6 Tuples (+1) → 3 Sets: Q, Σ, Δ (+1)
→ 2 Functions: δ, λ (+1)
→ 1 State: q₀
→ ❌ No Subset F (No final state – Moore also transduces)

Purpose: Accept context-free languages using a stack.

Tuple Format:

  • M = (Q, Σ, Γ, δ, q₀, Z₀, F)
ComponentMeaningType
QStatesSet (State)
ΣInput alphabetSet (Alphabet)
ΓStack alphabetSet (Alphabet)
δTransition functionFunction: Q × (Σ ∪ {ε}) × Γ → 𝒫(Q × Γ*)
q₀Initial stateState
Z₀Initial stack symbolSymbol ∈ Γ
FAccepting statesSubset(State) ⊆ Q

Changes Compared to DFA: 7 Tuples (+2)
→ 3 Sets: Q, Σ, Γ (+1)
→ 1 Complex Function: δ using stack
→ 2 States: q₀ → 1 Symbol: Z₀ (+1) (initial stack symbol) → 1 SubsetF

Purpose: Model general computation using a tape.

Tuple Format:

  • M = (Q, Σ, Γ, δ, q₀, □, F)
ComponentMeaningType
QSet of statesSet (State)
ΣInput alphabet (subset of Γ)Set (Alphabet)
ΓTape alphabetSet (includes blank symbol )
δTransition functionFunction: Q × Γ → Q × Γ × {L, R}
q₀Initial stateState
Blank symbol (not in Σ)Symbol
FAccepting statesSubset (State) ⊆ Q

Changes Compared to DFA: 7 Tuples (+2)
→ 3 Sets: Q, Σ, Γ (+1)
→ 1 Function: δ includes read, write, move
→ 2 States: q₀ → 1 Symbol: (+1) (blank symbol) → 1 SubsetF

Summary Table

MachineTuple ComponentsKey AdditionsNotes
DFA(Q, Σ, δ, q₀, F)Base model
NFA(Q, Σ, δ, q₀, F)Modified δAllows nondeterminism & ε-moves
Mealy(Q, Σ, Δ, δ, λ, q₀)+Δ, +λ (Q×Σ→Δ) , - FOutput on transitions
Moore(Q, Σ, Δ, δ, λ, q₀)+Δ, +λ (Q→Δ), - FOutput on states
PDA(Q, Σ, Γ, δ, q₀, Z₀, F)+Γ (stack), +Z₀Stack-based (CFG recognition)
TM(Q, Σ, Γ, δ, q₀, , F)+Γ (tape), +□ (blank), +movementGeneral computation model