The given finite automata is equivalent to which of the following regular expression?
The given finite automata is equivalent to which of the following regular expression?
States: q0 (start), q1, q4, q5, q2 and qf (final). Transitions: q0 –a→ q1; q1 –b→ qf; q0 –a→ q4; q4 –a→ q2; q0 –b→ q5; q5 –b→ q2; q2 –a,b→ q2 (self loop); q2 –b→ qf.
Show answerHide answer
Correct answer: (D) ab + (aa + bb) (a + b)* b