首页> 外文会议>2nd International Conference on Advances in Recent Technologies in Communication and Computing >A New Non-recursive Algorithm for Reconstructing a Binary Tree from its Traversals
【24h】

A New Non-recursive Algorithm for Reconstructing a Binary Tree from its Traversals

机译:从遍历重建二叉树的新非递归算法

获取原文
获取外文期刊封面目录资料

摘要

This paper presents a new non-recursive algorithm for reconstructing a binary tree from its traversals. Binary tree traversal refers to the process of visiting each node in a specified order. Given the in order traversal of a binary tree, along with one of its preorder or post order traversals, the original binary tree can be uniquely identified. This algorithm is efficient and requires O(n) time and O(n) space. The implementation of this algorithm was done in C and the complete algorithm was tested. The new algorithm was found to be faster than other non-recursive algorithms.
机译:本文提出了一种新的非递归算法,用于从遍历中重建二叉树。二叉树遍历是指以指定顺序访问每个节点的过程。给定二叉树的顺序遍历以及其前序或后序遍历之一,可以唯一地标识原始二叉树。该算法是有效的,并且需要O(n)时间和O(n)空间。该算法的实现是用C语言完成的,并测试了完整算法。发现新算法比其他非递归算法更快。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号