Finite Automata represent the simplest abstract computing devices in computer science. They possess zero auxiliary storage (no stack, no heap, no tape), retaining memory solely through their current finite state.
1. The Formal 5-Tuple
Mathematically, a DFA is formalized as an ordered quintuple:
M = (Q, Sigma, δ, q₀, F) -
Q: A non-empty, finite set of internal control states. -
Sigma: A finite input alphabet (e.g.\0, 1\or\a, b\). -
δ: The state transition function:δ: Q imes Sigma o Q. -
q₀: The unique start state (q₀ ∈ Q). -
F: The set of final or accepting states (F ⊆ Q).
2. Total Function Invariant
The defining characteristic of a DFA is that δ is a total function. For every single state q ∈ Q and for every single alphabet symbol a ∈ Sigma, there exists exactly one transition to another state in Q.
Unlike Non-Deterministic Finite Automata (NFAs), a DFA cannot make ε-transitions without reading input, nor can it possess multiple transitions on the same symbol.
3. String Acceptance Condition
To formalize the processing of multi-character strings, we extend δ to the extended transition function hatδ: Q imes Sigma^* o Q:
- Basis:
hatδ(q, ε) = q - Induction:
hatδ(q, wa) = δ(hatδ(q, w), a)
A string w is formally accepted by M if and only if hatδ(q₀, w) ∈ F.
Explore the full interactive Theory of Computation curriculum on Binary Dose.
