Given the production rules of a grammar G1 as
$S_1 \rightarrow AB \mid aaB$
$A \rightarrow a \mid Aa$
$B \rightarrow b$
and the production rules of a grammar G2 as
$S_2 \rightarrow aS_2bS_2 \mid bS_2 aS_2 \mid \lambda$
Which of the following is correct statement?
- G1 is ambiguous and G2 is not ambiguous
- G1 is ambiguous and G2 is ambiguous
- G1 is not ambiguous and G2 is ambiguous
- G1 is not ambiguous and G2 is not ambiguous