Abstract
Bille and Gørtz (2011) recently introduced the problem of substring range counting, for which we are asked to store compactly a string of characters with integer labels in ([0, u]), such that later, given an interval ([a, b]) and a pattern of length , we can quickly count the occurrences of whose first characters' labels are in ([a, b]). They showed how to store in $\Oh{n \log n / \log \log n}$ space and answer queries in $\Oh{m + \log \log u}$ time. We show that, if 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 $\Oh{m}$. 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.
Connections
Explore this paper’s authors, topics and related work.
Building this map preview
BZPEER is loading the nearby papers, people, topics and institutions for this page.
Reviews 0
Write a review
No reviews yet.
Discussion 0
Add a comment
No comments yet.