Question:

Which of the following languages are context-free?

Show Hint

Context-free languages are closed under union, intersection with regular languages, and difference with regular languages.
Updated On: Dec 29, 2024
  • L = {0^i1^j | i = j}
  • L = {0^i1^j | i != j}
  • L = {0^i1^j | i = 2j + 1}
  • L = {0^i1^j | i = 2j}
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Context-free languages include those where the number of ‘0‘s and ‘1‘s are related in a balanced manner (e.g., (B), (D)). However, languages like (A) are not context free
Was this answer helpful?
0
0

Questions Asked in CUET PG exam

View More Questions