Skip to main content

Posts

Showing posts with the label The Crazy Programmer Polish Notation in Data Structure Polish Notation in Data Structure The Crazy Programmer

Polish Notation in Data Structure Vijay Sinha The Crazy Programmer

In this article, we will look into Polish notation in Data Structures. We will discuss its types along with some examples and the use of such notations in general. Polish Notation is a general form of expressing mathematical, logical and algebraic equations. The compiler uses this notation in order to evaluate mathematical expressions depending on the order of operations. There are in general three types of Notations used while parsing Mathematical expressions: Infix Notation Prefix Notation Postfix Notation Infix Notation or Expression is where the operators are written in between every pair of operands. It is the usual way to write an expression generally written with parentheses. For Ex: An expression like X+Y is an Infix Expression, where + is an Operator and X, Y are Operands. Polish Notation in Data Structure Now, Polish Notation is also known as Prefix Notation or Expression. In this type of arithmetic expression, the operators precede the operands i.e. the operator