Question
If is a regular language over , which one of the following languages is NOT regular?
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 be an arbitrary regular language over :
- Option A: is regular (closure under reversal), and is regular (closure under concatenation).
- Option B: Let , which is regular. Then , 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, is NOT necessarily regular.
- Option C: Regular languages are closed under the prefix operation .
- Option D: Regular languages are closed under the suffix operation .
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.