Computer Science, asked by diyaa2974, 1 year ago

Algo to compute postfix notations of a given equation

Answers

Answered by Anonymous
0

Answer:

Evaluation rule of a Postfix Expression states:

While reading the expression from left to right, push the element in the stack if it is an operand.

Pop the two operands from the stack, if the element is an operator and then evaluate it.

Push back the result of the evaluation. Repeat it till the end of the expression.

..

Answered by Anonymous
0

Answer:

Consider all integers in interval [2i .. 2i+1 - 1]. And suppose all integers below 2i can be formed from sum of numbers from given array. Also suppose that we already know C, which is sum of all numbers below 2i. If C >= 2i+1 - 1, every number in this interval may be represented as sum of given numbers. Otherwise we could check if interval [2i .. C + 1] contains any number from given array. And if there is no such number, C + 1 is what we searched for.

Hope this answer helps you.

#Mark as brainliest.

#Follow me.

Similar questions