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

Consider the following statements regarding grammars.
I. If a grammar G has ϵ productions. then ϵ is a member of L(G).
II. If a grammar G has no ϵ productions, then ϵ is not a member of L(G).
III. If ϵ is not a member of L(G). then G has on ϵ productions.

Which of the above statements are correct

A
I II and III
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
II and III only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
II only
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
I and II
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C II only
I is false For example, take s aA: Aϵ.
Clearly, G has a ϵ production. however ϵ is still not a member of L(G) as G only generates the string "a".
III is the contrapostive of I. hence III is also false .
But II correct. The presence of an ϵ production is obviously a necessary condition for ϵ to be a member of L(G).

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