Consider the Deterministic Finite-state Automaton () shown below. The runs on the alphabet , and has the set of states , with being the start state and being the only final state.

Which one of the following regular expressions correctly describes the language accepted by
View worked solution
Answer: C
To find the regular expression accepted by the DFA , let us analyze the state transitions from the diagram:
- Start State:
- Final State:
- Trap State: (any transition to cannot reach the final state )
Let's trace the transitions step-by-step:
- Initial step: To reach the final state from the start state , the first symbol must be (). If the first symbol is , the DFA transitions to the trap state . Thus, every accepted string must start with .
- Behavior at state : Once we are at the final state , we can loop back to in two ways:
- By reading a directly: .
- By reading : and then .
Thus, from state , we can repeat any sequence of or any number of times and remain in the final state . This loop behavior is represented by the regular expression .
Combining the initial step and the loop behavior, the regular expression for the language accepted by the DFA is:
Therefore, the correct option is C.
Free practice · Your answers on this page are not saved.
