Consider the following deterministic finite automaton (DFA) defined over the alphabet, . Identify which of the following language(s) is/are accepted by the given DFA.
Tap to open full sizeFigure description
A DFA with four states in a row, left to right: q_0 (start, arrow entering from the left), q_1, q_2, q_3 (q_3 is accepting, double circle). Transitions: q_0 has a self-loop on a; q_0 → q_1 on b; q_1 has a self-loop on b; q_1 → q_2 on a; q_2 → q_3 on b; q_3 → q_2 on a (top curved arc); q_2 → q_0 on a (bottom long arc ending at q_0); q_3 → q_1 on b (bottom arc ending at q_1).
- (A)
The set of all strings containing an even number of 's.
- (B)
The set of all strings containing the pattern .
- (C)
The set of all strings ending with the pattern .
- (D)
The set of all strings not containing the pattern .