Which of the following grammar rules violate the requirements of an operator grammar?
P, Q, R are non terminals and r, s, t are terminals.
(i) P→QR
(ii) P→QsR
(iii) P→ε
(iv) P→QtRr
A
(ii) and (iii) only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
(iii) and (iv) only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
(i) only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
(i) and (iii) only
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is D (i) and (iii) only In operator grammar the grammar has the property that no production side is ε or it doesn't contain adjacent non terminals.
So P→QRandP→ε violate the requirements of an operator grammar.