Rotation distance for rank bounded trees

From MaRDI portal
Publication:6168976

DOI10.1007/978-3-031-22105-7_47arXiv2304.03985MaRDI QIDQ6168976FDOQ6168976


Authors: S. K. M. Anoop, Jayalal Sarma M. N. Edit this on Wikidata


Publication date: 10 August 2023

Published in: Lecture Notes in Computer Science (Search for Journal in Brave)

Abstract: 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 T1 and T2 (with n internal nodes) of rank at most r, denoted by dr(T1,T2), as the length of the shortest sequence of rotations that transforms T1 to T2 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(n2) time algorithm for computing d1(T1,T2). 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(T1,T2)len2. We show the following upper bound : for any two trees T1 and T2 of rank at most r1 and r2 respectively, we have that: dr(T1,T2)len2(1+(2n+1)(r1+r22)) where r=maxr1,r2. 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.


Full work available at URL: https://arxiv.org/abs/2304.03985






Cites Work


Cited In (1)





This page was built for publication: Rotation distance for rank bounded trees

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q6168976)