Consider the deterministic finite-state automaton (DFA) below. The alphabet is {a, b}. The state with a small incoming arrow is the initial state, while the double circle state denotes a final state. Which of the following regular expressions defines the language accepted by the DFA?
Tap to open full sizeFigure description
A DFA with three states. The left state has a small incoming arrow (initial state). The right state is drawn with a double circle (final state) and has a self-loop labelled b. The bottom state is a single circle with a self-loop labelled a,b. Transitions: initial --a--> final (arrow to the right); initial --b--> bottom state (arrow down and to the right); final --a--> bottom state (arrow down and to the left).
- (A)
ab*
- (B)
a*b*
- (C)
(ab)*
- (D)
a*b