加载中…
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 $\Oh{\log^{1 + \epsilon} n}$ time for any constant . We also show how our data structure can be made partially dynamic.

生成讲解博客的中文版本

生成AI智能校验的中文版本