wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following languages:

L1={wwwϵ{a,b}}

L2={wwRwϵ{a,b},wRisthereverseofw}

L3={02ii isaninteger}

L4={0i2i isaninteger}

Which of the languages are regular?

Open in App
Solution

L1={wwwϵ{a,b}}

is context sensitive language (CSL) (since there is infinite string matching in straight order).

L2={wwRwϵ(a,b),wRisthereverseofw}

is context free language (since there is infinite string matching in reverse order).

L3={02iiisaninteger}=(00)

is regular language which contains all strings having even number of 0's

L4={0i2iisaninteger}

is context sensitive language (CSL) (since the power is infinite and non linear).

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Simple and Compound Interest
Watch in App
Join BYJU'S Learning Program
CrossIcon