Consider the grammars:
G1: S → SaS | aa | a
G2: S → SS | ε
G3: S → SS | a
G4: S → SS | aa
G5: S → Sa | a
G6: S → aSa | aa | a
G7: S → SAS | ε
Describe the language of each of these grammars. Then, identify from the list below a pair of grammars that define the same language.
a) G1, G5
b) G5, G7
c) G6, G4
d) G1, G2
I couldn’t understant. Tried many ways. plz explain what is the answer and how? Thanks!!!!!!!!!!!