Math 2.0

Computer science Definition

Epsilon-NFA

Builds on AlphabetStringFormal languagePower set

Definition

Let ε\varepsilon denote the empty string. An ε\varepsilon-NFA is a tuple N=(Q,Σ,Δ,q0,F)N = (Q, \Sigma, \Delta, q_0, F) where:

  1. QQ is a nonempty finite set of states;
  2. Σ\Sigma is an alphabet with ε∉Σ\varepsilon \notin \Sigma;
  3. Δ ⁣:Q×(Σ∪{ε})→𝒫(Q)\Delta \colon Q \times (\Sigma \cup \set{\varepsilon}) \to \mathcal{P}(Q) is the transition function, with values in the power set of QQ;
  4. q0∈Qq_0 \in Q is the initial state;
  5. F⊆QF \subseteq Q is the set of accepting states.

The automaton NN accepts a string w∈Σ∗w \in \Sigma^* when w=y1y2⋯ymw = y_1 y_2 \cdots y_m for some y1,…,ym∈Σ∪{ε}y_1, \ldots, y_m \in \Sigma \cup \set{\varepsilon}, and there are states r0,…,rmr_0, \ldots, r_m with r0=q0r_0 = q_0, ri∈Δ(ri−1,yi)r_i \in \Delta(r_{i-1}, y_i) for 1≤i≤m1 \le i \le m, and rm∈Fr_m \in F. The language of NN is the formal language L(N)L(N) of all strings that NN accepts.

Remarks

Example: over Σ={a,b}\Sigma = \set{a, b}, let Q={0,1,2}Q = \set{0, 1, 2}, q0=0q_0 = 0, F={1,2}F = \set{1, 2}, Δ(0,ε)={1,2}\Delta(0, \varepsilon) = \set{1, 2}, Δ(1,a)={1}\Delta(1, a) = \set{1}, Δ(2,b)={2}\Delta(2, b) = \set{2}, and Δ=∅\Delta = \emptyset on all other pairs. The word aaaa is accepted with y=(ε,a,a)y = (\varepsilon, a, a) and states 0,1,1,10, 1, 1, 1, and L(N)={am:m≥0}∪{bn:n≥0}L(N) = \set{a^m : m \ge 0} \cup \set{b^n : n \ge 0}. Non-example: the word abab is not accepted, since after reading aa every run is in state 11, which has no bb-move. The ε\varepsilon-closure E(q)E(q) of a state qq is the set of states reachable from qq by ε\varepsilon-moves alone. Replacing Δ(q,a)\Delta(q, a) by ⋃p∈E(q)⋃r∈Δ(p,a)E(r)\bigcup_{p \in E(q)} \bigcup_{r \in \Delta(p, a)} E(r) and making qq accepting when E(q)∩F≠∅E(q) \cap F \ne \emptyset removes the ε\varepsilon-moves without changing the language.

Reading path

To understand this page from the ground up, read these 5 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. Alphabet concept
  2. Formal language concept
  3. Power set concept
  4. String concept
  5. Epsilon-NFA definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Nondeterministic_finite_automaton
About this page
TagD5AVGS2646
URIm2://D5AVGS2646
Kinddefinition
WritingW0 stub
MSC68Q45
DefinesEpsilon-NFA
UsesAlphabet, String, Formal language, Power set
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.