今天我读的书。据介绍算法有关从缀到后缀chaning。什么是好处? 先谢谢了。
I read book today. It introduced algorithm about chaning from infix to postfix.. What is benefits? Thanks in advance.
好了一个,你可以很容易地评估一个后缀EX pression在一次扫描中从左至右一叠的帮助下,不同评估中缀EX pressions。第二,没有必要括号和precedence规则等的后缀前pression概念
Well for one, you can easily evaluate a postfix expression in a single scan from left to right with the help of a stack, unlike evaluating infix expressions. and second, there is no need of the concept of parentheses and precedence rules etc. in a postfix expression.