Abstract:This note describes a very simple O(1) query time algorithm for finding level ancestors. This is basically a serial (re)-implementation of the parallel algorithm.Earlier, Menghani and Matani described another simple algorithm; however, their algorithm takes O(log n) time to answer queries.Although the basic algorithm has preprocessing time of O(n log n), by having additional levels, the preprocessing time can be reduced to almost linear or linear.
Set email alert for when this publication receives citations?
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.