Consider the Deterministic Finite-state Automaton (DFA) shown below. The DFA 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 ?
Tap to open full sizeFigure description
State diagram with states s, p, q, r. Start state s (arrow entering from the left). p is the only accepting state (double circle). Transitions: s --1--> p; s --0--> r; p --0--> p (self-loop); p --1--> q; q --1--> p; q --0--> r; r --0,1--> r (self-loop, r is a dead state).
- (A)
- (B)
- (C)
- (D)