5,855 views
0 votes
0 votes
can anyone help me with regular expression for-

a)set of all strings with equal number of 0s and 1s such that no prefix has 2 more than 0s than 1s nor 2 more than 1's than 0's.

b) set of all strings of 0s and 1s whose number of 0s is divisible by 5 and whose number of 1's is even.

2 Answers

0 votes
0 votes
I think for B this is the answer

((11)* 0 (11)* 0 (11)* 0 (11)* 0 (11)* 0 (11)*)*