GATE | GATE CS 2019 | Question 65

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
Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.