3,004 views
1 votes
1 votes
L ={ww | w ∈{a, b}∗}
Is compliment of L,  CFL? Support with reason

2 Answers

2 votes
2 votes

It is CFL.

Here if the string is of Odd length then it will never be of the form $ww$, 

And if it is of even length then to prevent it from being of the form $ww$,we can follow the strategy described below.

 

edited by
1 votes
1 votes

Related questions

1 votes
1 votes
1 answer
2
0 votes
0 votes
0 answers
4
saptarshiDey asked Jan 22, 2019
542 views
L = {a^(p+q) b^(p+q) a^p , p,q>=0}Which one of the following is true about L?L is a regularL is CFL but not regularL is not a CFL