Definition (epsilon-nondeterministic finite automata)
An $ε$-nondeterministic finite automaton ($ε$-NFA) is a tuple $E = (Q, Σ, δ, q_0, F)$ where
-
$Q$ is a non-empty finite set (of states);
-
$Σ$ is a non-empty finite set (the alphabet);
-
$δ: Q\times (Σ\times \set{ε})\to \mathcal{P}(Q)$ (the transition function);
-
$q_0 \in Q$ (the start state); and
-
$F\subseteq Q$ a subset (of accepting states).
Let the $ε$-closure of a set $S\subseteq Q$ be $$ \begin{align*} \op{ecl}(S) := \bigcup_{n=0}^{\infty} S_n \qquad \text{where }S_0 := S,\; S_{n+1} = S_n \cup \bigcup_{q\in S_{n}} δ(q, ε). \end{align*} $$
Extend $δ$ to $\hat δ: Q \times Σ^\ast\to \mathcal{P}(Q)$ by $$ \begin{align*} \hat δ(q, ε) := \op{ecl}(q), \qquad \hat δ(q, wa) := \op{ecl}\left(\bigcup \sb{δ(p, a)}{p\in \hat δ(q, w)}\right). \end{align*} $$ The language accepted by $E$ is $$ \begin{align*} \mathcal{L}(N) := \sb{w\in Σ^\ast}{\hat δ(q_0, w)\cap F \neq \emptyset}. \end{align*} $$