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

基于行程长度编码的时空高效Lempel-Ziv分解

Time and Space Efficient Lempel-Ziv Factorization based on Run Length Encoding

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

摘要:

提出了一种基于行程长度编码(RLE)的计算字符串Lempel-Ziv分解的新方法。我们提出了一个概念上简单的基于后缀数组变体的离线算法,以及一个基于有向非循环词图(DAWG)变体的在线算法。这两个算法都是在$O(N+n\log n)$时间和O(n)额外空间中运行的,其中N是字符串的大小,$n\leq N$是RLE因子的数量。对N的时间依赖性仅在于字符串到RLE的转换,这可以在O(N)时间和O(1)额外空间(不包括输出)中非常有效地计算。当字符串可通过RLE压缩时,即,$n = o(N)$,我们的算法是,据我们所知,第一个算法,只需要O(N)额外的空间,而运行在$o(N\log N)$时间。

英文摘要:

We propose a new approach for calculating the Lempel-Ziv factorization of a string, based on run length encoding (RLE). We present a conceptually simple off-line algorithm based on a variant of suffix arrays, as well as an on-line algorithm based on a variant of directed acyclic word graphs (DAWGs). Both algorithms run in $O(N+n\log n)$ time and O(n) extra space, where N is the size of the string, $n\leq N$ is the number of RLE factors. The time dependency on N is only in the conversion of the string to RLE, which can be computed very efficiently in O(N) time and O(1) extra space (excluding the output). When the string is compressible via RLE, i.e., $n = o(N)$, our algorithms are, to the best of our knowledge, the first algorithms which require only o(N) extra space while running in $o(N\log N)$ time.

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

↑