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

A context-free grammar has a set of terminals {0. 1, -}, a set of non-terminals {N, p}, where N is the strats symbol and production s given by the following :

N0|P|P

P|P0|P1

What can be said about the language generated by this grammar ?

A

It is CFL.
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
It is non-DCFL but CFL
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
It is regular.
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
It is non-regualr but DCFL
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C It is regular.

Option (a,d)

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