The grammar G:
S → SS | a | b
is ambiguous. That means at least some of the strings in its language have more than one leftmost derivation. However, it may be that some strings in the language have only one derivation. Identify from the list below a string that has exactly TWO leftmost derivations in G.
a) abab
b) b
c) aba
d) bbab
Plz explain
Expert Answer
The three strings has two leftmost derivation in G