-
Consider the finite automata in the following figure.
Which is the set of reachable states for the input string 0011?
-
- {q0, q1, q2}
- {q0, q1}
- {q0, q1, q2, q3}
- {q3}
- {q0, q1, q2}
Correct Option: A
Following paths can be taken by the finite Automata for the input string “0011”:––
We note that no other path is possible for the input string "0011". So, finally union of all three cases gives us the set of Reachable states which is {q0, q1, q2}