Question: ( 2 pts ) Show that S a S | b S | c A , A a A | b S | is an

(2pts) Show that
SaS|bS|cA,
AaA|bS|
is an s-grammar.
2.(3pts) Eliminate the variable B from the grammar
SaSB|bB,|
BaA|b|
(4pts) Eliminate all useless productions from the grammar
SaS|AB|,
AbA,
BAA
What language does this grammar generate?
4.(4pts) Eliminate all ?-productions from
SAaB|aaB,|
A,
BbbA||
(4pts) Transform the grammar with productions
S baAB
AbAB||
BBAa|A|
into Chomsky normal form.
6.(3pts) Convert the grammar
Sab|aS|aaS|aSS|
into Greibach normal form.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!