什么是从缀更改为后缀的好处? [英] what is benefits for changing from infix to postfix?
本文介绍了什么是从缀更改为后缀的好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
今天我读的书。据介绍算法有关从缀到后缀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.
这篇关于什么是从缀更改为后缀的好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文