The level ancestor problem simplified

  • Authors:
  • Michael A. Bender;Martín Farach-Colton

  • Affiliations:
  • Department of Computer Science, State University of New York at Stony Brook, Stony Brook, NY;Department of Computer Science, Rutgers University, Piscataway, NJ

  • Venue:
  • Theoretical Computer Science - Latin American theorotical informatics
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a 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 to preprocess a given rooted tree T to support level ancestor queries. While optimal solutions to this problem already exist, our new optimal solution is simple enough to be taught and implemented.