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

08/31/2022
by   Seungbum Jo, et al.
0

Given an array of size n from a total order, we consider the problem of constructing a data structure that supports various queries (range minimum/maximum queries with their variants and next/previous larger/smaller queries) efficiently. In the encoding model (i.e., the queries can be answered without the input array), we propose a (3.701n + o(n))-bit data structure, which supports all these queries in O(log^(ℓ)n) time, for any positive integer ℓ (here, log^(1) n = log n, and for ℓ > 1, log^(ℓ) n = log (log^(ℓ-1) n)). The space of our data structure matches the current best upper bound of Tsur (Inf. Process. Lett., 2019), which does not support the queries efficiently. Also, we show that at least 3.16n-Θ(log n) bits are necessary for answering all the queries. Our result is obtained by generalizing Gawrychowski and Nicholson's (3n - Θ(log n))-bit lower bound (ICALP 15) for answering range minimum and maximum queries on a permutation of size n.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/13/2020

Lower Bound for Succinct Range Minimum Query

Given an integer array A[1..n], the Range Minimum Query problem (RMQ) as...
research
08/10/2018

The effective entropy of next/previous larger/smaller value queries

We study the problem of storing the minimum number of bits required to a...
research
02/18/2021

Range Minimum Queries in Minimal Space

We consider the problem of computing a sequence of range minimum queries...
research
09/19/2018

Encoding two-dimensional range top-k queries revisited

We consider the problem of encoding two-dimensional arrays, whose elemen...
research
01/04/2022

Dynamic Suffix Array with Polylogarithmic Queries and Updates

The suffix array SA[1..n] of a text T of length n is a permutation of {1...
research
10/18/2022

Computing MEMs on Repetitive Text Collections

We consider the problem of computing the Maximal Exact Matches (MEMs) of...
research
11/24/2021

Tiny Pointers

This paper introduces a new data-structural object that we call the tiny...

Please sign up or login with your details

Forgot password? Click here to reset