English

Static Level Ancestors in Practice

Data Structures and Algorithms 2021-10-26 v2

Abstract

Given a rooted tree T, the level ancestor problem aims to answer queries of the form LA(v, d), which identify the level d ancestor of a node v in the tree. Several algorithms of varied complexity have been proposed for this problem in the literature, including optimal solutions that preprocess the tree TT in linear bounded time and proceed to answer queries in constant time. Despite its significance and numerous applications, to date there have been no comparative studies of the performance of these algorithms and few implementations are widely available. In our experimental study we implemented and compared several solutions to the level ancestor problem, including three theoretically optimal algorithms, and examined their space requirements and time performance in practice.

Keywords

Cite

@article{arxiv.1402.2741,
  title  = {Static Level Ancestors in Practice},
  author = {Matthew Mabrey and Thomas Caputi and Georgios Papamichail and Dimitris Papamichail},
  journal= {arXiv preprint arXiv:1402.2741},
  year   = {2021}
}
R2 v1 2026-06-22T03:06:25.956Z