352 views

1 Answer

0 votes
0 votes

"the language of G, denoted as L(G), is defined as all those sentences that can be derived in a finite number of steps from the start symbol S."

Starting with S, applying the production rule once to S gives aSb. Applying the rule twice gives aaSbb.

By applying the rule any finite number still gives non terminal symbol S. Since no sentences can be derived in a finite number of steps, the language is empty.

Related questions

1 votes
1 votes
1 answer
1
rahul sharma 5 asked Aug 6, 2017
1,235 views
Which of the following grammars are equivalent?S is non terminal ,e is epsilon,a is terminal1. S- aS |e2. S- aS | a |e3. S- aaS |e
0 votes
0 votes
0 answers
4