[Paper Review] Lempel-Ziv Factorization May Be Harder Than Computing All Runs
This paper proves that computing the Lempel-Ziv factorization requires Ω(n log σ) comparisons in the decision tree model, establishing it as fundamentally harder than computing all runs. In contrast, the authors present an O(n) decision tree algorithm for finding all runs, demonstrating that the runs problem is strictly easier than Lempel-Ziv factorization in this model, supporting the conjecture of a linear-time RAM algorithm for runs.
The complexity of computing the Lempel-Ziv factorization and the set of all runs (= maximal repetitions) is studied in the decision tree model of computation over ordered alphabet. It is known that both these problems can be solved by RAM algorithms in $O(n\logσ)$ time, where $n$ is the length of the input string and $σ$ is the number of distinct letters in it. We prove an $Ω(n\logσ)$ lower bound on the number of comparisons required to construct the Lempel-Ziv factorization and thereby conclude that a popular technique of computation of runs using the Lempel-Ziv factorization cannot achieve an $o(n\logσ)$ time bound. In contrast with this, we exhibit an $O(n)$ decision tree algorithm finding all runs in a string. Therefore, in the decision tree model the runs problem is easier than the Lempel-Ziv factorization. Thus we support the conjecture that there is a linear RAM algorithm finding all runs.
Motivation & Objective
- To establish lower bounds on the complexity of computing the Lempel-Ziv factorization in the decision tree model.
- To investigate whether computing all runs in a string is as hard as computing the Lempel-Ziv factorization.
- To present a linear-time decision tree algorithm for finding all runs, demonstrating that runs can be computed more efficiently than Lempel-Ziv factorization.
- To support the conjecture that a linear-time RAM algorithm exists for computing all runs on a general ordered alphabet.
Proposed method
- Proves an Ω(n log σ) lower bound on the number of comparisons required to compute the Lempel-Ziv factorization in the decision tree model.
- Designs a decision tree algorithm that finds all runs in O(n) comparisons by recursively processing cubic runs and periodic substrings.
- Uses a recursive decomposition based on minimal periods and periodicity to avoid redundant comparisons.
- Applies combinatorial lemmas to bound the total number of recursive calls and ensure linear comparison count.
- Analyzes the sum of exponents of cubic runs to show that recursive subproblems shrink sufficiently fast.
- Employs a divide-and-conquer strategy that leverages periodic structure and inequality comparisons to identify maximal repetitions.
Experimental results
Research questions
- RQ1Is the Lempel-Ziv factorization computationally harder than computing all runs in the decision tree model?
- RQ2Can an O(n) decision tree algorithm be constructed to find all runs in a string?
- RQ3Does the existence of a linear decision tree algorithm for runs imply that the Lempel-Ziv factorization cannot be used as a basis for linear-time runs computation?
- RQ4What is the minimal number of comparisons required to compute the Lempel-Ziv factorization over an ordered alphabet?
- RQ5Can the decision tree model reveal a separation in complexity between runs and Lempel-Ziv factorization?
Key findings
- The Lempel-Ziv factorization requires Ω(n log σ) comparisons in the decision tree model, proving a nontrivial lower bound.
- An O(n) decision tree algorithm exists for computing all runs, showing that runs can be found more efficiently than the Lempel-Ziv factorization.
- The algorithm avoids reliance on Lempel-Ziv factorization by recursively processing cubic runs and periodic substrings using inequality comparisons.
- The total number of comparisons across recursive calls is bounded by O(n/p), ensuring linear overall complexity.
- The sum of exponents of all cubic runs with minimal period ≥ d is less than 12n/d, enabling efficient recursion.
- The result supports the conjecture that a linear-time RAM algorithm for computing all runs exists over a general ordered alphabet.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.