Practical Random Access to SLP-Compressed Texts

Travis Gagie, Tomohiro I, Giovanni Manzini, Gonzalo Navarro, Hiroshi Sakamoto +2 more
10/16/2019
cs.DS

Official code: itomomoti/ShapedSlp (9 stars, C++, last commit 2023-05-05).

Abstract

Grammar-based compression is a popular and powerful approach to compressing repetitive texts but until recently its relatively poor time-space trade-offs during real-life construction made it impractical for truly massive datasets such as genomic databases. In a recent paper (SPIRE 2019) we showed how simple pre-processing can dramatically improve those trade-offs, and in this paper we turn our attention to one of the features that make grammar-based compression so attractive: the possibility of supporting fast random access.

Show full abstract

This is an essential primitive in many algorithms that process grammar-compressed texts without decompressing them and so many theoretical bounds have been published about it, but experimentation has lagged behind. We give a new encoding of grammars that is about as small as the practical state of the art (Maruyama et al., SPIRE 2013) but with significantly faster queries.

View on arXivView PDF

Code Implementations(1)

SLP encodings that support substring extraction

99C++, CNov 7, 20193 years agoNOASSERTION

Similar Papers

Cite this paper

@article{gagie2019practical,
  title  = {Practical Random Access to SLP-Compressed Texts},
  author = {Travis Gagie and Tomohiro I and Giovanni Manzini and Gonzalo Navarro and Hiroshi Sakamoto and Louisa Seelbach Benkner and Yoshimasa Takabatake},
  year   = {2019},
  eprint = {1910.07145},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.07145}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1910.07145.svg)](https://codeofpaper.com/paper/1910.07145)

Discussion