Class 11 converting NFA with ε to DFA
Class 11 converting NFA with ε to DFA
Step 1: We will take the ε-closure for the starting state of NFA as a
starting state of DFA.
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.
Solution:
Let us obtain ε-closure of each state.
ε-closure {q0} = {q0, q1, q2}
ε-closure {q1} = {q1}
ε-closure {q2} = {q2}
ε-closure {q3} = {q3}
ε-closure {q4} = {q4}
For state C:
Now we will obtain δ' transition. Let ε-closure(q0) = {q0, q1, q2}
call it as state A.
δ'(A, 0) = ε-closure{δ((q0, q1, q2), 0)}
= ε-closure{δ(q0, 0) ∪ δ(q1, 0) ∪ δ(q2, 0)}
= ε-closure{q0}
= {q0, q1, q2}
As A = {q0, q1, q2} in which final state q2 lies hence A is final state. B = {q1, q2} in
which the state q2 lies hence B is also final state. C = {q2}, the state q2 lies hence C is
also a final state.