edited by
737 views
0 votes
0 votes
ww^r complement is CSL

Is this right or wrong

If right please how can we prove
edited by

2 Answers

1 votes
1 votes

Correct

wwr is CFL . CFl not  closed under complement so move up to chomsky hirarchy . since every CFL is CSL and Compliment of CSL is CSL.

0 votes
0 votes

$WW^{r}$ complement is either an "odd length string" or "even length string xy such that $x^{r} != y$". Because of 2nd requirement it is CFL because we can check for all string xy such that $x^{r} != y$

Related questions

2 votes
2 votes
1 answer
4
Sumaiya23 asked Jan 22, 2018
451 views
a) Only L1 is correctb)Only L2 is correctc)Both L1 and L2 are correctd)None of L1 and L2 is correctMy question is: What is meant by prefix of string? And how is L1 regula...