State the rules to be followed during infix to postfix conversions
4 years ago
Data Structure and Algorithm
- Fully parenthesize the expression starting from left to right. During parenthesizing, the operators having higher precedence are first parenthesized
- Move the operators one by one to their right, such that each operator replaces their corresponding right parenthesis
- The part of the expression, which has been converted into postfix is to be treated as single operand
Sanisha Maharjan
Jan 23, 2022