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

Let L1={wϵ{0,1}whasatleastasmanyoccurrencesof(110)sas(011)s}. Let

L2={wϵ{0,1}whasatleastasmanyoccurrencesof(000)sas(111)s} Which one of the Following is TRUE?


A
L1 is regular but not L2
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
Both L1 and L2 are regular
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
L2 is Regular but not L1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Neither L1 nor L2 are regular
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A L1 is regular but not L2
A machine which accepts L1 needs only finite memory since there is no need to keep the number of 110's in memory. The reason is because whenever two consecutive 110's come in a row then a 011 always come in between as shown below.

110110

So the difference between number of 110 and number of 011 can only be 1, 0,-1.

So only finite memory needed and therefore L1 is regular.

L2 requires infinite memory since any number of 000's can come in a row without any 111 in between. So the difference between the number of 000's and 111's can go upto or- .So this language requires inifinite memory. But FA has only finite memory.

So L2 is not regular.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Manufacture of Acids and Bases
Watch in App
Join BYJU'S Learning Program
CrossIcon