← RGPV CD-501 Theory of Computation December 2024 Solved Question Paper
Question
Convert the ε-NFA to an NFA: initial q₀, final q₂; q₀↔q₁ on 1, q₀→q₂ on ε, q₂↔q₃ on 0, q₂→q₄ on 1, q₄→q₂ on 0.
Asked in: CD-501 | December 2024 | 6(b)
Answer
The diagram has initial q₀, final q₂, ε edge q₀→q₂, 1 edges in both directions between q₀ and q₁, 0 edges in both directions between q₂ and q₃, and q₂→q₄ on 1 and q₄→q₂ on 0.
The ε-closures are E(q₀)={q₀,q₂} and E(qᵢ)={qᵢ} for i=1,2,3,4. Define δ′(q,a)=E(δ(E(q),a)), where closure and transition are extended to sets by union. A state is final in the new NFA if its closure intersects the original final set. Thus q₀ and q₂ are final.
For q₀ on 0, its closure can move from q₂ to q₃, so the result is {q₃}. On 1, q₀ moves to q₁ and q₂ moves to q₄, giving {q₁,q₄}. For q₁ on 1, the destination q₀ has closure {q₀,q₂}. The remaining transitions are unchanged.
| State | 0 | 1 |
|---|---|---|
| →* q₀ | {q₃} | {q₁,q₄} |
| q₁ | ∅ | {q₀,q₂} |
| * q₂ | {q₃} | {q₄} |
| q₃ | {q₂} | ∅ |
| q₄ | {q₂} | ∅ |
The resulting NFA has no ε edges and accepts the same language. In particular ε remains accepted because q₀ is now final.

← RGPV CD-501 Theory of Computation December 2024 Solved Question Paper
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion