检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:胡云
出 处:《成都大学学报(自然科学版)》2012年第3期247-250,263,共5页Journal of Chengdu University(Natural Science Edition)
摘 要:中缀表达式是使用频率最高的表达式形式,对其求值时,一方面要考虑表达式中运算符的优先级,另一方面还要考虑运算符的结合性.尽管运用人的思维能容易地判断中缀表达式的运算顺序,但使用计算机直接处理就会显得非常困难.提出一种基于二叉树的方法,即将中缀表达式转换为前缀表达式,然后在计算机上就可以实现简单求值.Infix expression has the highest usage frequency. For solution, on one hand, priority of operator in expression should be considerd. On the other hand, associativity of operator must considered too. Although it is not difficult for human being' s thinking to judge the operation order of infix expression, it is very difficult for computer to compute directly. A method was proposed based on the binary tree, which transform infrx expression into prefex expression, then solution rules will be simple for computer computing.
分 类 号:TP311.12[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.218.181.138