The switching reverse polise algorithm

  • Authors:
  • Robert W. Witty

  • Affiliations:
  • Rutherford Laboratory Didcot, Oxon, England

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 1977

Quantified Score

Hi-index 0.00

Visualization

Abstract

The classical Reverse Polish Algorithm is examined to see why it does not produce optimal evaluation order Reverse Polish. A new algorithm, the Switching Reverse Polish Algorithm, is derived which optimises or improves the evaluation order but retains the simplicity and serial input-output of the classical algorithm. The supermultiply operator is introduced to facilitate strength reduction.