CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which one of the following regular expressions represents the language: the set of all binary strings having two cosecutive 0s and two consecutive 1s?


Open in App
Solution

We wish to find regular expression "for all binary strings containing two consecutive 0's and two consecutive 1's".

Now, choice (a) cannot gennerate "001011" choice (b) is correct

Choice (c) can generate "00" which does not belong to given language.

Choice (d) always ends with 11 or 00 and hence cannot generate "001101"


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Pythogoras Theorem
Watch in App
Join BYJU'S Learning Program
CrossIcon