arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1011.3480cs.DS
收藏

压缩字符串中的颜色计数

Counting Colours in Compressed Strings

Travis Gagie, Juha Kärkkäinen

摘要:

假设我们被要求预处理一个字符串\(s [1..n]\),这样以后,给定一个子字符串的端点,我们就可以快速计算出它包含多少个不同的字符。在本文中,我们给这个问题,需要\(n H_0 (s) + \Oh{n} + \oh{n H_0 (s)}\)位的数据结构,其中\(H_0 (s)\)是0阶经验熵的$s$,并回答查询在$\Oh{\log^{1 + ε} n}$的时间为任何常数\(ε> 0\)。我们还展示了如何我们的数据结构可以部分动态。

英文摘要:

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 + ε} n}$ time for any constant \(ε> 0\). We also show how our data structure can be made partially dynamic.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑