NFA with ε-moves: Formal definition
NFA with ε-moves: Formal definition
NFA with ε-moves: Formal definition
Nondeterministic finite automaton with ε-moves (NFA-ε) is a further generalization to NFA. This
automaton replaces the transition function with the one that allows the empty string ε as a
possible input. The transitions without consuming an input symbol are called ε-transitions. In the
state diagrams, they are usually labelled with the Greek letter ε. ε-transitions provide a
convenient way of modelling the systems whose current states are not precisely known: i.e., if we
are modelling a system and it is not clear whether the current state (after processing some input
string) should be q or q', then we can add an ε-transition between these two states, thus putting
the automaton in both states simultaneously.
Formal definition
Were
NFA with ∈ move: If any FA contains ε transaction or move, the finite automata is
called NFA with ∈ move.
ε-closure: ε-closure for a given state A means a set of states which can be reached from the
state A with only ε(null) move including the state A itself.
Step 2: Find the states for each input symbol that can be traversed from the present.
That means the union of transition value and their closures for each state of NFA
present in the current state of DFA.
Step 3: If we found a new state, take it as current state and repeat step 2.
Step 4: Repeat Step 2 and Step 3 until there is no new state present in the transition
table of DFA.
Step 5: Mark the states of DFA as a final state which contains the final state of NFA.
Example 1:
Convert the NFA with ε into its equivalent DFA.
Solution:
Hence
Now,
For state C:
Now we will obtain δ' transition. Let ε-closure(q0) = {q0, q1, q2} call it as state A.
1. δ'(A, 0) = A
2. δ'(A, 1) = B
3. δ'(A, 2) = C
Now we will find the transitions on states B and C for each input.
Hence
1. δ'(B, 0) = ϕ
2. δ'(B, 1) = B
3. δ'(B, 2) = C