FOR FREE MATERIALS

IDENTIFY LANGUAGE FROM GRAMMAR

 

Example 7Construct the language generated from the given grammar

G1 = ({S, A, B}, {a, b}, {S}, {P})

P:  S → AB

     A → aAb | λ

     B → bB | λ 

  

Solution:

This is the same type of grammar that is discussed before in example 6.

If we apply both A and B at starting production S then

This range m ≥ n because if