Lempel-Ziv (LZ77) Factorization in Sublinear Time
摘要
Lempel-Ziv (LZ77) factorization is a fundamental problem in string processing: Greedily partition a given stringfrom left to right into blocks (called phrases) so that each phrase is either the leftmost occurrence of a single letter or the longest prefix of the unprocessed suffix that has another occurrence earlier in the text. This simple routine has numerous applications. Most importantly, the LZ77 factorization is the central component and the computational bottleneck of most existing compression algorithms (utilized in formats like zip, pdf, and png). LZ77 is also a widely used algorithmic tool for the detection of repetitions and periodicities in strings, and the centerpiece of many powerful compressed indexes that enable computation directly over compressed data. LZ77 factorization is one of the most studied problems in string processing. In the 47 years since its inception, numerous efficient algorithms were developed for different models of computation, including parallel, GPU, external-memory, and quantum. Remarkably, however, the complexity of the most basic problem is still not settled: All existing algorithms in the RAM model run intime, which is afactor away from the lower bound of(following simply from the necessity to read the entire input, which takesspace for any. Sublinear-time algorithms are known for nearly all other fundamental problems on strings, but LZ77 seems resistant to all currently known techniques. We present the first-time algorithm for constructing the LZ77 factorization, breaking the linear-time barrier present for nearly 50 years. More precisely, we show that, in the standard RAM model, it is possible to compute the LZ77 factorization of a given length-stringintime and using the optimalworking space. Our algorithm generalizes to larger alphabets. The runtime and working space then becomeand, respectively. To achieve this sublinear-time LZ77 algorithm, we prove a more general result: We show that, for any constantand string, intime and usingworking space, we can construct an index of optimal sizethat, given any substringspecified with a pair, computes the leftmost occurrence ofinintime. In other words, we solve the indexing/online variant of the LZ77 problem, where we can efficiently query the phrase length starting at any position. Our solution is based on a new type of queries that we call prefix range minimum queries or prefix RMQ. After developing an efficient solution for these queries, we provide a general reduction showing that any new tradeoff for the prefix RMQ implies a new tradeoff for an index finding leftmost occurrences (and hence a new LZ77 factorization algorithm).
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space 引用了 Improving Matrix-vector Multiplication via Lossless Grammar-Compressed Matrices
- Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space 引用了 An Upper Bound and Linear-Space Queries on the LZ-End Parsing
- Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space 引用了 Resolution of the Burrows-Wheeler Transform Conjecture
- Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space 引用了 Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
- Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range Queries 引用了 Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space
- Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range Queries 引用了 On the Hardness Hierarchy for the O(n√log n) Complexity in the Word RAM
- Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range Queries 引用了 Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
- Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range Queries 引用了 Tight Lower Bounds for Central String Queries in Compressed Space
- Tight Lower Bounds for Central String Queries in Compressed Space 引用了 Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range Queries
- On the Hardness Hierarchy for the O(n√log n) Complexity in the Word RAM 引用了 Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space
- On the Hardness Hierarchy for the O(n√log n) Complexity in the Word RAM 引用了 Resolution of the Burrows-Wheeler Transform Conjecture
- On the Hardness Hierarchy for the O(n√log n) Complexity in the Word RAM 引用了 Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
- Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees 引用了 Resolution of the Burrows-Wheeler Transform Conjecture
- Tight Lower Bounds for Central String Queries in Compressed Space 引用了 Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space
- Tight Lower Bounds for Central String Queries in Compressed Space 引用了 On the Hardness Hierarchy for the O(n√log n) Complexity in the Word RAM
- Tight Lower Bounds for Central String Queries in Compressed Space 引用了 An Upper Bound and Linear-Space Queries on the LZ-End Parsing
- Tight Lower Bounds for Central String Queries in Compressed Space 引用了 Resolution of the Burrows-Wheeler Transform Conjecture
- Tight Lower Bounds for Central String Queries in Compressed Space 引用了 Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
- Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings 引用了 Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space
- Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings 引用了 Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range Queries
- Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings 引用了 On the Hardness Hierarchy for the O(n√log n) Complexity in the Word RAM
- Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings 引用了 An Upper Bound and Linear-Space Queries on the LZ-End Parsing
- Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings 引用了 Resolution of the Burrows-Wheeler Transform Conjecture
- Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings 引用了 Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
- Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings 引用了 Tight Lower Bounds for Central String Queries in Compressed Space
引用它的顶会 Paper4
- Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range QueriesDominik Kempa, Tomasz KociumakaSODA 2026
- On the Hardness Hierarchy for the O(n√log n) Complexity in the Word RAMDominik Kempa, Tomasz KociumakaSTOC 2025
- Tight Lower Bounds for Central String Queries in Compressed SpaceDominik Kempa, Tomasz KociumakaSODA 2026
- Optimal Random Access and Conditional Lower Bounds for 2D Compressed StringsRajat De, Dominik KempaSODA 2026
它引用的 Paper12
- Resolution of the Burrows-Wheeler Transform ConjectureDominik Kempa, Tomasz KociumakaFOCS 2020 · 32 次引用
- Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed SpaceDominik Kempa, Tomasz KociumakaFOCS 2023 · 20 次引用
- Improving Matrix-vector Multiplication via Lossless Grammar-Compressed MatricesPaolo Ferragina, Giovanni Manzini, Travis Gagie, Dominik Köppl 等VLDB 2022 · 17 次引用
- An Upper Bound and Linear-Space Queries on the LZ-End ParsingDominik Kempa, Barna SahaSODA 2022 · 12 次引用
- Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix TreesDominik Kempa, Tomasz KociumakaSODA 2023 · 10 次引用
相关 Paper
- The Complexity of Dynamic LZ77 is ?Θ(n2/3)Itai Boneh, Shay Golan, Matan KrausSODA 2026
- Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv FactorizationDaniel Gibney, Ce Jin, Tomasz Kociumaka, Sharma V. ThankachanSODA 2024 · 7 次引用
- Contextual Pattern Mining and CountingLing Li, Daniel Gibney, Sharma V. Thankachan, Solon P. Pissis 等ICDE 2026
- Locally Consistent Parsing for Text Indexing in Small SpaceOr Birenzwige, Shay Golan, Ely PoratSODA 2020 · 16 次引用
- Near-Optimal Quantum Algorithms for String ProblemsShyan Akmal, Ce JinSODA 2022 · 15 次引用
