A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. Consider the following languages:

L1 = {a^(n+m) b^n a^m ∣ n,m ≥ 0}
L2 = {a^(n+m) b^(n+m) a^(n+m) ∣ n,m ≥ 0}

Which of the following is correct?
a. Only L1 is context-free language
b. Only L2 is context-free language
c. Both L1 and L2 are context free languages
d. Both L1 and L2 are not context free languages
Answer:Only L1 is context-free language
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: