Which one of the following regular expressions correctly represents the language of the finite automaton given below?
Tap to open full sizeFigure description
A DFA with three states. The start state q_0 (arrow entering from the left) is a non-accepting single circle. The two other states are accepting (double circles): q_1 (upper right) and q_2 (lower right). Transitions: q_0 --a--> q_1; q_1 --b--> q_0; q_1 has a self-loop labelled b; q_0 --b--> q_2; q_2 --a--> q_0; q_2 has a self-loop labelled a.
- (A)
- (B)
- (C)
- (D)