Math 2.0

Computer science Automata and formal languages Theorem

Powerset construction

Builds on Nondeterministic finite automatonDeterministic finite automatonPower set

Statement

Let N=(Q,Σ,Δ,q0,F)N = (Q, \Sigma, \Delta, q_0, F) be a nondeterministic finite automaton. Let 𝒫(Q)\mathcal{P}(Q) be the power set of QQ. Define the deterministic finite automaton D=(𝒫(Q),Σ,δ,{q0},FD)D = (\mathcal{P}(Q), \Sigma, \delta, \set{q_0}, F_D) by δ(S,a)=⋃q∈SΔ(q,a)andFD={S⊆Q:S∩F≠∅}.\delta(S, a) = \bigcup_{q \in S} \Delta(q, a) \quad \text{and} \quad F_D = \set{S \subseteq Q : S \cap F \ne \emptyset}. Then L(D)=L(N)L(D) = L(N). In particular, every language accepted by an NFA with nn states is accepted by a DFA with at most 2n2^n states.

Remarks

By induction on the length of ww, the state δ∗({q0},w)\delta^*(\set{q_0}, w) is exactly the set of states that NN can reach from q0q_0 by reading ww. So DD accepts ww if and only if some run of NN on ww ends in FF. In practice one builds only the subsets reachable from {q0}\set{q_0}, which are often few. The bound 2n2^n cannot be improved in general. The language of words over {a,b}\set{a, b} whose nn-th letter from the end is aa has an NFA with n+1n + 1 states. But every DFA for it needs at least 2n2^n states, since it must remember the last nn letters. For an NFA with ε\varepsilon-moves, the same construction works after replacing each set by its ε\varepsilon-closure.

Going deeper

For a student

This theorem shows that nondeterminism adds no power to finite automata, unlike the open question for polynomial-time Turing machines. It is the standard way to prove that NFAs, ε\varepsilon-NFAs and DFAs all accept exactly the regular languages. Combined with the translation of regular expressions into ε\varepsilon-NFAs, it is how lexer generators and some search tools turn a pattern into a fast deterministic matcher. The resulting DFA can then be reduced by DFA minimization.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Deterministic finite automaton concept
  2. Nondeterministic finite automaton concept
  3. Power set concept
  4. Powerset construction statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Powerset_construction
About this page
TagDDVYP8RNG8
URIm2://DDVYP8RNG8
Kindstatement, theorem
WritingW0 stub
MSC68Q45
StatusThis copy of the site has no build data. Run m2 status DDVYP8RNG8.
AboutNondeterministic finite automaton, Deterministic finite automaton
UsesNondeterministic finite automaton, Deterministic finite automaton, Power set
Same as
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.