Faster range minimum queries

11/28/2017
by   Tomasz Kowalski, et al.
0

Range Minimum Query (RMQ) is an important building brick of many compressed data structures and string matching algorithms. Although this problem is essentially solved in theory, with sophisticated data structures allowing for constant time queries, practical performance and construction time also matter. Additionally, there are offline scenarios in which the number of queries, q, is rather small and given beforehand, which encourages to use a simpler approach. In this work, we present a simple data structure, with very fast construction, which allows to handle queries in constant time on average. This algorithm, however, requires access to the input data during queries (which is not the case of sophisticated RMQ solutions). We subsequently refine our technique, combining it with one of the existing succinct solutions with O(1) worst-case time queries and no access to the input array. The resulting hybrid is still a memory frugal data structure, spending usually up to about 3n bits, and providing competitive query times, especially for wide ranges. We also show how to make our baseline data structure more compact. Experimental results demonstrate that the proposed BbST (Block-based Sparse Table) variants are competitive to existing solutions, also in the offline scenario.

READ FULL TEXT

page 1

page 2

page 3

page 4

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
11/08/2017

Run Compressed Rank/Select for Large Alphabets

Given a string of length n that is composed of r runs of letters from th...
research
02/18/2021

Range Minimum Queries in Minimal Space

We consider the problem of computing a sequence of range minimum queries...
research
08/28/2019

Performance Analysis of Zippers

A zipper is a powerful technique of representing a purely functional dat...
research
11/03/2018

Compressed Multiple Pattern Matching

Given d strings over the alphabet {0,1,...,σ-1}, the classical Aho--Cora...
research
11/10/2022

A new data structure for efficient search on isovists

Spatial data structures allow to make efficient queries on Geographical ...
research
11/05/2020

Competitive Data-Structure Dynamization

Data-structure dynamization is a general approach for making static data...

Please sign up or login with your details

Forgot password? Click here to reset