GATE 2019 CS – Question 17
If $L$ is a regular language over $\Sigma=\lbrace a,b\rbrace $, which one of the following languages is NOT regular?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) $\lbrace ww^R\mid w\in L\rbrace $
Explanation
Regular languages are closed under reversal, concatenation, prefix and suffix, so A, C and D are regular. But $\lbrace ww^R\mid w\in L\rbrace $ need not be: for $L=a^*b$ we get $\lbrace a^nbba^n\rbrace $, which is not regular.