Skip Navigation

The Computer Journal 1981 24(3):288; doi:10.1093/comjnl/24.3.288
© 1981 by British Computer Society
This Article
Right arrow Full Text (PDF)
Right arrow Alert me when this article is cited
Right arrow Alert me if a correction is posted
Services
Right arrow Email this article to a friend
Right arrow Similar articles in this journal
Right arrow Similar articles in ISI Web of Science
Right arrow Alert me to new issues of the journal
Right arrow Add to My Personal Archive
Right arrow Download to citation manager
Right arrowRequest Permissions
Google Scholar
Right arrow Articles by Reingold, E. M.
Right arrow Search for Related Content
Social Bookmarking
 Add to CiteULike   Add to Connotea   Add to Del.icio.us  
What's this?

A comment on the evaluation of Polish postfix expressions

E. M. Reingold *

Department of Computer Science, University of Illinois at Urbana-Champaign, Urbana, USA

From its obscure beginnings in the 1950s, the evaluation of the Polish postfix form of arithmetic expressions has been the ne plus ultra of programming examples requiring a push down stack. In this note, which has primarily pedagogical interest, I respond to a suggestion by Deshowitz (1980) that recursion ought to yield a reasonable algorithm without a stack. Of course, the general techniques of Chandra (1973, Theorem 2.19) or Mayoh (1972) could be applied to the usual stack algorithm to eliminate the stack in favour of recursion. That is an unsatisfying approach, however, because it requires a very powerful tool to resolve an elementary problem and because it requires an unnecessary understanding of the stack mechanism. Here a different tack is pursued, one that yields an extremely simple and elegant recursive algorithm almost directly from the definition of Polish postfix.


Received January 1981.

* Department of Computer Science, University of Illinois at Urbana-Champaign, Urbana, Illinois 61801, USA


Add to CiteULike CiteULike   Add to Connotea Connotea   Add to Del.icio.us Del.icio.us    What's this?




Disclaimer:
Please note that abstracts for content published before 1996 were created through digital scanning and may therefore not exactly replicate the text of the original print issues. All efforts have been made to ensure accuracy, but the Publisher will not be held responsible for any remaining inaccuracies. If you require any further clarification, please contact our Customer Services Department.