Answer:
The answer in the explanation section
Explanation:
The context free grammar is equal to:
S → aSb|bY|Ya
Y → bY|aY|ε
The language L(G) is equal to:
Y → bY
Y → aY
Y → ε
S → aSb
S → bY
S → Ya
If S → Ya, thus:
S → ∈a
S → a
If S → bY:
S → ∈b
S → b
If S → aSb:
S → abYb
S → abbYb
If S → bY:
S → bbY
S → bb∈
S → bb
From all this cases, the languaje is the follow:
L(G)=[a,b,abbb,bb...]
The description of L(G) is:
-strings made up of a consecutive number of a length a, that can vary from 1 to infinity.
-strings made up of a consecutive number of a length b, that can vary from 1 to infinity.
-strings whose start symbol a is followed by number b
-strings whose start symbol b is followed by number a
-strings beginning with the symbol a and ending with the symbol b
-strings beginning with the symbol b and ending with the symbol a
The grammar for L(G) is equal to
The CFG for L(G) is equal to:
S → aSb|∈
S → abb∈b
S → abbb