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

小空间中的Lempel-Ziv类解析

Lempel-Ziv-like Parsing in Small Space

Dmitry Kosolobov, Daniel Valenzuela, Gonzalo Navarro, Simon J. Puglisi

摘要:

Lempel-Ziv(LZ 77或简称LZ)是最有效和广泛使用的重复文本压缩器之一。然而,现有的高效的方法计算精确的LZ分析必须使用线性或接近线性的空间来索引的输入文本在构造的分析,这是禁止长的输入。另一种方法是相对Lempel-Ziv(RLZ),它只索引一个固定的参考序列,其大小可以控制。通过对文本进行采样来导出参考序列,为RLZ产生了合理的压缩比,但性能并不总是与LZ竞争,并且在很大程度上取决于参考与文本的相似性。在本文中,我们介绍了ReLZ,一种技术,使用RLZ作为预处理器近似LZ解析使用很少的内存。RLZ首先用于产生一系列短语,这些短语被认为是输入到LZ的元对称,用于对(最常见的)短得多的序列进行二级解析。这种解析最终被转换成原始序列上的解析。我们分析了新方案,并证明它与LZ一样,利用$k = o(\log_σn)$实现了$k$阶经验熵压缩$n H_k + o(n\logσ)$,其中$n$是输入长度,$σ$是字母表大小。事实上,我们证明这个熵界不仅为ReLZ,但广泛的LZ类编码。然后,我们建立了一个下界的ReLZ近似比表明,在它的短语的数量可以是$Ω(\log n)$倍以上的短语在LZ。我们的实验表明,ReLZ比现有的替代品更快地计算(精确或近似)LZ解析,在所有测试场景中,近似因子低于$2.0$,有时低于$1.05$,LZ的大小。

英文摘要:

Lempel-Ziv (LZ77 or, briefly, LZ) is one of the most effective and widely-used compressors for repetitive texts. However, the existing efficient methods computing the exact LZ parsing have to use linear or close to linear space to index the input text during the construction of the parsing, which is prohibitive for long inputs. An alternative is Relative Lempel-Ziv (RLZ), which indexes only a fixed reference sequence, whose size can be controlled. Deriving the reference sequence by sampling the text yields reasonable compression ratios for RLZ, but performance is not always competitive with that of LZ and depends heavily on the similarity of the reference to the text. In this paper we introduce ReLZ, a technique that uses RLZ as a preprocessor to approximate the LZ parsing using little memory. RLZ is first used to produce a sequence of phrases, and these are regarded as metasymbols that are input to LZ for a second-level parsing on a (most often) drastically shorter sequence. This parsing is finally translated into one on the original sequence. We analyze the new scheme and prove that, like LZ, it achieves the $k$th order empirical entropy compression $n H_k + o(n\logσ)$ with $k = o(\log_σn)$, where $n$ is the input length and $σ$ is the alphabet size. In fact, we prove this entropy bound not only for ReLZ but for a wide class of LZ-like encodings. Then, we establish a lower bound on ReLZ approximation ratio showing that the number of phrases in it can be $Ω(\log n)$ times larger than the number of phrases in LZ. Our experiments show that ReLZ is faster than existing alternatives to compute the (exact or approximate) LZ parsing, at the reasonable price of an approximation factor below $2.0$ in all tested scenarios, and sometimes below $1.05$, to the size of LZ.

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

↑