← RGPV CS-501 Theory of Computation December 2025 Solved Question Paper
Question
Convert the NFA to an equivalent DFA: states {q₀,q₁}, alphabet {a,b}, δ(q₀,a)={q₀,q₁}, δ(q₀,b)={q₀}, δ(q₁,b)={q₁}; final state q₁.
Asked in: CS-501 | December 2025 | 2(b)
Answer
The paper omits the initial state and δ(q₁,a). Assume q₀ is initial and the missing transition is the empty set. Subset construction defines each DFA state as a set of NFA states. A subset is accepting if it contains q₁.
Start with A={q₀}. On a, reach B={q₀,q₁}; on b, remain in A. From B on a, take the union {q₀,q₁}∪∅=B. From B on b, take {q₀}∪{q₁}=B. No further subsets are reachable.
| State | a | b |
|---|---|---|
| → A | B | A |
| * B | B | B |
Thus the DFA recognizes words containing at least one a. For example bba reaches B and is accepted; bbb stays in A and is rejected. The invariant is that the DFA state equals the set of all NFA states reachable after the input prefix. This proves equivalence. The two states are distinguishable by the empty suffix, so the DFA is minimal under the stated assumptions.

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