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

Let L1 be a regular language and L2 be a context-free language. Which of the following languages is/are context-free?

Open in App
Solution

L1 Regular
L2 CFL
1. L1 ¯L2=Reg ¯¯¯¯¯¯¯¯¯¯¯¯CFL=Reg ¯¯¯¯¯¯¯¯¯¯¯CSL
= Reg CSL
= CSL (need not be CFL)
2. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯L1¯L2=L1 L2=Reg CFL=CFL
3. L1 (L2¯L2)=L1=
=Regular and hence CFL
4. (L1 L2)(¯L1L2)=(L1¯L1)L2
=L2
=L2=CFL

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