Polish and Reverse Polish Notations used in Evaluation of Arithmetic Expressions using prefix and postfix forms.
Example: Convert the expression ((A + B) * C - (D - E) ^ (F + G)) to equivalent Prefix and Postfix notations.
- Prefix Notation: - * +ABC ^ - DE + FG
- Postfix Notation: AB + C * DE - FG + ^ -
No comments:
Post a Comment