Data Structure Using C - Polish Notation by Anant Kumar
Data Structure Using C - Polish Notation by Anant Kumar
USING “C”
(Polish Notation)
For
BY
ANANT KUMAR
MCA, M. Phil, M. Tech.
Faculty Member
Department of Computer Science
J. D. Women’s College, Patna
Polish Notation
Algebraic Expressions:
An algebraic expression can be represented using three different notations. They are
infix, postfix and pre fix notations:
Example: (A + B) * (C - D)
Example: * + A B – C D
Example: A B + C D - *
1. The operands maintain the same order as in the equivalent infix expression.
Example 1:
( ABC+-D* (
E ABC+-D*E (
+ ABC+-D*E (+
F ABC+-D*EF (+
) ABC+-D*EF+
Example 2:
Example 3: