Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

GATE | GATE CS 2019 | Question 65

  • Last Updated : 01 Oct, 2021

If L is a regular language over ∑ = {a, b}, which one of the following languages is NOT regular?
(A) L⋅ LR {xy ⏐ x ∈ L, yR∈ L}
(B) Suffix (L) = {y ∈ ∑* ⏐ ∃x ∈ ∑* such that xy ∈ L}
(C) Prefix (L) = {x ∈ ∑* ⏐ ∃y ∈ ∑* such that xy ∈ L}
(D) {wwR ⏐ w ∈ L}


Answer: (D)

Explanation: Regular languages closed under reversal, concatenation, prefix(L), and suffix(L) property. So, languages given in option (A), (B), and (C) are regular.

But language L = {wwR ⏐ w ∈ L} is infinite and not regular because it involves string matching and we can increase in length indefinitely and then finite automata will run out of memory, so it require stack. Hence, it is context-free but not regular.

Option (D) is correct.



Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!