E -> E + E | E * E | (E) | a
Derivation for ( (a+a) * a)
Question : Show that the grammar is ambiguous by sparse tree method
Now, I have derived two derivation using left most derivation
but it results in like this 1st : ((a+a) * a) 2nd : (a * (a+a))
is this correct or the order should also be same?