首页 | 本学科首页   官方微博 | 高级检索  
     检索      

由遍历序列确定二叉树的算法
引用本文:赵刚,李昆.由遍历序列确定二叉树的算法[J].南昌航空工业学院学报,2010,24(1):55-59.
作者姓名:赵刚  李昆
作者单位:南昌航空大学;
摘    要:文章针对如何由二叉树的遍历序列来唯一确定二叉树的问题,提出了用两种遍历序列唯一确定一棵二叉树的方法。已知先序遍历和中序遍历或者已知后序遍历和中序遍历可以唯一确定一棵二叉树,但已知后序遍历和先序遍历就不能唯一确定了,只有当要确定的树没有度为一的结点时,所确定的二叉树才是唯一的。对此文中给出了说明,并利用Turbo C实现了相应的算法。.

关 键 词:先序遍历  中序遍历  后序遍历  二叉树  

The Algorithm Of Confirming a Binary Tree by Traversing the Sequence
ZHAO Gang,LI Kun.The Algorithm Of Confirming a Binary Tree by Traversing the Sequence[J].Journal of Nanchang Institute of Aeronautical Technology(Natural Science Edition),2010,24(1):55-59.
Authors:ZHAO Gang  LI Kun
Institution:Nanchang Hangkong University/a>;Nanchang/a>;Jiangxi 330063/a>;China
Abstract:This paper proposed an approach to confirm a unique binary tree by traversal sequence.The approach is based on confirming.a unique binary tree by two kinds of traversal sequences.The preorder traversal sequence and the inorder traversal sequence or the postorder traversal sequence and the inorder traversal sequence can confirm the only one binary tree.However,the postorder traversal sequence and the preorder traversal sequence cannot confirm the only one binary tree.The preorder traversal sequence and the p...
Keywords:preorder traversal  inorder traversal  postorder traversal  binary tree  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号