小空间文本索引的局部一致性分析
Locally Consistent Parsing for Text Indexing in Small Space
摘要:
我们考虑两个密切相关的问题,在一个次线性工作空间的文本索引。第一个问题是稀疏后缀树(SST)的一组后缀$B$只使用$O(|B|)$空间字的建设。第二个问题是最长公共扩展(LCE)问题,其中对于某个参数$1\leτ\le n$,目标是构造使用空间的$O(\frac {n}τ)$字并且可以计算任何后缀对的最长公共前缀长度的数据结构。我们展示了如何使用基于局部一致性解析技术的思想,该技术是由Sahinalp和Vishkin [STOC '94]引入的,以一些非平凡的方式来改善上述问题的已知结果。我们引入新的拉斯维加斯和确定性算法这两个问题。我们介绍了第一个Las-Vegas SST构造算法,该算法需要$O(n)$时间。这是对Gawrychowski和Kociumaka [SODA '17]的最后结果的改进,他们获得了Monte-Carlo算法的$O(n)$时间和Las-Vegas算法的$O(n\sqrt{\log |B|})$时间。此外,我们引入了一个随机的拉斯维加斯建设LCE数据结构,可以在线性时间和$O(τ)$时间回答查询。对于确定性算法,我们引入了一个SST构造算法,它需要$O(n\log \frac{n}{|B|})$时间(对于$|B|=Ω(\log n)$)。这是第一个几乎线性时间的$O(n\cdot poly\log{n})$确定性SST构造算法,其中所有先前的算法至少花费$Ω\left(\min\{n|B|,\frac{n^2}{|B|}\}\right)$时间。对于LCE问题,我们引入了一个数据结构,在$O(τ\sqrt{\log^*n})$时间内回答LCE查询,$O(n\logτ)$构建时间(对于$τ=O(\frac{n}{\log n})$)。该数据结构根据Tanimura等人的结果改进了查询时间和构造时间。[CPM '16]。
英文摘要:
We consider two closely related problems of text indexing in a sub-linear working space. The first problem is the Sparse Suffix Tree (SST) construction of a set of suffixes $B$ using only $O(|B|)$ words of space. The second problem is the Longest Common Extension (LCE) problem, where for some parameter $1\leτ\le n$, the goal is to construct a data structure that uses $O(\frac {n}τ)$ words of space and can compute the longest common prefix length of any pair of suffixes. We show how to use ideas based on the Locally Consistent Parsing technique, that was introduced by Sahinalp and Vishkin [STOC '94], in some non-trivial ways in order to improve the known results for the above problems. We introduce new Las-Vegas and deterministic algorithms for both problems. We introduce the first Las-Vegas SST construction algorithm that takes $O(n)$ time. This is an improvement over the last result of Gawrychowski and Kociumaka [SODA '17] who obtained $O(n)$ time for Monte-Carlo algorithm, and $O(n\sqrt{\log |B|})$ time for Las-Vegas algorithm. In addition, we introduce a randomized Las-Vegas construction for an LCE data structure that can be constructed in linear time and answers queries in $O(τ)$ time. For the deterministic algorithms, we introduce an SST construction algorithm that takes $O(n\log \frac{n}{|B|})$ time (for $|B|=Ω(\log n)$). This is the first almost linear time, $O(n\cdot poly\log{n})$, deterministic SST construction algorithm, where all previous algorithms take at least $Ω\left(\min\{n|B|,\frac{n^2}{|B|}\}\right)$ time. For the LCE problem, we introduce a data structure that answers LCE queries in $O(τ\sqrt{\log^*n})$ time, with $O(n\logτ)$ construction time (for $τ=O(\frac{n}{\log n})$). This data structure improves both query time and construction time upon the results of Tanimura et al. [CPM '16].
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。