Question: Consider the grammars: G1: S AB, A aAA| , B abBB| G2:S CB, C aCC|aC|a, B abBB|abB|ab G3:S CB|C|B| , C aCC|aC|a, B abBB|abB|ab G4:S
Consider the grammars:
G1: S AB, A aAA| , B abBB|
G2:S CB, C aCC|aC|a, B abBB|abB|ab
G3:S CB|C|B| , C aCC|aC|a, B abBB|abB|ab
G4:S ASB|, A aA|, B abB|
G5:S ASB|AB, A aA|a, B abB|ab
G6:S ASB|aab, A aA|a, B abB|ab
Describe the language of each of these grammars. Then, identify from the list below a pair of grammars that define the same language?
a) G5 and G6
b) G4 and G6
c) G1 and G5
d) G2 and G5
Plz explain the answer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
