版权说明 操作指南
首页 > 成果 > 详情

一种由遍历序列构造二叉树的改进算法

认领
导出
Link by 中国知网学术期刊 Link by 维普学术期刊 Link by 万方学术期刊
反馈
分享
QQ微信 微博
成果类型:
期刊论文
作者:
王防修;刘春红
作者机构:
武汉轻工大学数学与计算机学院
[刘春红] 九州通医药集团物流有限公司
[王防修] 武汉轻工大学
语种:
中文
关键词:
先序遍历;中序遍历;后序遍历;标志序列;递归算法
关键词(英文):
preorder traversal;inorder traversal;postorder traversal;flag sequence;recursive algorithm
期刊:
武汉轻工大学学报
ISSN:
2095-7386
年:
2016
卷:
35
期:
3
页码:
68-73
基金类别:
国家自然科学基金资助项目(61179032);
机构署名:
本校为第一机构
院系归属:
数学与计算机学院
摘要:
针对现有构造二叉树的算法无法适用于具有相同元素的遍历序列,提出了一种解决该问题的递归算法。该种算法以现有的递归算法为基础,通过引入遍历序列的标志序列,依据标志序列中元素之间的关系,从理论上证明了三种由遍历序列构造二叉树的算法都具有递归性。根据遍历序列构造二叉树的递归原理,设计了三种不同的由遍历序列构造二叉树的递归算法。通过算例仿真表明,使用笔者设计的算法可为具有相同元素的遍历序列构造二叉树。
摘要(英文):
In view of the present algorithm can not be applied to construct the binary tree by using the traversal se -quence which has the same elements , this paper presents a recursive algorithm to solve the problem .Based on the existing recursive algorithm , this algorithm introduces the symbol sequence of the traversal sequence .According to the relationship among the elements in the symbol sequence , the three algorithms are proved theoretically to be re-cursive for using the traversal sequences to construct the binary tree .Based on the recursive principle of construc-ting the two binary tree by ...

反馈

验证码:
看不清楚,换一个
确定
取消

成果认领

标题:
用户 作者 通讯作者
请选择
请选择
确定
取消

提示

该栏目需要登录且有访问权限才可以访问

如果您有访问权限,请直接 登录访问

如果您没有访问权限,请联系管理员申请开通

管理员联系邮箱:yun@hnwdkj.com