关于秩受限树的旋转距离
On Rotation Distance of Rank Bounded Trees
AI总结:
本文研究了秩受限树之间的旋转距离问题,提出了一种O(n²)时间算法计算秩为1的树的旋转距离,并给出了一般秩情况下的上界。
摘要:
计算两个具有n个内部节点的二叉树之间的旋转距离在多项式时间内高效完成是一个长期存在的开放问题。本文首次研究该问题,限制输入树的秩(由Ehrenfeucht和Haussler在决策树上下文定义)。我们定义两个给定二叉树T1和T2(具有n个内部节点)的秩受限旋转距离dr(T1,T2)为将T1转换为T2的最短旋转序列长度,其中中间树的秩不超过r。我们证明旋转距离问题可以多项式时间归约到秩受限旋转距离问题。观察到秩为1的树恰好是斜树(每个内部节点至少有一个叶子作为子节点),我们在此前沿得出以下结果:我们提出一个O(n²)时间算法计算d1(T1,T2)。即,当给定树是斜树(称为斜旋转距离问题)时,中间树被限制为斜树。特别是,我们的技术表明,对于任何两个斜树d(T1,T2) ≤ n²。我们还展示了以下上界:对于任意两个秩不超过r1和r2的树T1和T2,有dr(T1,T2) ≤ n²(1+(2n+1)(r1+r2-2)),其中r = max{r1,r2}。此界在r=1时是渐近紧的。在上述定理的证明过程中,我们将二叉树与排列和双变量多项式相关联,并在斜树情况下证明了多个特征化结果。
英文摘要:
Computing the rotation distance between two binary trees with $n$ internal nodes efficiently (in $poly(n)$ time) is a long standing open question in the study of height balancing in tree data structures. In this paper, we initiate the study of this problem bounding the rank of the trees given at the input (defined by Ehrenfeucht and Haussler (1989) in the context of decision trees). We define the rank-bounded rotation distance between two given binary trees $T_1$ and $T_2$ (with $n$ internal nodes) of rank at most $r$, denoted by $d_r(T_1,T_2)$, as the length of the shortest sequence of rotations that transforms $T_1$ to $T_2$ with the restriction that the intermediate trees must be of rank at most $r$. We show that the rotation distance problem reduces in polynomial time to the rank bounded rotation distance problem. This motivates the study of the problem in the combinatorial and algorithmic frontiers. Observing that trees with rank $1$ coincide exactly with skew trees (binary trees where every internal node has at least one leaf as a child), we show the following results in this frontier : We present an $O(n^2)$ time algorithm for computing $d_1(T_1,T_2)$. That is, when the given trees are skew trees (we call this variant as skew rotation distance problem) - where the intermediate trees are restricted to be skew as well. In particular, our techniques imply that for any two skew trees $d(T_1,T_2) \le n^2$. We show the following upper bound : for any two trees $T_1$ and $T_2$ of rank at most $r_1$ and $r_2$ respectively, we have that: $d_r(T_1,T_2) \le n^2 (1+(2n+1)(r_1+r_2-2))$ where $r = max\{r_1,r_2\}$. This bound is asymptotically tight for $r=1$. En route our proof of the above theorems, we associate binary trees to permutations and bivariate polynomials, and prove several characterizations in the case of skew trees.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。