...
Question 5306 – Higher-Education-and-Politics
February 16, 2024
Question 13909 – Data-Structures
February 17, 2024
Question 5306 – Higher-Education-and-Politics
February 16, 2024
Question 13909 – Data-Structures
February 17, 2024

Question 7822 – Theory-of-Computation

Which one of the following languages over Σ = {a,b} is NOT context-free?

Correct Answer: B

Question 4 Explanation: 
{wanwRbn |w ∈ {a,b}*, n ≥ 0} cannot be CFL.
This is similar to language
L = {anbmcndm | n, m > 0}
Suppose we push “w” then an and then wR, now we cannot match bn with an, because in top of stack we have wR.
A
{wwR |w ∈ {a,b}*}
B
{wanwRbn |w ∈ {a,b}*, n ≥ 0}
C
{anbi | i ∈ {n, 3n, 5n}, n ≥ 0}
D
{wanbnwR |w ∈ {a,b}*, n ≥ 0}
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!