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

Let L denotes the language generated by the grammar S0S000 Which of the following is true?

A
L is regular but not 0+
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
L is context free but not regular
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
L is not context free
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
L=0+
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A L is regular but not 0+
The language generated by the grammar
S0S000 is
L = {02,04,06,08,...}
= {02n+2n0}
= {02nn1}=00(00)
So above language is regular but not 0+.

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Regular Grammars Part - 1
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon