[Paper Review] On the Complexity of BWT-Runs Minimization via Alphabet Reordering
This paper establishes the computational complexity of minimizing runs in the Burrows-Wheeler Transform (BWT) via alphabet reordering, proving the decision problem is NP-complete and cannot be solved in sub-exponential time under the Exponential Time Hypothesis. It further shows the optimization problem is APX-hard, revealing a surprising connection between BWT runs and the traveling salesperson path in graphs, while providing a linear-time algorithm for a constrained variant with single-occurrence symbols.
The Burrows-Wheeler Transform (BWT) has been an essential tool in text compression and indexing. First introduced in 1994, it went on to provide the backbone for the first encoding of the classic suffix tree data structure in space close to the entropy-based lower bound. Recently, there has been the development of compact suffix trees in space proportional to "$r$", the number of runs in the BWT, as well as the appearance of $r$ in the time complexity of new algorithms. Unlike other popular measures of compression, the parameter $r$ is sensitive to the lexicographic ordering given to the text's alphabet. Despite several past attempts to exploit this, a provably efficient algorithm for finding, or approximating, an alphabet ordering which minimizes $r$ has been open for years. We present the first set of results on the computational complexity of minimizing BWT-runs via alphabet reordering. We prove that the decision version of this problem is NP-complete and cannot be solved in time $2^{o(σ+ \sqrt{n})}$ unless the Exponential Time Hypothesis fails, where $σ$ is the size of the alphabet and $n$ is the length of the text. We also show that the optimization problem is APX-hard. In doing so, we relate two previously disparate topics: the optimal traveling salesperson path and the number of runs in the BWT of a text, providing a surprising connection between problems on graphs and text compression. Also, by relating recent results in the field of dictionary compression, we illustrate that an arbitrary alphabet ordering provides a $O(\log^2 n)$-approximation. We provide an optimal linear-time algorithm for the problem of finding a run minimizing ordering on a subset of symbols (occurring only once) under ordering constraints, and prove a generalization of this problem to a class of graphs with BWT like properties called Wheeler graphs is NP-complete.
Motivation & Objective
- To determine the computational complexity of minimizing the number of runs in the BWT through alphabet reordering.
- To understand why efficient algorithms for this problem have remained elusive despite long-standing interest.
- To establish hardness results (NP-completeness and APX-hardness) for the run minimization problem.
- To explore connections between BWT runs and graph problems, particularly the traveling salesperson path.
- To provide a polynomial-time algorithm for a restricted version of the problem involving symbols that occur only once.
Proposed method
- Prove NP-completeness of the decision version of BWT-runs minimization via a reduction from a variant of the traveling salesperson path problem.
- Establish inapproximability by showing the optimization problem is APX-hard, using a gap-introducing reduction.
- Reveal a surprising connection between the number of BWT runs and the length of the optimal TSP path in a constructed graph.
- Develop a linear-time greedy algorithm for the Constrained Alphabet Ordering (CAO) problem, where symbols occurring only once are reordered under fixed block constraints.
- Use the concept of blocks and tuples in the BWT structure to model the problem as a sequence of symbol sets to be ordered to maximize adjacent matches.
- Leverage the longest common extension (LCE) data structure to identify block boundaries in linear time, enabling efficient tuple construction.
Experimental results
Research questions
- RQ1Is the problem of minimizing BWT runs via alphabet reordering NP-complete?
- RQ2Can the BWT run minimization problem be approximated within a constant factor, or is it APX-hard?
- RQ3Is there a structural connection between the number of BWT runs and the length of the optimal TSP path in an associated graph?
- RQ4Can a polynomial-time algorithm be designed for a restricted version of the problem where only symbols occurring once are reordered?
- RQ5What is the computational complexity of the general constrained alphabet ordering problem with arbitrary symbol placement constraints?
Key findings
- The decision problem of minimizing BWT runs via alphabet reordering is NP-complete.
- The optimization problem is APX-hard, implying no polynomial-time approximation scheme exists unless P = NP.
- The problem cannot be solved in time 2^o(σ + √n) unless the Exponential Time Hypothesis fails.
- A surprising connection is established between the number of BWT runs and the optimal TSP path length in a derived graph.
- An optimal linear-time algorithm is presented for the Constrained Alphabet Ordering (CAO) problem, where symbols occurring only once are reordered under fixed block constraints.
- An arbitrary alphabet ordering provides an O(log²n)-approximation for the general run minimization problem.
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.