Abstract

Suppose we are asked to preprocess a string s[1..n]s [1..n] such that later, given a substring's endpoints, we can quickly count how many distinct characters it contains. In this paper we give a data structure for this problem that takes \(n H_0 (s) + \Oh{n} + \oh{n H_0 (s)}\) bits, where H0(s)H_0 (s) is the 0th-order empirical entropy of ss, and answers queries in $\Oh{\log^{1 + ε} n}$ time for any constant ε>0ε> 0. We also show how our data structure can be made partially dynamic.

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 reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.