链旋转:树距离的新观点
Chain Rotations: a New Look at Tree Distance
摘要:
众所周知,两个n个顶点的二叉树S,T之间的旋转距离D(S,T)是将S变换为T的顶点对的最小旋转次数。我们介绍了一种新的操作链旋转的树,涉及两个链的顶点,这需要改变正好三个指针的数据结构作为一个标准的旋转,并定义相应的链距离C(S,T)。对于D(S,T),没有已知的计算C(S,T)的多项式时间算法。我们证明了C(S,T)的一个构造性上界和一个分析下界的基础上的两棵树中的极大链的数量。我们证明了关于n的一般上界C(S,T)<= n-1,并且证明了存在树对,对于它们,这个上界是紧的.对于D(S,T),最佳上、下界分别为2n-6和5 n/3-4,没有类似的结果。
英文摘要:
As well known the rotation distance D(S,T) between two binary trees S, T of n vertices is the minimum number of rotations of pairs of vertices to transform S into T. We introduce the new operation of chain rotation on a tree, involving two chains of vertices, that requires changing exactly three pointers in the data structure as for a standard rotation, and define the corresponding chain distance C(S,T). As for D(S,T), no polynomial time algorithm to compute C(S,T) is known. We prove a constructive upper bound and an analytical lower bound on C(S,T) based on the number of maximal chains in the two trees. In terms of n we prove the general upper bound C(S,T)<= n-1 and we show that there are pairs of trees for which this bound is tight. No similar result is known for D(S,T) where the best upper and lower bounds are 2n-6 and 5n/3-4 respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。