...
首页> 外文期刊>Theoretical computer science >A linear time algorithm for binary tree sequences transformation using left-arm and right-arm rotations
【24h】

A linear time algorithm for binary tree sequences transformation using left-arm and right-arm rotations

机译:利用左臂和右臂旋转的二叉树序列变换的线性时间算法

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

In this paper, we consider a transformation on binary trees using new types of rotations,, Each of the newly proposed rotations is permitted only at nodes on the left-arm or the right-arm of a tree. Consequently, we develop a linear time algorithm with at most n - 1 rotations for converting weight sequences between any two binary trees. In particular, from an analysis of aggregate method for a sequence of rotations, each rotation of the proposed algorithm can be performed in a constant amortized time. Next, we show that a specific directed rooted tree called rotation tree can be constructed using one of the new type rotations. As a by-product, a naive algorithm for enumerating weight sequences of binary trees in lexicographic order can be implemented by traversing the rotation tree.
机译:在本文中,我们考虑使用新的旋转类型对二叉树进行转换,每个新提议的旋转仅允许在树的左臂或右臂上的节点上进行。因此,我们开发了一种线性时间算法,该算法最多具有n-1个旋转,用于在任意两个二叉树之间转换权重序列。特别地,从针对旋转序列的聚合方法的分析,可以在恒定的摊销时间内执行所提出算法的每个旋转。接下来,我们显示可以使用一种新的旋转类型来构造一个特定的有向根树,称为旋转树。作为副产品,可以通过遍历旋转树来实现按字典顺序枚举二叉树的权重序列的朴素算法。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号