Skip to main content
QUICK REVIEW

[Paper Review] On the Hardness and Inapproximability of Recognizing Wheeler Graphs

Daniel Gibney, Sharma V. Thankachan|arXiv (Cornell University)|Jan 1, 2019
Algorithms and Data CompressionComputer Science19 references10 citations
TL;DR

This paper establishes the computational intractability of recognizing Wheeler graphs, proving that the recognition problem is NP-complete for edge label alphabets of size σ ≥ 2, even on DAGs. It further shows that the optimization variants—Wheeler Graph Violation (WGV) and Wheeler Subgraph (WS)—are APX-hard and in APX respectively, indicating fundamental limits on efficient approximation. The work provides exponential-time exact algorithms relying on graph isomorphism and identifies a polynomial-time solvable subclass, highlighting the role of structural parameters in tractability.

ABSTRACT

In recent years several compressed indexes based on variants of the Burrows-Wheeler transformation have been introduced. Some of these are used to index structures far more complex than a single string, as was originally done with the FM-index [Ferragina and Manzini, J. ACM 2005]. As such, there has been an increasing effort to better understand under which conditions such an indexing scheme is possible. This has led to the introduction of Wheeler graphs [Gagie et al., Theor. Comput. Sci., 2017]. Gagie et al. showed that de Bruijn graphs, generalized compressed suffix arrays, and several other BWT related structures can be represented as Wheeler graphs, and that Wheeler graphs can be indexed in a way which is space efficient. Hence, being able to recognize whether a given graph is a Wheeler graph, or being able to approximate a given graph by a Wheeler graph, could have numerous applications in indexing. Here we resolve the open question of whether there exists an efficient algorithm for recognizing if a given graph is a Wheeler graph. We present: - The problem of recognizing whether a given graph G=(V,E) is a Wheeler graph is NP-complete for any edge label alphabet of size sigma >= 2, even when G is a DAG. This holds even on a restricted, subset of graphs called d-NFA’s for d >= 5. This is in contrast to recent results demonstrating the problem can be solved in polynomial time for d-NFA’s where d <= 2. We also show the recognition problem can be solved in linear time for sigma =1; - There exists an 2^{e log sigma + O(n + e)} time exact algorithm where n = |V| and e = |E|. This algorithm relies on graph isomorphism being computable in strictly sub-exponential time; - We define an optimization variant of the problem called Wheeler Graph Violation, abbreviated WGV, where the aim is to remove the minimum number of edges in order to obtain a Wheeler graph. We show WGV is APX-hard, even when G is a DAG, implying there exists a constant C >= 1 for which there is no C-approximation algorithm (unless P = NP). Also, conditioned on the Unique Games Conjecture, for all C >= 1, it is NP-hard to find a C-approximation; - We define the Wheeler Subgraph problem, abbreviated WS, where the aim is to find the largest subgraph which is a Wheeler Graph (the dual of the WGV). In contrast to WGV, we prove that the WS problem is in APX for sigma=O(1); The above findings suggest that most problems under this theme are computationally difficult. However, we identify a class of graphs for which the recognition problem is polynomial time solvable, raising the open question of which parameters determine this problem’s difficulty.

Motivation & Objective

  • To determine the computational complexity of recognizing whether a given directed, edge-labeled graph is a Wheeler graph.
  • To analyze the approximability of optimization variants: minimizing edge removals to obtain a Wheeler graph (WGV) and maximizing a Wheeler subgraph (WS).
  • To identify structural parameters that enable polynomial-time recognition of Wheeler graphs.
  • To develop exact exponential-time algorithms for recognition and optimization problems using graph isomorphism.

Proposed method

  • Prove NP-completeness of Wheeler graph recognition via reduction from the Feedback Arc Set (FAS) problem, constructing a graph from FAS instances with edge labels and vertex orderings that satisfy Wheeler axioms iff the FAS instance is satisfiable.
  • Demonstrate that WGV is APX-hard by reduction from FAS, showing no constant-factor approximation exists unless P = NP, and under the Unique Games Conjecture, even constant approximation is hard.
  • Prove WS is in APX for constant σ by constructing a linear-time Ω(1/σ)-approximation algorithm based on branching and planar leveling of sources and arborescences.
  • Develop exponential-time exact algorithms for recognition, WGV, and WS by enumerating all possible Wheeler graph encodings with the same n, e, and σ, and checking isomorphism with the input graph.
  • Use the fact that the space-efficient encoding of Wheeler graphs implies a limited search space, enabling isomorphism checks to maintain sub-exponential time complexity when graph isomorphism is solvable in sub-exponential time.
  • Leverage the relationship between queue number and Wheeler graphs to show recognition is solvable in linear time for σ = 1.

Experimental results

Research questions

  • RQ1Is the problem of recognizing whether a given graph is a Wheeler graph NP-complete for σ ≥ 2?
  • RQ2Can the Wheeler graph recognition problem be solved in polynomial time for restricted graph classes such as d-NFA with d ≥ 5?
  • RQ3Is there a constant-factor approximation algorithm for the Wheeler Graph Violation (WGV) problem?
  • RQ4Is the Wheeler Subgraph (WS) problem in APX for constant σ?
  • RQ5Are there fixed-parameter tractable algorithms for Wheeler graph recognition or its optimization variants?

Key findings

  • The recognition problem for Wheeler graphs is NP-complete for any edge label alphabet size σ ≥ 2, even when the input graph is a DAG.
  • The optimization problem WGV—minimizing edge removals to obtain a Wheeler graph—is APX-hard, implying no constant-factor approximation exists unless P = NP.
  • Under the Unique Games Conjecture, it is NP-hard to find a C-approximation for WGV for any C ≥ 1.
  • The dual problem WS—finding the largest Wheeler subgraph—is in APX for constant σ, with a linear-time Ω(1/σ)-approximation algorithm provided.
  • For σ = 1, Wheeler graph recognition is solvable in linear time, as it reduces to topological ordering due to the absence of edge label conflicts.
  • Exponential-time exact algorithms for recognition, WGV, and WS run in time 2^{e log σ + O(n+e)}, relying on graph isomorphism checks to validate candidate encodings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.