English

Nearest Common Ancestors: Universal Trees and Improved Labeling Schemes

Data Structures and Algorithms 2017-07-28 v1

Abstract

We investigate the nearest common ancestor (NCA) function in rooted trees. As the main conceptual contribution, the paper introduces universal trees for the NCA function: For a given family of rooted trees, an NCA-universal tree SS is a rooted tree such that any tree TT of the family can be embedded into SS such that the embedding of the NCA in TT of two nodes of TT is equal to the NCA in SS of the embeddings of the two nodes. As the main technical result we give explicit constructions of NCA-universal trees of size n2.318n^{2.318} for the family of rooted nn-vertex trees and of size n1.894n^{1.894} for the family of rooted binary nn-vertex trees. A direct consequence is the explicit construction of NCA-labeling schemes with labels of size 2.318log2n2.318\log_2 n and 1.894log2n1.894\log_2 n for the two families of rooted trees. This improves on the best known such labeling schemes established by Alstrup, Halvorsen and Larsen [SODA 2014].

Cite

@article{arxiv.1707.08807,
  title  = {Nearest Common Ancestors: Universal Trees and Improved Labeling Schemes},
  author = {Fabian Kuhn and Konstantinos Panagiotou and Pascal Su},
  journal= {arXiv preprint arXiv:1707.08807},
  year   = {2017}
}
R2 v1 2026-06-22T20:59:03.027Z