Linear-Space Substring Range Counting over Polylogarithmic Alphabets
@misc{gagie2012linearspace,
title = {Linear-Space Substring Range Counting over Polylogarithmic Alphabets},
author = {Travis Gagie and Paweł Gawrychowski},
year = {2012},
eprint = {1202.3208},
archivePrefix = {arXiv},
primaryClass = {cs.DS},
url = {https://arxiv.org/abs/1202.3208}
}
Gagie, T., & Gawrychowski, P. (2012). Linear-Space Substring Range Counting over Polylogarithmic Alphabets [Preprint]. arXiv. https://doi.org/10.48550/arXiv.1202.3208
GAGIE T, GAWRYCHOWSKI P. Linear-Space Substring Range Counting over Polylogarithmic Alphabets[EB/OL]. (2012-02-15)[2026-11-29]. https://arxiv.org/abs/1202.3208.
Abstract
Bille and Gørtz (2011) recently introduced the problem of substring range counting, for which we are asked to store compactly a string S of n characters with integer labels in ([0, u]), such that later, given an interval ([a, b]) and a pattern P of length m, we can quickly count the occurrences of P whose first characters' labels are in ([a, b]). They showed how to store S in Ohn log n / log log n space and answer queries in Ohm + log log u time. We show that, if S is over an alphabet of size (polylog (n)), then we can achieve optimal linear space. Moreover, if (u = n polylog (n)), then we can also reduce the time to Ohm. Our results give linear space and time bounds for position-restricted substring counting and the counting versions of indexing substrings with intervals, indexing substrings with gaps and aligned pattern matching.