Skip to main content
QUICK REVIEW

[Paper Review] Deciding Twin-Width at Most 4 Is NP-Complete

P. Bergé, Édouard Bonnet|arXiv (Cornell University)|Dec 16, 2021
Advanced Graph Theory ResearchComputer Science10 citations
TL;DR

This paper proves that deciding whether a graph has twin-width at most 4 is NP-complete, establishing the first exact algorithmic lower bound for computing twin-width. The authors reduce from 3-SAT using a direct construction of graph gadgets—variable, wire, and clause components—showing that a 4-sequence exists if and only if the 3-SAT instance is satisfiable. The result also implies that no algorithm can decide twin-width ≤4 in time 2^o(n/log n) unless the Exponential-Time Hypothesis fails.

ABSTRACT

We show that determining if an $n$-vertex graph has twin-width at most 4 is NP-complete, and requires time $2^{Ω(n/\log n)}$ unless the Exponential-Time Hypothesis fails. Along the way, we give an elementary proof that $n$-vertex graphs subdivided at least $2 \log n$ times have twin-width at most 4. We also show how to encode trigraphs $H$ (2-edge colored graphs involved in the definition of twin-width) into graphs $G$, in the sense that every $d$-sequence (sequence of vertex contractions witnessing that the twin-width is at most $d$) of $G$ inevitably creates $H$ as an induced subtrigraph, whereas there exists a partial $d$-sequence that actually goes from $G$ to $H$. We believe that these facts and their proofs can be of independent interest.

Motivation & Objective

  • To establish the computational complexity of deciding whether a graph has twin-width at most 4.
  • To close the gap in understanding the parameterized complexity of exact twin-width computation on general graphs.
  • To provide a direct reduction from 3-SAT to twin-width decision, avoiding structural intermediates like chordal completions.
  • To show that the problem remains NP-complete even for bounded-degree graphs, including planar graphs.
  • To rule out the existence of an XP algorithm (time n^{f(k)}) for deciding twin-width ≤k, by proving hardness for k=4.

Proposed method

  • Construct a graph G from a 3-SAT instance I with O(n log n) vertices, using variable gadgets, wire gadgets for literals, and clause gadgets.
  • Design a partial 4-sequence that contracts the graph to a trigraph H only if the 3-SAT instance is satisfiable.
  • Use fence gadgets and OR-gate structures to simulate logical dependencies across literals and clauses.
  • Prove that a 4-sequence exists only when a satisfying assignment exists, via invariants on red degrees and contraction sequences.
  • Show that the resulting trigraph H is an (≥L)-subdivision of a graph on O(n) vertices with L = 2⌈log(5n+3m)⌉, and apply a known result to conclude H has twin-width ≤4.
  • Use the Exponential-Time Hypothesis (ETH) to derive a lower bound of 2^Ω(n/log n) on the running time for deciding twin-width ≤4.

Experimental results

Research questions

  • RQ1Is deciding whether a graph has twin-width at most 4 NP-complete?
  • RQ2Can the problem be solved in time 2^o(n/log n) without violating the Exponential-Time Hypothesis?
  • RQ3Does the NP-completeness hold for bounded-degree or planar graphs?
  • RQ4Can graphs with twin-width at most 4 be recognized in polynomial time?
  • RQ5What is the best possible approximation ratio for twin-width computation, given the NP-hardness of exact computation?

Key findings

  • Deciding whether a graph has twin-width at most 4 is NP-complete, resolving a key open question in parameterized complexity.
  • The problem requires time 2^Ω(n/log n) unless the Exponential-Time Hypothesis fails, establishing a strong conditional lower bound.
  • Any (≥2 log n)-subdivision of an n-vertex graph has twin-width at most 4, providing a new family of graphs with bounded twin-width.
  • The reduction from 3-SAT is direct and does not rely on intermediate problems like minimum cut linear arrangement, making it robust and extendable to sparse graph classes.
  • The construction yields a graph G with O(n log n) vertices such that G has twin-width ≤4 if and only if the input 3-SAT instance is satisfiable.
  • The red graph of the constructed graph is a disjoint union of paths and isolated vertices, and a polynomial-time reduction to a graph G' with O(n log n) vertices preserves the twin-width decision.

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.