RECORD
A Simple Solution to the Level-Ancestor Problem
Data Structures and Algorithms · Submitted 4 Mar 2019
abstract compiled · 2026-09-23 · no language-model review
The authors' main claim We present a simple solution, which pre-processes the tree in $O(n)$ time with $O(n)$ extra space, and answers the queries in $O(\log\ {n})$ time.
The compiled record
The paper's own sentences, arranged. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. Numbers in the tables are the authors', checked by code. No sentence in this record was written by a model.
Open the compiled record
The abstract, sentence by sentence
A Level Ancestory query LA($u$, $d$) asks for the the ancestor of the node $u$ at a depth $d$. We present a simple solution, which pre-processes the tree in $O(n)$ time with $O(n)$ extra space, and answers the queries in $O(\log\ {n})$ time. Though other optimal algorithms exist, this is a simple enough solution that could be taught and implemented easily.
background contribution method result interpretation main claim
| # | sentence | role | the authors' own work | states the main conclusion | strength |
|---|---|---|---|---|---|
| s0 | A Level Ancestory query LA($u$, $d$) asks for the the ancestor of the node $u$ at a depth $d$. | background 1.00 | 0.07 | 0.04 | asserted 0.99 |
| s1 | We present a simple solution, which pre-processes the tree in $O(n)$ time with $O(n)$ extra space, and answers the queries in $O(\log\ {n})$ time. | contribution 0.82 | 0.95 | 0.78 | asserted 1.00 |
| s2 | Though other optimal algorithms exist, this is a simple enough solution that could be taught and implemented easily. | interpretation 0.87 | 0.25 | 0.19 | hedged possibility 0.89 |
What was examined, and what was not
- arXiv listing abstract v2
- full text
- figures and tables
- references and citing sentences
- relations to other papers
- P abstract
- S sections
- T body sentences
- C citations
- R cross-paper relations
The paper
Original abstract
A Level Ancestory query LA($u$, $d$) asks for the the ancestor of the node $u$ at a depth $d$. We present a simple solution, which pre-processes the tree in $O(n)$ time with $O(n)$ extra space, and answers the queries in $O(\log\ {n})$ time. Though other optimal algorithms exist, this is a simple enough solution that could be taught and implemented easily.
Human review
How the literature uses it
1 arXiv paper cite this in 2 sentences
Papers citing it
Cites it as background 1 paper
-
Several sequential and parallel algorithms are known for this problem [ref] .
Simpler O(1) Query Algorithm for Level Ancestors · Introduction · 1.00
Discussion
Know something about this paper? Leave a comment, or highlight any passage above to comment on it.