Engineering rank/select data structures for large-alphabet strings

Abstract Large-alphabet strings, prevalent in information retrieval and natural language processing, pose unique storage and processing challenges. This paper explores the efficient implementation of the alphabet-partition approach, introducing a compressed data structure that efficiently supports the operations ${\mathsf{rank}}$ and ${\mathsf{select}}$. Our implementation significantly outperforms existing methods, improving the ${\mathsf{select}}$ operation speed by 80% with only 11% additional space. We demonstrate the utility of our structure in various applications, including inverted list intersections, run-length compressed strings, and distributed computation of ${\mathsf{rank}}$ and ${\mathsf{select}}$. Notably, for run-length compressed strings using the Burrows–Wheeler transform, our data structure requires only 0.98–1.09 times the space of state-of-the-art RLFM-indexes to achieve 1.23–2.33 times faster pattern occurrence counting while also providing better theoretical guarantees.

Authors

Institutions

Publication Details

Journal
The Computer Journal
Published
2025-08-04
DOI
https://doi.org/10.1093/comjnl/bxaf102
Primary Topic
Algorithms and Data Compression
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Engineering rank/select data structures for large-alphabet strings

Erick Sepúlveda, Diego Arroyuelo, Francisco Riveros, Héctor Larrañaga et al.
The Computer Journal
Algorithms and Data Compression
article

Engineering rank/select data structures for large-alphabet strings

Erick Sepúlveda, Diego Arroyuelo, Francisco Riveros, Héctor Larrañaga, Gabriel Carmona, Carlos Eugenio Rojas-Morales
article en

Abstract

Abstract Large-alphabet strings, prevalent in information retrieval and natural language processing, pose unique storage and processing challenges. This paper explores the efficient implementation of the alphabet-partition approach, introducing a compressed data structure that efficiently supports the operations ${\mathsf{rank}}$ and ${\mathsf{select}}$. Our implementation significantly outperforms existing methods, improving the ${\mathsf{select}}$ operation speed by 80% with only 11% additional space. We demonstrate the utility of our structure in various applications, including inverted list intersections, run-length compressed strings, and distributed computation of ${\mathsf{rank}}$ and ${\mathsf{select}}$. Notably, for run-length compressed strings using the Burrows–Wheeler transform, our data structure requires only 0.98–1.09 times the space of state-of-the-art RLFM-indexes to achieve 1.23–2.33 times faster pattern occurrence counting while also providing better theoretical guarantees.

The Computer JournalVol. 69(1)
University of Pisa (IT), Istituto Nazionale di Fisica Nucleare, Sezione di Pisa (IT), Millennium Institute on Immunology and Immunotherapy (CL), Federico Santa María Technical University (CL)
Openalex Percentile: Top 89%
Algorithms and Data Compression
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.