WIPIVERSE All articles

Deterministic automaton

A deterministic automaton is a mathematical model of computation in which, for each state and each input symbol, there exists exactly one transition to a subsequent state. This property of having a single, well‑defined next state distinguishes deterministic automata from nondeterministic automata, where multiple possible transitions may exist for a given state and input.

Formal definition

A deterministic automaton  $A$  is a 5‑tuple
$$ A = (Q, \Sigma, \delta, q_0, F) $$ where

  • $Q$ is a finite, non‑empty set of states.
  • $\Sigma$ is a finite input alphabet.
  • $\delta : Q \times \Sigma \to Q$ is the transition function, assigning a unique next state to each pair $(q, a)$ with $q \in Q$ and $a \in \Sigma$.
  • $q_0 \in Q$ is the initial (start) state.
  • $F \subseteq Q$ is the set of accepting (final) states.

A computation on an input string $w = a_1a_2\ldots a_n \in \Sigma^*$ proceeds by iteratively applying $\delta$ starting from $q_0$: $$ q_{i} = \delta(q_{i-1}, a_i) \quad \text{for } i = 1,\dots,n . $$ The automaton accepts $w$ if the final state $q_n$ belongs to $F$; otherwise, it rejects $w$.

Common subclasses

  • Deterministic Finite Automaton (DFA) – The most widely studied class; the set $Q$ is finite, and the automaton processes finite strings without auxiliary memory.
  • Deterministic Pushdown Automaton (DPDA) – Extends a DFA with a stack, allowing recognition of a proper subset of context‑free languages (the deterministic context‑free languages).
  • Deterministic Turing Machine (DTM) – A deterministic version of the general Turing machine model; it underlies the classical definition of algorithmic computability.

Relationship to nondeterministic automata

For finite automata, the class of languages recognized by deterministic automata (regular languages) coincides with that recognized by nondeterministic finite automata (NFAs). The subset construction algorithm can convert any NFA into an equivalent DFA, although the resulting DFA may have exponentially more states. For pushdown automata and Turing machines, determinism imposes stricter expressive limits: nondeterministic pushdown automata accept all context‑free languages, whereas deterministic pushdown automata accept only the deterministic context‑free languages.

Properties

  • Uniqueness of computation – Given an input string, a deterministic automaton has exactly one computation path.
  • Decidability of key questions – For DFAs, language emptiness, finiteness, universality, equivalence, and minimization are decidable in polynomial time.
  • Closure – The class of languages recognized by deterministic automata (e.g., regular languages for DFAs) is closed under union, intersection, complementation, concatenation, and Kleene star.

Applications

  • Lexical analysis – Compilers use DFAs to implement token recognizers efficiently.
  • Pattern matching – Tools such as grep and regular‑expression engines compile patterns to deterministic automata for fast matching.
  • Hardware design – Finite‑state machines, implemented as DFAs, model sequential circuits and control logic.
  • Protocol verification – Deterministic models describe allowable sequences of events in communication protocols.

Example

Consider the DFA that accepts binary strings containing an even number of zeros:

  • $Q = {q_{\text{even}}, q_{\text{odd}}}$

  • $\Sigma = {0,1}$

  • Transition function $\delta$:

    • $\delta(q_{\text{even}}, 0) = q_{\text{odd}}$
    • $\delta(q_{\text{even}}, 1) = q_{\text{even}}$
    • $\delta(q_{\text{odd}}, 0) = q_{\text{even}}$
    • $\delta(q_{\text{odd}}, 1) = q_{\text{odd}}$
  • Initial state $q_0 = q_{\text{even}}$

  • Accepting set $F = {q_{\text{even}}}$

The automaton deterministically processes any binary input string, ending in $q_{\text{even}}$ precisely when the number of zeros is even.

Browse

More topics to explore

    Browse all articles