458 views
3 votes
3 votes
is the language L is CFL ??
L={w| w is a palindrome over (a,b,c)}

1 Answer

Best answer
3 votes
3 votes

A language is context free if there exist a CFG for G such that $L=L(G)$.

So CGF for above language L={w| w is a palindrome over (a,b,c)} is

$S\rightarrow aSa|bSb|cSc|a|b|c|\epsilon$.

So given language L is context free.

selected by

Related questions

0 votes
0 votes
2 answers
1
anupamsworld asked Aug 29, 2022
620 views
Which of the following is/are Regular?A] $\left \{ XWYW^{R} \space\ | \space\ W,X,Y \in \left \{ a,b \right \}^{+} \right \}$B] $\left \{ WXW^{R}Y \space\ | \space\ W,X,Y...
0 votes
0 votes
1 answer
2
Mayankprakash asked Jan 24, 2019
305 views
Please suggest me in briefly for revision .How to we test regular,dcfl,cfl,recursive and recursive enumeranle.Eg say if we can find the pattern it's regular.Please help...
0 votes
0 votes
0 answers
4