4.3.3.1 Reverse Polish – infix transformations Flashcards

1
Q

Advantages of Reverse Polish Notation over infix notation.

A

Easier for a machine / computer to evaluate
Do not need brackets
Operators appear in the order required for computation;
No need for order of precedence of operators
No need to backtrack when evaluating

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is postfix notation used by a interpreter or compiler.

A

Processors use registers and handle the operators and operands separately. The operators are placed in one register and the operands in another. The contents of the register with the operators in is accessed first and then the register with the operands is accessed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly