1 votes 1 votes L ={ww | w ∈{a, b}∗} Is compliment of L, CFL? Support with reason atul_21 asked Dec 19, 2017 atul_21 3.0k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply nadeshseen commented Jan 21, 2020 reply Follow Share @atul_21 L is CSL but its complement is CFL (TimeStamp = 1:08:00) https://www.youtube.com/watch?v=w5LHEu49VlU&list=PL7HjUNIdk93ThXvz2Oa_g30Jt3Owwm4HZ&index=8&t=4080s&fbclid=IwAR3jMkZSCu4fJa2HpnwNGoq0xqdzkpml-ZZZab6zC2kDZryqas5xrPLnG0A 4 votes 4 votes `JEET commented Jan 21, 2020 reply Follow Share Nice video. 0 votes 0 votes Please log in or register to add a comment.
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. Sourajit25 answered Jan 21, 2020 • edited Jan 21, 2020 by Sourajit25 Sourajit25 comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes L is Csl . https://gatecse.in/identify-the-class-of-a-given-language/ compliment of csl is also csl. https://gatecse.in/closure-property-of-language-families/ Rameez Raza answered Dec 19, 2017 Rameez Raza comment Share Follow See all 3 Comments See all 3 3 Comments reply atul_21 commented Dec 19, 2017 reply Follow Share Its obvious that it is CSL ,I am asking for CFL . Can it be CFL? 0 votes 0 votes Soumya29 commented Dec 19, 2017 reply Follow Share The complement of L is CSL only. Because even for the complement, you need to check WW which cannot be done with the help of a stack. 0 votes 0 votes Rameez Raza commented Dec 19, 2017 reply Follow Share The set of strings in L are {aa,bb,aaaa,abab,baba,bbbb,aaaaaa,…}. We cannot accept these strings using an NFA. Now, even a PDA is not possible as once we store w on stack, it can only be read back in reverse order. Thus, we require 2 stacks to recognize L. Now, L can be accepted by a TM in linear space and hence L is CSL. 2 votes 2 votes Please log in or register to add a comment.