347 views
1 votes
1 votes

Show that the grammar $G$ =({$S$}, {$a, b$}$, S, P$), with productions

                    $S \rightarrow  SS|SSS|aSb|bSa|λ$ ,
is equivalent to the grammar 

                    $S \rightarrow SS$ ,

                    $S \rightarrow λ$ ,

                    $S \rightarrow aSb$ ,

                    $S \rightarrow bSa$ .

1 Answer

Related questions

1 votes
1 votes
1 answer
1
0 votes
0 votes
0 answers
4