English

Compressed Index with Construction in Compressed Space

Data Structures and Algorithms 2026-04-15 v2

Abstract

Suppose that we are given a string ss of length nn over an alphabet {0,1,,nO(1)}\{0,1,\ldots,n^{O(1)}\} and δ\delta is the string complexity of ss, a known compression measure. We describe an index on ss with O(δlognδ)O(\delta\log\frac{n}{\delta}) space, measured in O(logn)O(\log n)-bit machine words, which can search in ss any string of length mm in O(m+(occ+1)logϵn)O(m + (\mathrm{occ} + 1)\log^\epsilon n) time, where occ\mathrm{occ} is the number of occurrences and ϵ>0\epsilon > 0 is any fixed constant (the big-O in the space bound hides factor 1ϵ\frac{1}{\epsilon}). Crucially, the index can be built in O(nlogn)O(n\log n) expected time by one left-to-right pass on the string ss in a streaming fashion with O(δlognδ)O(\delta\log\frac{n}{\delta}) construction space. The index does not use the Karp--Rabin fingerprints, and the randomization in the construction time can be eliminated by using deterministic dictionaries instead of hash tables (with a slowdown). The search time matches currently best results and the space is almost optimal (the known optimum is O(δlognδα)O(\delta\log\frac{n}{\delta\alpha}), where α=logσn\alpha = \log_\sigma n and σ\sigma is the alphabet size, and it coincides with O(δlognδ)O(\delta\log\frac{n}{\delta}) when δ=O(n/α2)\delta = O(n / \alpha^2)). This is the first index that can be constructed within such space and with such time guarantees. To avoid uninteresting marginal cases, all above bounds are stated for δΩ(loglogn)\delta \ge \Omega(\log\log n).

Keywords

Cite

@article{arxiv.2602.13735,
  title  = {Compressed Index with Construction in Compressed Space},
  author = {Dmitry Kosolobov},
  journal= {arXiv preprint arXiv:2602.13735},
  year   = {2026}
}

Comments

30 pages (1 title page + 15 main text + 3 reference pages + appendix), 5 figures

R2 v1 2026-07-01T10:36:47.510Z