Good afternoon everyone;
I am stuck with a question I could not find and answer by myself I hope you can help me. My question is
The language L = {w : w {a,b}*, |w| is odd, w has exactly one b}.
Is this a regular language if yes could you draw NFA or DFA for this. If no, how can I proof this using pumping lemma or how can I use pumping lemma to prove it is regular.
Regards,
Double circle is the start state, $\varepsilon$ denotes empty string. The state on the far right is the accepting/final state.
Hint: You might do it with five states:
I leave it to you to figure out the transitions, start state, and accepting state.