期刊文献+

二叉树演绎于结点序号内蕴性质的快速算法 被引量:5

Fast algorithms educed from intrinsic properties of node indices of binary trees
下载PDF
导出
摘要 通过研究二叉树结点顺序存储序号的性质,演绎出了二叉树非递归无堆栈的一些新算法,包括完全二叉树两结点最近共同祖先(LCA)的查询算法、中序遍历算法、顺序序列与中序序列的互转算法以及从中序序列恢复层次结构的算法。新的算法都具有很好的时间复杂度,其中LCA查询算法可在常数时间内实现且不需要任何预处理过程,其他算法均为线性时间复杂度。所有算法均为常数空间复杂度,仅涉及到简单的加减运算与位运算,既可用于常规程序设计也可用于嵌入式等专业开发。 Through a study on properties of node-indices of a binary tree,the paper derives for processing binary trees several new non-recursive and stack-free algorithms,including an algorithm to query the Lowest Common Ancestor(LCA) of two nodes in a complete binary tree,an algorithm for fast inorder traverse,an algorithm for inter-conversions between the sequential sequence and the inorder sequence,and an algorithm to restore a complete binary tree from its sequential sequence or inorder sequence.All the new algorithms are of excellent time-complexity and spatial complexity.In aspect of time-complexity, the new LCA-query algorithm can answer without any preprocessing a query of LCA of two nodes in a complete binary tree in constant time and the other new algorithms are linear time complexity.In aspect of spatial complexity,all the new algorithms are constant spatial complexity.Furthermore,all new algorithms contain merely addition,subtraction and bitwise operations and thus fit both conventional programming and expert developments such as embedded system and so on.
作者 王兴波
出处 《计算机工程与应用》 CSCD 北大核心 2011年第9期16-20,40,共6页 Computer Engineering and Applications
基金 数学机械化证明国家重点实验室开放基金(No.KLMM0906) 广东省自然科学基金(No.10158000100016) 佛山市产学研项目(No.2010C012)~~
关键词 算法设计 二叉树 中序遍历 快速访问 algorithm design binary tree inorder traversal fast query
  • 相关文献

参考文献27

二级参考文献15

  • 1曾国荪,周定康,黄明和.异构计算开发最大循环并行性(英文)[J].江西师范大学学报(自然科学版),2000,24(4):321-327. 被引量:1
  • 2WilliomFord.Data structures with c++(影印版)[M].北京:清华大学出版社,1997..
  • 3Robert Kruse,C L Tondo, Bruce Leung.Data Structures & Program Design in C[M].Prentice Hall ,1997.
  • 4M Ward,K H Bennett.Recursion Removal/Introduction by Formal Transformation:an Aid to Program Development and Program Comprehension[J].Computer Journal, 1999 ; 42 (8) : 650-673.
  • 5R S Bird.Notes on recursion elimination[J].Communications of the ACM,1977;20(6):434-439.
  • 6Yanhong A Liu,Scott D Stoller.From recursion to iteration:what are the optimizations[C].In:Proceedings of the ACM SIGPLAN 2000 Workshop on Partial Evaluation and Semantics-Based Program Manipulation.New York:ACM Press,2000:73-82.
  • 7耿国华编著.数据结构(C语言版)[M].西安:西安电子科技大学出版社,2003.
  • 8严蔚敏,数据结构(C语言版),1997年
  • 9徐士良,计算机常用算法(第2版),1995年
  • 10周培德,算法设计与分析,1992年

共引文献54

同被引文献54

  • 1刘影.论数据结构中二叉树的链式存储[J].安庆师范学院学报(自然科学版),2010,16(3):53-56. 被引量:1
  • 2陈燕晖,邢晶,罗宇.一种消除递归的新方法[J].计算机工程与应用,2006,42(4):73-75. 被引量:7
  • 3陈显强.关于一般二元运算和命题联结词运算结合律的几个问题[J].广东广播电视大学学报,2006,15(4):102-104. 被引量:1
  • 4Knuth D E.The art of computer programming[M].Addison-Wesley, 1968.
  • 5Morris J M.Traversing binary trees simply and cheaply[J].Informations Processing Letters, 1979,9(5): 197-200.
  • 6Mateti P, Manghirmalani R.Morris' tree traversal algorithm reconsidered [J]. Science of Computer Programming, 1988,11 (1): 29-43.
  • 7Hauck S, DeHon A. Reconfigurable computing: the theory and practice of FPGA-based computation [M]. Morgan Kaufmann, 2007.
  • 8Wankar R.Reconfigurable architecturs and algorithms:a research survey [J]. International Journal of Computer Science and Applications,2009,6(1):108-123.
  • 9Wankar R. Reconfigurable architecturs and algorithms: A re- search survey [J]. International Journal of Computer Science and Applications, 2009, 6 (1): 108-123.
  • 10黄立波.片上集群体系结构关键技术研究[D].长沙:国防科学技术大学,2010.

引证文献5

二级引证文献7

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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