Computer Science EngineeringHardISRO SC

An NFA over {0,1} has start state q0 and accepting state q5, with transitions q0: 0->{q5} 1->{q1}; q1: 0->{q0,q3} 1->{q4,q3}; q2: 0->{q2} 1->{q2}; q3: 0->{q4,q0} 1->{q1}; q4: 0->{q4,q3} 1->{q0}; q5: 0->{q2,q4} 1->{q3}. Subset construction (only reachable subsets, no minimisation) yields a DFA with how many states?

  1. A. 36
  2. B. 34
  3. C. 35
  4. D. 37

Correct answer: C. 35

Expand subsets from {q0} by 0 and 1 until no new subset appears; 35 reachable subsets.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic