arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1702.07458cs.DS
收藏

具有恒定时间查询的小空间编码LCE数据结构

Small-space encoding LCE data structure with constant-time queries

Yuka Tanimura, Takaaki Nishimoto, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda

摘要:

\emph{longest common extension}(\emph{LCE})问题是预处理长度为$n$的给定字符串$w$,以便快速回答在任何两个给定位置开始的$w$后缀之间的最长公共前缀的长度。在本文中,我们提出了一个数据结构的$O(z τ^2 + \frac{n}τ)$字的空间,回答LCE查询在$O(1)$时间,并可以建立在$O(n \log σ)$时间,其中$1 \leq τ\leq \sqrt{n}$是一个参数,$z$是的Lempel-Ziv 77分解的$w$和$σ$是字母表的大小。这是\emph{encoding}数据结构,即,它在回答查询时不访问输入字符串$w$,因此$w$可以在预处理之后被删除。在这个主要结果的顶部,我们得到进一步的结果使用(变种)我们的LCE数据结构,其中包括以下内容:-对于高度重复的字符串的$zτ^2$长期占主导地位的$\frac{n}τ$,我们得到一个\emph{constant-time and sub-linear space} LCE查询数据结构。- 即使当输入字符串通过Lempel-Ziv 77因子分解不能很好地压缩时,我们仍然可以获得用于合适的$τ$和用于$σ\leq 2^{o(\log n)}$的\emph{constant-time and sub-linear space} LCE数据结构。- Bille等人[J. Discrete Algorithms,25:42-50,2014]和Kosolobov [CoRR,abs/1611.02891,2016]提出的LCE问题的时空权衡下界在某些情况下可以用我们的LCE数据结构“超越”。

英文摘要:

The \emph{longest common extension} (\emph{LCE}) problem is to preprocess a given string $w$ of length $n$ so that the length of the longest common prefix between suffixes of $w$ that start at any two given positions is answered quickly. In this paper, we present a data structure of $O(z τ^2 + \frac{n}τ)$ words of space which answers LCE queries in $O(1)$ time and can be built in $O(n \log σ)$ time, where $1 \leq τ\leq \sqrt{n}$ is a parameter, $z$ is the size of the Lempel-Ziv 77 factorization of $w$ and $σ$ is the alphabet size. This is an \emph{encoding} data structure, i.e., it does not access the input string $w$ when answering queries and thus $w$ can be deleted after preprocessing. On top of this main result, we obtain further results using (variants of) our LCE data structure, which include the following: - For highly repetitive strings where the $zτ^2$ term is dominated by $\frac{n}τ$, we obtain a \emph{constant-time and sub-linear space} LCE query data structure. - Even when the input string is not well compressible via Lempel-Ziv 77 factorization, we still can obtain a \emph{constant-time and sub-linear space} LCE data structure for suitable $τ$ and for $σ\leq 2^{o(\log n)}$. - The time-space trade-off lower bounds for the LCE problem by Bille et al. [J. Discrete Algorithms, 25:42-50, 2014] and by Kosolobov [CoRR, abs/1611.02891, 2016] can be "surpassed" in some cases with our LCE data structure.

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

↑