Counting Colours in Compressed Strings
Data Structures and Algorithms
2010-11-16 v1
Abstract
Suppose we are asked to preprocess a string 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 bits, where is the 0th-order empirical entropy of , and answers queries in time for any constant . We also show how our data structure can be made partially dynamic.
Keywords
Cite
@article{arxiv.1011.3480,
title = {Counting Colours in Compressed Strings},
author = {Travis Gagie and Juha Kärkkäinen},
journal= {arXiv preprint arXiv:1011.3480},
year = {2010}
}