Given an expression E of n numbers with *, + operations and no
precedence among the operators, identify the set of parenthesis which
maximize the results for E.
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email
I am not sure about this but a quick thought on the question:
If we give plus a higher precedence than multiplication, then we get a
higher result.
For eg:
3 + 6 * 7 + 3 * 2
BODMAS = 51
But giving plus a higher precedence will imply 180
Unable to think of any counter examples. Give if any,