Lably
Skip to content

Alternating finite automaton

  • 2 min read
  • 3 chapters

Related on Lably

Through Universal quantification and Tuple

  • For an existential transition (q,a,q1∨q2), A nondeterministically chooses to switch the state to either q1 or q2, reading a. Thus, behaving like a regular nondeterministic finite automaton.
  • For a universal transition (q,a,q1∧q2), A moves to q1 and q2, reading a, simulating the behavior of a parallel machine.

Note that due to the universal quantification a run is represented by a run tree. A accepts a word w, if there exists a run tree on w such that every path ends in an accepting state.

A basic theorem states that any AFA is equivalent to a deterministic finite automaton (DFA), hence AFAs accept exactly the regular languages.

An alternative model which is frequently used is the one where Boolean combinations are in disjunctive normal form so that, e.g., {{q1},{q2,q3}} would represent q1∨(q2∧q3). The state tt (true) is represented by {∅} in this case and ff (false) by ∅. This representation is usually more efficient.

Alternating finite automata can be extended to accept trees in the same way as tree automata, yielding alternating tree automata.

Formal definition

An alternating finite automaton (AFA) is a 5-tuple, (Q,Σ,q0,F,δ), where

  • Q is a finite set of states;
  • Σ is a finite set of input symbols;
  • q0∈Q is the initial (start) state;
  • F⊆Q is a set of accepting (final) states;
  • δ:Q×Σ×{0,1}Q→{0,1} is the transition function.

For each string w∈Σ∗, we define the acceptance function Aw:Q→{0,1} by induction on the length of w:

  • Aϵ(q)=1 if q∈F, and Aϵ(q)=0 otherwise;
  • Aaw(q)=δ(q,a,Aw).

The automaton accepts a string w∈Σ∗ if and only if Aw(q0)=1.

This model was introduced by Chandra, Kozen and Stockmeyer.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics