Range Minimum Queries in Minimal Space

02/18/2021
by   Luís M. S. Russo, et al.
0

We consider the problem of computing a sequence of range minimum queries. We assume a sequence of commands that contains values and queries. Our goal is to quickly determine the minimum value that exists between the current position and a previous position i. Range minimum queries are used as a sub-routine of several algorithms, namely related to string processing. We propose a data structure that can process these commands sequences. We obtain efficient results for several variations of the problem, in particular we obtain O(1) time per command for the offline version and O(α(n)) amortized time for the online version, where α(n) is the inverse Ackermann function and n the number of values in the sequence. This data structure also has very small space requirements, namely O(ℓ) where ℓ is the maximum number active i positions. We implemented our data structure and show that it is competitive against existing alternatives. We obtain comparable command processing time, in the nano second range, and much smaller space requirements.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/31/2022

Space-efficient data structure for next/previous larger/smaller value queries

Given an array of size n from a total order, we consider the problem of ...
research
11/28/2017

Faster range minimum queries

Range Minimum Query (RMQ) is an important building brick of many compres...
research
07/19/2019

On Approximate Range Mode and Range Selection

For any ϵ∈ (0,1), a (1+ϵ)-approximate range mode query asks for the posi...
research
02/12/2019

Compressed Range Minimum Queries

Given a string S of n integers in [0,σ), a range minimum query RMQ(i, j)...
research
05/06/2020

Incremental Multiple Longest Common Sub-Sequences

We consider the problem of updating the information about multiple longe...
research
10/05/2022

Double-Ended Palindromic Trees: A Linear-Time Data Structure and Its Applications

The palindromic tree (a.k.a. eertree) is a linear-size data structure th...
research
08/03/2022

OrderedCuts: A new approach for computing Gomory-Hu tree

The Gomory-Hu tree, or a cut tree, is a classic data structure that stor...

Please sign up or login with your details

Forgot password? Click here to reset