English

Engineering Rank/Select Data Structures for Large-Alphabet Strings

Data Structures and Algorithms 2024-05-03 v2

Abstract

Large-alphabet strings are common in scenarios such as information retrieval and natural-language processing. The efficient storage and processing of such strings usually introduces several challenges that are not witnessed in small-alphabets strings. This paper studies the efficient implementation of one of the most effective approaches for dealing with large-alphabet strings, namely the \emph{alphabet-partitioning} approach. The main contribution is a compressed data structure that supports the fundamental operations rankrank and selectselect efficiently. We show experimental results that indicate that our implementation outperforms the current realizations of the alphabet-partitioning approach. In particular, the time for operation selectselect can be improved by about 80%, using only 11% more space than current alphabet-partitioning schemes. We also show the impact of our data structure on several applications, like the intersection of inverted lists (where improvements of up to 60% are achieved, using only 2% of extra space), the representation of run-length compressed strings, and the distributed-computation processing of rankrank and selectselect operations. In the particular case of run-length compressed strings, our experiments on the Burrows-Wheeler transform of highly-repetitive texts indicate that by using only about 0.98--1.09 times the space of state-of-the-art RLFM-indexes (depending on the text), the process of counting the number of occurrences of a pattern in a text can be carried out 1.23--2.33 times faster.

Keywords

Cite

@article{arxiv.2305.14461,
  title  = {Engineering Rank/Select Data Structures for Large-Alphabet Strings},
  author = {Diego Arroyuelo and Gabriel Carmona and Héctor Larrañaga and Francisco Riveros and Carlos Eugenio Rojas-Morales and Erick Sepúlveda},
  journal= {arXiv preprint arXiv:2305.14461},
  year   = {2024}
}
R2 v1 2026-06-28T10:43:35.679Z