在熵有界空间内为 Trie 建立索引
Indexing Tries within Entropy-Bounded Space
AI总结:
本文研究基于 BWT 的 Trie 索引压缩方法,提出 Trie 的 k 阶经验熵度量,证明 XBWT 可在熵有界空间内编码,并在某些情况下渐近优于 r-index。
摘要:
我们研究使用基于 BWT 的方法对 Trie 进行索引和压缩的问题。具体来说,我们考虑 Ferragina 等人 [FOCS '05, JACM '09] 提出的 XBWT 的简洁压缩表示,它对应于针对 Trie 的 FM-index [FOCS '00, JACM '05] 的类似物。该表示能够高效地统计给定字符串模式所到达的节点数量。为了分析上述 Trie 索引的空间复杂度,我们针对计数具有给定符号分布的 Trie 数量的组合问题提出了一种证明。我们利用该公式定义了 Trie 的最坏情况熵度量,以及 k 阶经验熵的概念。特别地,我们证明了这两种熵度量之间的关系与字符串中相应的众所周知度量之间的关系类似。我们利用这些度量证明,Trie 的 XBWT 可以在由我们的 k 阶经验熵加上一个 o(n) 项所限定的空间内进行编码,其中 n 是 Trie 中的节点数量。值得注意的是,与字符串的情况一样,对于每个足够小的 k,可以同时达到这一空间界限。最后,我们将上述索引的空间复杂度与 Prezza [SODA '21] 提出的针对 Trie 的 r-index 的空间复杂度进行比较,并证明在某些情况下,针对 Trie 的 FM-index 在渐近意义上更小。
英文摘要:
We study the problem of indexing and compressing tries using a BWT-based approach. Specifically, we consider a succinct and compressed representation of the XBWT of Ferragina et al.\ [FOCS '05, JACM '09] corresponding to the analogous of the FM-index [FOCS '00, JACM '05] for tries. This representation allows to efficiently count the number of nodes reached by a given string pattern. To analyze the space complexity of the above trie index, we propose a proof for the combinatorial problem of counting the number of tries with a given symbol distribution. We use this formula to define a worst-case entropy measure for tries, as well as a notion of k-th order empirical entropy. In particular, we show that the relationships between these two entropy measures are similar to those between the corresponding well-known measures for strings. We use these measures to prove that the XBWT of a trie can be encoded within a space bounded by our k-th order empirical entropy plus a o(n) term, with n being the number of nodes in the trie. Notably, as happens for strings, this space bound can be reached for every sufficiently small k simultaneously. Finally, we compare the space complexity of the above index with that of the r-index for tries proposed by Prezza [SODA '21] and we prove that in some cases the FM-index for tries is asymptotically smaller.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。