1 votes 1 votes saurabhgupta2k13 asked May 5, 2016 saurabhgupta2k13 1.9k views answer comment Share Follow See 1 comment See all 1 1 comment reply hrcule commented Mar 29, 2018 reply Follow Share What if W and X belongs to (1+0)+ can we say that the language is regular, considering the argument that we can extend X as much as we want 0 votes 0 votes Please log in or register to add a comment.
Best answer 6 votes 6 votes It is a CSL but not CFL. Have a look at this compilations. rude answered May 5, 2016 • selected May 6, 2016 by srestha rude comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Regular We can write it as 1(0+1)*1 +0(0+1)*0 srestha answered May 5, 2016 srestha comment Share Follow See all 4 Comments See all 4 4 Comments reply rude commented May 5, 2016 reply Follow Share I think you have missed that its WxW not Wx(W^R). 0 votes 0 votes srestha commented May 6, 2016 reply Follow Share yes I think I missed wxw but x belongs to (0+1)+ and w belongs to (0+1)* then it will be regular . right? 0 votes 0 votes Arjun commented Jun 30, 2016 reply Follow Share yes, in that case any string of length at least $1$ will be in $L$. This is because we can always consider $w = \epsilon$ and take all letters as part of $x$. 1 votes 1 votes Kaluti commented Mar 29, 2018 reply Follow Share yes it is csl can not be regular as 01(0+1)^(*)01 can not be generated 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes It is regular and its regular expression is 0 (0+1)* 0 + 1 (0+1)* 1 + 0 (0+1)* 1 + 1(0+1)* 0 One answered Jun 30, 2016 One comment Share Follow See all 3 Comments See all 3 3 Comments reply Arjun commented Jun 30, 2016 i edited by Arjun Jul 1, 2016 reply Follow Share 001 is not in $L$ but is generated by your regular expression. Your r.e. is actually generating $(0+1)^+(0+1)^+$. 1 votes 1 votes One commented Jun 30, 2016 reply Follow Share U r rt sir my mistake but re i written not generating 0 or 1 then how it is (0+1)+ 0 votes 0 votes Arjun commented Jul 1, 2016 reply Follow Share I was wrong - corrected now :) 0 votes 0 votes Please log in or register to add a comment.