wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following languages.
L1={aibjck|i=j,k1}
L2={aibj| j=2i,i0}
Which of the following is true?

Open in App
Solution

L1 is CFL [push a's onto stack, and pop a with each b]
L2 is CFL [push b's onto stack and pop b with each c]. So, option (a) is false.
In L1, every string has atleast one "c".
In L2, every string has no "c".
So, L1 L2= ϕ. So option (b) is true.
Union of two CFLs is a CFL and so option (c) is false.
L2 is DCFL and hence acceptable by a DPDA.
So, option (d) is false.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Closure Properties of CFL Part - 2
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon