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

基于单链表的二叉树非递归遍历算法

认领
导出
Link by 中国知网学术期刊 Link by 维普学术期刊 Link by 万方学术期刊
反馈
分享
QQ微信 微博
成果类型:
期刊论文
作者:
王防修;周康
作者机构:
武汉工业学院数学与计算机学院,湖北武汉430023
语种:
中文
关键词:
单链表;链栈;链队列;非递归;遍历算法
关键词(英文):
single linked list;linked stack;linked queue;non recursive;traversal algorithm
期刊:
武汉轻工大学学报
ISSN:
2095-7386
年:
2012
期:
4
页码:
59-63
基金类别:
国家自然科学基金资助项目(61179032);
机构署名:
本校为第一机构
院系归属:
数学与计算机学院
摘要:
针对现有二叉树的非递归遍历算法在分配栈空间和队列空间方面的不足,提出了一个适用于二叉树非递归遍历算法的动态栈和动态队列,其中动态栈应用于先序遍历、中序遍历和后序遍历的非递归算法,而动态队列应用于层次遍历二叉树的非递归算法。给出了二叉树非递归遍历的算法描述和算法实现。算法测试表明:通过限制单链表的操作得到的链栈和链队列既满足了二叉树非递归遍历算法对栈空间和队列空间的需求,又能伴随遍历的进行动态增加和减少多余的栈空间和队列空间。由于单链表的这种易于扩充性很好地适应二叉树非递归遍历算法对栈空间和队列空间的需求,使得二叉树的非递归遍历算法的通用性和适应性大大...
摘要(英文):
In view of the existing deficiency in the allocation of stack and queue space of the two binary tree non-recursive traversal algorithm,this paper presents an applicable dynamic stack and dynamic queue to two binary tree non-recursive traversal algorithm.On the one hand,the dynamic stack is applied preorder,inorder and postorder traversal non-recursive algorithm.On the other hand,the dynamic queue is applied to the level traversal of the two forks tree non-recursive algorithm.It supplies the description and implementation of the two binary tree ...

反馈

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

成果认领

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

提示

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

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

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

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