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

Let L = L1L2, where L1 and L2 are languages as defined below:
L1={ambmc anbn | m,n0}
L2={ai bj ck | i,j,k0}
Then L is

Open in App
Solution

L1={ambmc anbn | m,n0}
L2={ai bj ck | i,j,k0}
L = L1L2
L1 is CFL. L2 is regular. First use closure property to get a estimate.
L=L1L2=CFLReg=CFL
However,since one of the opetion (b) is regular is stronger than CFL answer obtained by closure property, we need to find the actual intersection.Any string belonging to both must have equal number of a's & b's followed by a single followed by no a's or b's; which is the only string allowed by both L1 and L2.
i.e. L=L1 L2 ={ambmc}
Now this is clearly context free, but not regular

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Objective Session 3
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon