Which one of the following regular expressions is equivalent to the language accepted by the given below?

View worked solution
Answer: A
The given DFA consists of two states: (the initial state) and (the only final state), with the following transitions:
- and
- and
To find the equivalent regular expression, we analyze the paths to reach and stay in the final state :
- Reaching initially: To reach for the first time from the start state , the automaton must consume any number of s followed by a single . This is represented by:
- Looping at : Once at , we can return to in two ways:
- Directly via the self-loop on .
- By transitioning to on , looping on any number of times (), and returning to on . This path is .
Combining these two parts, the complete regular expression for the language accepted by the DFA is:
Thus, the correct option is A.
Free practice · Your answers on this page are not saved.
