edited by
351 views
0 votes
0 votes

Write regular expressions for the following languages$:$

  1. The set of all strings of $0's$ and $1's$ not containing $101$ as a substring.
  2. The set of all strings with an equal number of $0's$ and $1's,$ such that no prefix has two more $0'$ than $1's,$ nor two more $1's$ than  $0's.$
  3. The set of strings of $0's$ and $1's$ whose number of $0's$ is divisible by five and whose number of $1's$ is even.
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
admin asked Apr 3, 2019
247 views
Give English descriptions of the languages of the following regular expressions$:$$(1+\in)(00^{*}1)^{*}0^{*}$$(0^{*}1^{*})^{*}000(0+1)^{*}$$(0+10)^{*}1^{*}$
0 votes
0 votes
0 answers
2
admin asked Apr 3, 2019
822 views
Verify the following identities involving regular expressions.$R+S=S+R$$(R+S)+T=R+(S+T)$$(RS)T=R(ST)$$R(S+T)=RS+RT$$(R+S)T=RT+ST$$(R^{*})^{*}=R^{*}$$(\in+R)^{*}=R^{*}$$(R...