in Theory of Computation
707 views
1 vote
1 vote
Determine whether or not the following languages are context-free.
(a) $L=$ {$a^nww^Ra^n : n ≥ 0, w ∈$ {$a,b$}*}
(b) $L=$ {$a^nb^ja^nb^j : n ≥ 0, j ≥ 0$}.
(C) $L=$ {$a^nb^ja^jb^n : n ≥ 0, j ≥ 0$}.
(d) $L=$ {$a^nb^ja^kb^l : n + j ≤ k + l$}.
(e)$L=$ {$a^nb^ja^kb^l : n ≤ k, j ≤ l$}.
(f) $ L=$ {$a^nb^nc^j : n ≤j$}.
(g) $L=$ {$w ∈$ {$a, b, c$}* $: n_a(w)= n_b (w)=2n_c(w)$}.
in Theory of Computation
707 views

4 Comments

b,e,f,g  are not context free language
2
2
What about a
0
0

 'a' is a CFL. A CFG can be generated for it. 

Refer to: http://www.cs.williams.edu/~tom/courses/361/notes/Lect17.pdf    page: 5

for more clarification.

0
0
why f is not cfg???
0
0

Please log in or register to answer this question.

Related questions