We study the sensitivity of the Lempel-Ziv 77 compression algorithm to edits, showing how modifying a string can deteriorate or improve its compression. Our first result is a tight upper bound for edits: , we have . 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 in front of , and establish a surprising trichotomy based on the compressibility of . More precisely we prove the following bounds: - if , the compression may increase by up to a factor of , - if , this factor is at most , - if , the factor is at most . Finally, we present an -approximation algorithm to pre-edit a word with a budget of modifications to improve its compression. In favorable scenarios, this approach yields a total compressed size reduction by up to a factor of~, accounting for both the LZ77 compression of the modified word and the cost of storing the edits, .

生成讲解博客的中文版本

生成AI智能校验的中文版本