Question: Consider the grammars: G 1 : S SaS | aa | a G 2 : S SS | G 3 : S SS | a
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!!!!!!!!!!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
