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.
(aa)*(b|aba)(aa)*works, I think. – Snowball Dec 23 '13 at 22:13