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

快速紧凑的在线Lempel-Ziv分解

Faster Compact On-Line Lempel-Ziv Factorization

Jun'ichi Yamamoto, Tomohiro I, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda

摘要:

我们提出了一个新的在线算法计算Lempel-Ziv分解的字符串,运行在$O(N\log N)$时间,只使用$O(N\logσ)$位的工作空间,其中$N$是字符串的长度和$σ$是字母表的大小。这是一个显着的改进相比,以前的在线算法使用相同的工作空间顺序,但运行在$O(N\log^3N)$时间(Okanohara & Sadakane 2009)或$O(N\log^2N)$时间(Starikovskaya 2012)。我们的新算法的关键是利用一个优雅的,但不太流行的索引结构称为有向非循环字图,或DAWG(Blumer等1985)。我们还提出了一个机会的变体,我们的算法,给定的行程长度编码的长度$N$的字符串的大小$m$,计算Lempel-Ziv因式分解在线,在$O\left(m \cdot \min \left\{\frac{(\log\log m)(\log \log N)}{\log\log\log N}, \sqrt{\frac{\log m}{\log \log m}} \right\}\right)$时间和$O(m\log N)$位的空间,这是更快,更节省空间的字符串时,运行长度可压缩。

英文摘要:

We present a new on-line algorithm for computing the Lempel-Ziv factorization of a string that runs in $O(N\log N)$ time and uses only $O(N\logσ)$ bits of working space, where $N$ is the length of the string and $σ$ is the size of the alphabet. This is a notable improvement compared to the performance of previous on-line algorithms using the same order of working space but running in either $O(N\log^3N)$ time (Okanohara & Sadakane 2009) or $O(N\log^2N)$ time (Starikovskaya 2012). The key to our new algorithm is in the utilization of an elegant but less popular index structure called Directed Acyclic Word Graphs, or DAWGs (Blumer et al. 1985). We also present an opportunistic variant of our algorithm, which, given the run length encoding of size $m$ of a string of length $N$, computes the Lempel-Ziv factorization on-line, in $O\left(m \cdot \min \left\{\frac{(\log\log m)(\log \log N)}{\log\log\log N}, \sqrt{\frac{\log m}{\log \log m}} \right\}\right)$ time and $O(m\log N)$ bits of space, which is faster and more space efficient when the string is run-length compressible.

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

↑