Given DFA with $\sum = {0, 1}$ & p, q, r, s are the given states.
State s is the initial state & State p is the final state.
From, this DFA A, we can directly conclude few points :
- State r is the Dead State.
- DFA A, is designed to accept all strings which starts with 1.
- The smallest string that will be accepted is 1.
With conclusion 3, Option B is rejected.
NOTE : Dead State : A state is called Dead State when there is no way to go to final state from
that state.
OR
If we reach on such state there is no way to reach the final state.
Now, the Regular Expression of DFA A, can be concluded as :
As, it is designed to accept those strings starting with 1.
On state s, after reading 1 we will go to state p, which is the final state.
So, Regular Expression will starts with 1, which matches with Option A, C & D.
On reaching state p, we have 2 independent paths :
- Keep looping on state p, by reading 0 again and again.
- Reading 11 for coming back to final state p.
As mentioned, these 2 paths are independent.
So, we have choice between 0 & 11, there is no fixed order between them.
Final RE : $1(0+11)^{*}$. Option C is Correct Answer.
Why Option A is Rejected ?
In Option A, after reading 1 they are fixing the order of 2 independent paths 0 & 11.
$1(0^{*}11)^{*}$ , here 11 is fixed after 0, which is wrong.
Why Option D is Rejected ?
In Option D, after reading 1 they are again fixing the order of 2 independent paths 0 & 11.
$1(110^{*})^{*}$ , here 0 is fixed after 11, which is wrong.