Tuesday, 23 December 2014

Notations

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.

  1. Prefix Notation: - * +ABC ^ - DE + FG
  2. Postfix Notation: AB + C * DE - FG + ^ -

No comments:

Post a Comment