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

The class of context-free languages is not closed under ____________.

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

The correct option is D intersection

The class of context-free languages is not closed under intersection.

A context-free language (CFL) is a language generated by a context-free grammar. Context-free languages have many applications in programming languages; in particular, most arithmetic expressions are generated by context-free grammars.

If L1 is a regular language and L2 is a context free language, then L1 L2 is a context free language.


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