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

If L1 and L2 are context free languages and R a regular set. one of the languages below is not necessarily a context free language. Which one?

A
L1L2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
L1L2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
L1L2
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
L1R
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C L1L2
(a) If L1 and L2 are context free language then L1L2 is also context free language because context free languages are closed under concatenation.
(b) Since context free languages are not closed under intersection, L1L2 is not necessarily a context free language.
(c) If L1 is context free language and R is regular set then L1R is surely context free language because context free languages are closed under regular intersection.
(d) If L1 and L2 are context free languages then L1L2 is surely context free language because context free languages are closed under union.

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