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.
Original language | English (US) |
---|---|
Pages (from-to) | 5-12 |
Number of pages | 8 |
Journal | Theoretical Computer Science |
Volume | 321 |
Issue number | 1 |
DOIs | |
State | Published - Jun 16 2004 |
Event | Latin American Theoretical Informatics - Cancun, Mexico Duration: Apr 3 2002 → Apr 6 2002 |
Keywords
- Data structures
- Level Ancestor Problem
- Rooted trees
ASJC Scopus subject areas
- Theoretical Computer Science
- General Computer Science