English

Optimal Rank and Select Queries on Dictionary-Compressed Text

Data Structures and Algorithms 2018-12-24 v3

Abstract

We study the problem of supporting queries on a string SS of length nn within a space bounded by the size γ\gamma of a string attractor for SS. Recent works showed that random access on SS can be supported in optimal O(log(n/γ)/loglogn)O(\log(n/\gamma)/\log\log n) time within O(γ polylog n)O\left (\gamma\ \rm{polylog}\ n \right) space. In this paper, we extend this result to \emph{rank} and \emph{select} queries and provide lower bounds matching our upper bounds on alphabets of polylogarithmic size. Our solutions are given in the form of a space-time trade-off that is more general than the one previously known for grammars and that improves existing bounds on LZ77-compressed text by a loglogn\log\log n time-factor in \emph{select} queries. We also provide matching lower and upper bounds for \emph{partial sum} and \emph{predecessor} queries within attractor-bounded space, and extend our lower bounds to encompass navigation of dictionary-compressed tree representations.

Keywords

Cite

@article{arxiv.1811.01209,
  title  = {Optimal Rank and Select Queries on Dictionary-Compressed Text},
  author = {Nicola Prezza},
  journal= {arXiv preprint arXiv:1811.01209},
  year   = {2018}
}

Comments

improved select bound with reduction to psum. Added lower bounds on trees

R2 v1 2026-06-23T05:03:04.112Z