7,333 views
0 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

Position:
Show:

Related questions

0 0 votes
1 1 answer
403
403 views
L_Rashmi_Dedeepya asked Nov 14, 2024
403 views
Most languages are case sensitive, so keywords can be written only one way, and the regular expressions describing their lexemes are very simple. However, some languages,...
1 1 vote
0 0 answers
423
423 views
Snehasis_Basu asked Nov 11, 2024
423 views
Here I thought the answer should be A and D but in the test series answer it is written as only D is the answer.My doubt is : A should not be generating 100 as a substrin...