Simple O(1) Query Algorithm for Level Ancestors

07/25/2022
by   Sanjeev Saxena, et al.
0

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(nlogn), by having additional levels, the preprocessing time can be reduced to almost linear or linear.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/22/2020

Improved Distance Sensitivity Oracles with Subcubic Preprocessing Time

We consider the problem of building Distance Sensitivity Oracles (DSOs)....
research
04/06/2021

Sorted Range Reporting

In sorted range selection problem, the aim is to preprocess a given arra...
research
04/05/2020

Query-points visibility constraint minimum link paths in simple polygons

We study the query version of constrained minimum link paths between two...
research
03/04/2019

A Simple Solution to the Level-Ancestor Problem

A Level Ancestory query LA(u, d) asks for the the ancestor of the node u...
research
09/20/2023

Parameterized Algorithms for Scalable Interprocedural Data-flow Analysis

Data-flow analysis is a general technique used to compute information of...
research
07/28/2020

A Simple Sublinear Algorithm for Gap Edit Distance

We study the problem of estimating the edit distance between two n-chara...
research
11/10/2017

Time-Windowed Contiguous Hotspot Queries

A hotspot of a moving entity is a region in which it spends a significan...

Please sign up or login with your details

Forgot password? Click here to reset