Re: Ambuguity of CFG



S -> a S a and S -> a

The above is not an ambiguous grammar.
The following is an ambiguous grammar.

S -> S + S | S - S | a

.