arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.19649cs.DScs.CC
收藏

分析和利用LZ77算法的k敏感性

The k-bit Sensitivity of LZ77

LaBRI, University of Bordeaux(波尔多大学 LaBRI);ENS Paris-Saclay(巴黎萨克雷高等师范学院)

Gabriel Bathie, Paul Huber, Guillaume Lagarde, Akka Zemmari

AI总结:

本文研究了LZ77算法的k敏感性,提出了一种改进压缩效果的近似算法,并基于压缩性建立了三类不同的界限。

摘要:

我们研究了Lempel-Ziv 77压缩算法对编辑的敏感性,展示了修改字符串w如何影响其压缩效果。我们的第一个结果是k次编辑的紧上界:对于所有w'∈B(w,k),我们有C_LZ77(w')≤3·C_LZ77(w)+4k。这一结果与Lempel-Ziv 78不同,后者单次编辑可能显著降低可压缩性,这种现象称为“一位灾难”。我们进一步细化这个界限,专注于前面的系数3,并基于w的可压缩性建立了令人惊讶的三元分割。更具体地说,我们证明了以下界限:- 如果C_LZ77(w)≈k^{3/2}√n,压缩可能增加高达约3倍,- 如果k^{3/2}√n≈C_LZ77(w)≈k^{1/3}n^{2/3},这个因子最多为约2,- 如果C_LZ77(w)≈k^{1/3}n^{2/3},这个因子最多为约1。最后,我们提出了一种ε近似算法,用于预编辑单词w,以预算k次修改来提高其压缩性。在有利情况下,这种方法可以减少压缩后的总大小,最多减少到约3倍,包括修改后的LZ77压缩和存储编辑的成本,C_LZ77(w')+k log |w|。

英文摘要:

In this paper, we study the sensitivity of the Lempel--Ziv 77 (LZ77) algorithm under multiple substitutions. Akagi, Funakoshi and Inenaga [JIC, 2023] showed that when applying a single edit the size $z$ of the LZ77 compression of any string increases by a factor of at most 2. This raises the question of what happens under multiple edits. The result of Akagi et al. implies that the compression increases by a factor of at most $2^k$. We conjectured that the optimal multiplicative factor for the sensitivity of LZ77 under $k$ edits was $Θ(k)$. Rather surprisingly, we show that this sensitivity is constant, with $k$ appearing in a linear additive term. Namely, we show that if $w'$ is at Hamming distance at most $k$ from $w$, we have $C_{LZ77}(w') \leq 3 \cdot C_{LZ77}(w) + 4k$. This bound is almost tight: we exhibit words for which $C_{LZ77}(w') \ge \left(3\cdot C_{LZ77}(w)+k\right)(1-ε)$. This result contrasts with Lempel--Ziv 78, where a single edit can significantly deteriorate compressibility, a phenomenon known as a one-bit catastrophe. We further refine this bound, focusing on the coefficient $3$ in front of $C_{LZ77}(w)$, and establish a trichotomy based on the compressibility of $w$. More precisely, for $n \gg k^{7}$, we prove the following bounds: - if $C_{LZ77}(w) \lesssim k^{3/2}\sqrt{n}$, the compression may increase by up to a factor of $\approx 3$, - if $k^{3/2}\sqrt{n} \lesssim C_{LZ77}(w) \lesssim k^{1/3}n^{2/3}$, this factor is at most $\approx 2$, - if $C_{LZ77}(w) \gtrsim k^{1/3}n^{2/3}$, the factor is at most $\approx 1$.

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

↑