Chain rotations: A new look at tree distance

  • Authors:
  • Fabrizio Luccio;Linda Pagli

  • Affiliations:
  • Dipartimento di Informatica, Universití di Pisa, Italy;Dipartimento di Informatica, Universití di Pisa, Italy

  • Venue:
  • Information Processing Letters
  • Year:
  • 2013

Quantified Score

Hi-index 0.89

Visualization

Abstract

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 distanceC(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. More precisely we prove the general upper bound C(S,T)=