Run Compressed Rank/Select for Large Alphabets

11/08/2017
by   José Fuentes-Sepúlveda, et al.
0

Given a string of length n that is composed of r runs of letters from the alphabet {0,1,...,σ-1} such that 2 <σ< r, we describe a data structure that, provided r < n / ^ω(1) n, stores the string in rnσ/r + o(rnσ/r) bits and supports select and access queries in O((n/r)/ n) time and rank queries in O((nσ/r)/ n) time. We show that rn(σ-1)/r bits are necessary for any such data structure and, thus, our solution is succinct. We also describe a data structure that uses (1 + ϵ)rnσ/r + O(r) bits, where ϵ > 0 is an arbitrary constant, with the same query times but without the restriction r < n / ^ω(1) n. By simple reductions to the colored predecessor problem, we show that the query times are optimal in the important case r > 2^^δ n, for an arbitrary constant δ > 0. We implement our solution and compare it with the state of the art, showing that the closest competitors consume 31-46

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/21/2022

The Complexity of the Co-Occurrence Problem

Let S be a string of length n over an alphabet Σ and let Q be a subset o...
research
02/26/2020

Bitvectors with runs and the successor/predecessor problem

The successor and predecessor problem consists of obtaining the closest ...
research
11/28/2017

Faster range minimum queries

Range Minimum Query (RMQ) is an important building brick of many compres...
research
11/03/2018

Compressed Multiple Pattern Matching

Given d strings over the alphabet {0,1,...,σ-1}, the classical Aho--Cora...
research
02/18/2023

Faster Wavelet Trees with Quad Vectors

Given a text, rank and select queries return the number of occurrences o...
research
10/15/2021

Compact representation for matrices of bounded twin-width

For every fixed d ∈ℕ, we design a data structure that represents a binar...
research
07/22/2019

Succinct Representation for (Non)Deterministic Finite Automata

Deterministic finite automata are one of the simplest and most practical...

Please sign up or login with your details

Forgot password? Click here to reset