EXPRESSION FORMATS

TOPIC 02 – POSTFIX NOTATION

 

 

LESSON NOTE

 

 

POSTFIX NOTATION

 

Postfix notation is simply the reverse of prefix notation. It also goes by the name reverse Polish notation.

 

EXAMPLES

 

Here are a few examples of expressions in infix, prefix and postfix:

INFIX

PREFIX

POSTFIX

A + B

+ A B

A B +

7 / 2

/ 7 2

7 2 /

A * (B + C)

* A (+ B C)

A (B C +) *

 

In the last example, the brackets could be removed for both the prefix and postfix notations.

 

A LITTLE HUMOUR

 

Remember how Postfix is also called Reverse Polish Notation?  Well…

 

It looks good, but it needs more postfixins.

Source