0 votes 0 votes L1:{wwR∣w,x∈{a,b}∗ and |w|>0},wR is the reverse of string w L2:{wxwR∣w,x∈{a,b}∗ and |w|,|x|>0},wR is the reverse of string w L1 is regular but not L2 L2 is regular but not L1 Both L1 and L2 are regular Neither L1 nor L2 is regular Theory of Computation theory-of-computation + – sh!va asked Feb 1, 2017 sh!va 205 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Option B) L1 is not regular, because the string has to be saved to check if it's followed by its reversal. And there's no way to identify the end of the string. So this language is not even a DCFL and is a CFL L2 is regular because both x and w belong to (a+b)*. Hence any part of the string can be taken a w,X,wr this grammer generates the set of all strings that atleast start and end with the same charachter. Kaushik.P.E answered Feb 1, 2017 Kaushik.P.E comment Share Follow See all 0 reply Please log in or register to add a comment.