I don't know if it is the right site to ask this. But we're studying about ambiguities of grammar. Including left most derivation and right most derivation. We are given the problem:
E -> E * E | E + E | N N -> 0N | 1N | Output: 0110 + 110 * 01111
My question is, is there a shortest way to attain that output? Because in my leftmost and rightmost derivation it took 7 lines.