The Level Ancestor Problem Simplified

  • Authors:
  • Michael A. Bender;Martin Farach-Colton

  • Affiliations:
  • -;-

  • Venue:
  • LATIN '02 Proceedings of the 5th Latin American Symposium on Theoretical Informatics
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a very simple algorithm for the Level Ancestor Problem. A Level Ancestor Query LA(v, d) requests the depth d ancestor of node v. The Level Ancestor Problem is thus: preprocess a given rooted tree T to answer level ancestor queries. While optimal solutions to this problem already exist, our new optimal solution is simple enough to be taught and implemented.