English

Optimal Time Random Access to Grammar-Compressed Strings in Small Space

Data Structures and Algorithms 2015-01-27 v4

Abstract

The random access problem for compressed strings is to build a data structure that efficiently supports accessing the character in position ii of a string given in compressed form. Given a grammar of size nn compressing a string of size NN, we present a data structure using O(nΔlogΔNnlogN)O(n\Delta \log_\Delta \frac N n \log N) bits of space that supports accessing position ii in O(logΔN)O(\log_\Delta N) time for ΔlogO(1)N\Delta \leq \log^{O(1)} N. The query time is optimal for polynomially compressible strings, i.e., when n=O(N1ϵ)n=O(N^{1-\epsilon}).

Keywords

Cite

@article{arxiv.1410.4701,
  title  = {Optimal Time Random Access to Grammar-Compressed Strings in Small Space},
  author = {Patrick Hagge Cording},
  journal= {arXiv preprint arXiv:1410.4701},
  year   = {2015}
}

Comments

Withdrawn because of errors in proofs. Fixed versions will be incorporated into a paper by other authors

R2 v1 2026-06-22T06:27:08.587Z