A Fast and Small Subsampled R-index
Abstract
The -index (Gagie et al., JACM 2020) represented a breakthrough in compressed indexing of repetitive text collections, outperforming its alternatives by orders of magnitude. Its space usage, where is the number of runs in the Burrows-Wheeler Transform of the text, is however larger than Lempel-Ziv and grammar-based indexes, and makes it uninteresting in various real-life scenarios of milder repetitiveness. In this paper we introduce the -index, a variant that limits the space to for a text of length and a given parameter , at the expense of multiplying by the time per occurrence reported. The -index is obtained by carefully subsampling the text positions indexed by the -index, in a way that we prove is still able to support pattern matching with guaranteed performance. Our experiments demonstrate that the -index sharply outperforms virtually every other compressed index on repetitive texts, both in time and space, even matching the performance of the -index while using 1.5--3.0 times less space. Only some Lempel-Ziv-based indexes achieve better compression than the -index, using about half the space, but they are an order of magnitude slower.
Keywords
Cite
@article{arxiv.2103.15329,
title = {A Fast and Small Subsampled R-index},
author = {Dustin Cobas and Travis Gagie and Gonzalo Navarro},
journal= {arXiv preprint arXiv:2103.15329},
year = {2021}
}