An epsilon nondeterministic finite automaton (NFA) has null or epsilon transitions from one state to another. Epsilon NFA is also called a null NFA or an NFA lambda.
A regular expression for a language forms an epsilon NFA. This epsilon NFA then converts to a simple NFA. We then use the simple NFA to make a deterministic finite automaton (DFA).
We require null closure to convert an epsilon NFA to an NFA. Moreover, it shows us the states we can transcend due to a null transition.
Note: We can visit here to learn how to convert an epsilon NFA to NFA.
Let's suppose an NFA
The null closure of
Consider the following epsilon NFA, where
The null closure of the NFA is as follows:
State | Set |
q0 | {q0, q1, q3} |
q1 | {q1, q3} |
q2 | {q2} |
q3 | {q3} |
We determine this null closure by how a transition transcends from one state to another with a null input.
Free Resources