What is regular expression for language that does not contain $1110$?
It is easy to guess for language that contains. The shortest way I know is go through DFA. Is there a better way?
What is regular expression for language that does not contain $1110$?
It is easy to guess for language that contains. The shortest way I know is go through DFA. Is there a better way?
One solution is $(0+10+110+1111^*0)^*1^*$.
However, I don't see how this helps you understand anything. It is much better for you to come up with the answer yourself. As an exercise, you can try proving that this expression indeed works correctly. (Or uncover any mistake, as the case may be.)