Question

If LL is a regular language over Σ={a,b}\Sigma = \{a, b\}, which one of the following languages is NOT regular?

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2019 answer key

Solution

Check standard closure properties of regular languages under concatenation, reversal, prefix, and palindromic construction.

Let LL be an arbitrary regular language over Σ={a,b}\Sigma = \{a, b\}:

  • Option A: LRL^R is regular (closure under reversal), and L⋅LRL \cdot L^R is regular (closure under concatenation).
  • Option B: Let L=(a+b)∗L = (a + b)^*, which is regular. Then {wwR∣w∈L}={wwR∣w∈{a,b}∗}\{ww^R \mid w \in L\} = \{ww^R \mid w \in \{a, b\}^*\}, which is the classic language of even-length palindromes. This language is well known to be non-regular (requires an unbounded stack to match symbols in reverse order). Hence, {wwR∣w∈L}\{ww^R \mid w \in L\} is NOT necessarily regular.
  • Option C: Regular languages are closed under the prefix operation Prefix(L)\text{Prefix}(L).
  • Option D: Regular languages are closed under the suffix operation Suffix(L)\text{Suffix}(L).
Final answer

B

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2019 Computer Science and Information Technology (CS)
Question
17 of 65, printed as CS Q.7
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.