Nondeterministic Automata and Subset Construction

Interpret deterministic states as sets of all reachable nondeterministic states, including epsilon transitions.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Nondeterminism uses existential acceptance
  2. The number of possible sets can be exponential

Nondeterminism uses existential acceptance

An NFA accepts if some path consumes the entire input and ends in an accepting state. Empty transitions may be taken without consuming symbols. A deterministic simulation begins with the epsilon closure of the initial state. On the next symbol, take every outgoing transition with that label from the current set, then take the epsilon closure of the destinations. Induction establishes that the resulting set contains exactly the states reachable after the current prefix.

The number of possible sets can be exponential

Consider strings whose \(k\)-th symbol from the end is one. An NFA can guess a one and then count exactly \(k-1\) remaining symbols. For a deterministic machine, every distinct length-\(k\) suffix can be distinguished from another by appending a suitable number of zeros so their differing position becomes the \(k\)-th from the end. This explains why the construction can produce exponentially many states. Myhill–Nerode equivalence formalizes this distinguishability. Regular expression matching can use active sets without building every deterministic state in advance.[1][2]

References

  1. Michael Sipser, Introduction to the Theory of Computation ↩
  2. MIT OpenCourseWare, Automata, Computability, and Complexity: Lecture Notes ↩