arXiv · 2502.12000
The Complexity of Dynamic LZ77 is $\tilde{\Theta}(n^{2/3})$
Abstract
The Lempel-Ziv 77 (LZ77) factorization is a fundamental compression scheme widely used in text processing and data compression. In this work, we investigate the time complexity of maintaining the LZ77 factorization of a dynamic string. By establishing matching upper and lower bounds, we fully characterize the complexity of this problem. We present an algorithm that efficiently maintains the LZ77 factorization of a string $S$ undergoing edit operations, including character substitutions, insertions, and deletions. Our data structure can be constructed in $\tilde{O}(n)$ time for an initial string of length $n$ and supports updates in $\tilde{O}(n^{2/3})$ time, where $n$ is the current length of $S$. Additionally, we prove that no algorithm can achieve an update time of $O(n^{2/3-\varepsilon})$ unless the Strong Exponential Time Hypothesis fails. This lower bound holds even in the restricted setting where only substitutions are allowed and only the length of the LZ77 factorization is maintained.
Explore related subjects
Keep this discovery
Itai Boneh, Shay Golan, Matan Kraus. 2025-02-17. The Complexity of Dynamic LZ77 is $\tilde{\Theta}(n^{2/3})$. https://arxiv.org/abs/2502.12000
Cite the original work for its findings. Save a collection to share your selection of sources.