If L is a regular language over ∑={a,b} , which one of the following languages is NOT regular?
A
Prefix (L) = {xϵ∑∗∣∃yϵ∑∗suchthatxyϵL}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Suffix (L) = {yϵ∑∗∣∃xϵ∑∗suchthatxyϵL}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
{wwR∣wϵL}
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
L⋅LR{xy∣xϵL,yRϵL}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C{wwR∣wϵL} If L is regular, L⋅LR is also regular by closure property.
Suffix(L) and Prefix(L) are also regular by closure property.
However option (d) {wwR∣wϵL} need not be regular since if L is an infinite regular language then {wwR∣wϵL} will not only be infinite, but also non-regular. Since it involves string matching and we can increase in length indefinitely and then finite automata FA will run out of memory.