期刊文献+

表达式与二叉树的相互转换 被引量:7

The Mutual Conversion Between an Expression and a Binary Tree
下载PDF
导出
摘要 数学表达式、栈的操作、二又树的遍历,这几个概念在数据结构的教材中是不可缺少的。数学表达式求值是程序设计语言编译中的一个最基本问题,也是栈应用的一个典型例子,用它来研制出各种类型的电子计算器(前缀计算器、中缀计算器(常见的计算器)、后缀计算器)。在数据结构中没有解决表达式与二又树之间的相互转换关系,也就是说不能由一种表达式迅速地得到另外的两种表达式,也就难于解决其他两种计算器的研制过程。本文旨在研究表达式与二叉树间的相互转换关系,便于由一种表达式(或表达式树)迅速求出其他的表达式,再通过栈的应用(操作)研制出三种不同的计算器(栈的应用在数据结构的教材中都有,在此文中不予介绍)。 The concepts such as mathematical expression, stack operation and binary tree traversal must be presented in data structure. Eval- uation of a mathematical expression is not only a basic problem in a programming language compiling, but also a typical example of stack application which could be used to develop all kinds of calculators (prefix calculator, infix calculator and postfix calculator). Mutual conversions between an expression and a binary tree remain unsolved in data structure, that is to say, it is impossible to obtain two kinds expressions from one expression. So it is difficult to work out the process of developing another two calculators. This paper discusses the mutual conversion between an expression and a binary tree SO as to workout the other expressions from one expression and develop three kinds of different calculators with stack application.
作者 何志宏 毛志军 HE Zhi-hong, MAO Zhi-jun (1.Guangzhou Kangda Institute of South China Normal University, Guangzhou 510000, China; 2.Guangzhou Vocational School of Tourism and Business, Guangzhou 510515, China)
出处 《电脑知识与技术》 2010年第02Z期1201-1203,共3页 Computer Knowledge and Technology
关键词 表达式 波兰式 逆波兰式 二叉树的遍历 表达式树 expression polish notation reverse polish notation binary tree traversal expression tree
  • 相关文献

同被引文献37

  • 1吴义忠,吴民峰,陈立平.基于Modelica语言的复杂机械系统统一建模平台研究[J].中国机械工程,2006,17(22):2391-2396. 被引量:17
  • 2陈应祖.利用二叉树处理表达式[J].重庆钢铁高等专科学校学报,1997,12(2):60-63. 被引量:2
  • 3严蔚敏 吴伟民.数据结构(C语言版)[M].北京:清华大学出版社,2000..
  • 4P:tun G. Computing with membranes [ J ]. Journal of Com- puter and System Sciences, 2000,61 (1) :108-143.
  • 5P:tun G. A quick introduction to membrane computing[ J]. The Journal of Logic and Algebraic Programming, 2010,79 (6) :291-294.
  • 6P6rez-Jim6nez M, Jim6nez :, Caparrini F. Complexity clas- ses in models of cellular computing with membranes [ J ]. Natural Computing, 2003,2(3) :265-285.
  • 7P:tun G, Suzuki Y, Tanaka H. On the power of membrane division in P systems [ J ]. Theoretical Computer Science, 2004,324( 1 ) :61-85.
  • 8Nishida T Y. Membrane algorithms[ J]. Lecture Notes in Computer Seience, 2006,3850: 55-66.
  • 9Pi:un G, Perez-Jimenez M. Membrane computing: Brief in- troduction, recent results and applications [ J ]. Biosystems, 2006,85(1) :11-22.
  • 10P:tun G. From cells to computers: Computing with mem- branes (P systems) [ J ]. Siosystems, 2001,59 (3) : 139- 158.

引证文献7

二级引证文献7

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部