计算机科学 > 数据结构与算法
[提交于 2010年11月15日]
标题:Counting Colours in Compressed Strings
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Suppose we are asked to preprocess a string \(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 \(H_0 (s)\) is the 0th-order empirical entropy of $s$, and answers queries in $\Oh{\log^{1 + \epsilon} n}$ time for any constant \(\epsilon > 0\). We also show how our data structure can be made partially dynamic.
提交历史
来自:Travis Gagie[v1] 2010年11月15日 星期一 19:30:19 UTC