Twin-width III: Max Independent Set and Coloring

We recently introduced the graph invariant twin-width, and showed that first-order model checking can be solved in time $f(d,k)n$ for $n$-vertex graphs given with a witness that the twin-width is at most $d$, called $d$-contraction sequence or $d$-sequence, and formulas of size $k$ [Bonnet et al., FOCS '20]. The inevitable price to pay for such a general result is that $f$ is a tower of exponentials of height roughly $k$. In this paper, we show that algorithms based on twin-width need not be impractical. We present $2^{O(k)}n$-time algorithms for $k$-Independent Set, $r$-Scattered Set, $k$-Clique, and $k$-Dominating Set when an $O(1)$-sequence is provided. We further show how to solve weighted $k$-Independent Set, Subgraph Isomorphism, and Induced Subgraph Isomorphism, in time $2^{O(k \log k)}n$. These algorithms are based on a dynamic programming scheme following the sequence of contractions forward. We then show a second algorithmic use of the contraction sequence, by starting at its end and rewinding it. As an example of this reverse scheme, we present a polynomial-time algorithm that properly colors the vertices of a graph with relatively few colors, establishing that bounded twin-width classes are $\chi$-bounded. This significantly extends the $\chi$-boundedness of bounded rank-width classes, and does so with a very concise proof. The third algorithmic use of twin-width builds on the second one. Playing the contraction sequence backward, we show that bounded twin-width graphs can be edge-partitioned into a linear number of bicliques, such that both sides of the bicliques are on consecutive vertices, in a fixed vertex ordering. Given that biclique edge-partition, we show how to solve the unweighted Single-Source Shortest Paths and hence All-Pairs Shortest Paths in sublinear time $O(n \log n)$ and time $O(n^2 \log n)$, respectively.

[1]  David Coudert,et al.  Fully Polynomial FPT Algorithms for Some Classes of Bounded Clique-width Graphs , 2017, SODA.

[2]  Russell Impagliazzo,et al.  Which problems have strongly exponential complexity? , 1998, Proceedings 39th Annual Symposium on Foundations of Computer Science (Cat. No.98CB36280).

[3]  David Eppstein,et al.  The Polyhedral Approach to the Maximum Planar Subgraph Problem: New Chances for Related Problems , 1994, GD.

[4]  Michal Pilipczuk,et al.  Polynomial-time Algorithm for Maximum Weight Independent Set on P6-free Graphs , 2017, SODA.

[5]  Jörg Flum,et al.  Fixed-Parameter Tractability, Definability, and Model-Checking , 1999, SIAM J. Comput..

[6]  Michal Pilipczuk,et al.  Polynomial-time algorithm for Maximum Weight Independent Set on P6-free graphs , 2019, SODA.

[7]  Erik D. Demaine,et al.  Subexponential parameterized algorithms on bounded-genus graphs and H-minor-free graphs , 2005, JACM.

[8]  Dániel Marx,et al.  Finding small patterns in permutations in linear time , 2013, SODA.

[9]  Rémi Watrigant,et al.  Twin-width II: small classes , 2020, SODA.

[10]  David Eppstein Diameter and Treewidth in Minor-Closed Graph Families , 2000, Algorithmica.

[11]  Ronald L. Rivest,et al.  Introduction to Algorithms, 3rd Edition , 2009 .

[12]  Hisao Tamaki,et al.  Positive-instance driven dynamic programming for treewidth , 2017, Journal of Combinatorial Optimization.

[13]  Michal Pilipczuk,et al.  Polynomial bounds for centered colorings on proper minor-closed graph classes , 2018, SODA.

[14]  Rémi Watrigant,et al.  Twin-width I: tractable FO model checking , 2020, 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS).

[15]  Martin Grohe,et al.  The complexity of first-order and monadic second-order logic revisited , 2002, Proceedings 17th Annual IEEE Symposium on Logic in Computer Science.

[16]  S. Poljak A note on stable sets and colorings of graphs , 1974 .

[17]  Robert E. Tarjan,et al.  A linear-time algorithm for a special case of disjoint set union , 1983, J. Comput. Syst. Sci..

[18]  Jens M. Schmidt Interval Stabbing Problems in Small Integer Ranges , 2009, ISAAC.

[19]  László Lovász,et al.  Approximating clique is almost NP-complete , 1991, [1991] Proceedings 32nd Annual Symposium of Foundations of Computer Science.

[20]  Raphael Yuster,et al.  Efficient algorithms on sets of permutations, dominance, and real-weighted APSP , 2009, SODA.

[21]  Marthe Bonamy,et al.  Graphs of bounded cliquewidth are polynomially χ-bounded , 2020, ArXiv.

[22]  Jacob Evald,et al.  Tight Hardness Results for Distance and Centrality Problems in Constant Degree Graphs , 2016, ArXiv.

[23]  Bernard Chazelle,et al.  Filtering search: A new approach to query-answering , 1983, 24th Annual Symposium on Foundations of Computer Science (sfcs 1983).

[24]  Xin-She Yang,et al.  Introduction to Algorithms , 2021, Nature-Inspired Optimization Algorithms.

[25]  Martin Grötschel,et al.  The ellipsoid method and its consequences in combinatorial optimization , 1981, Comb..

[26]  Daniel Král,et al.  Classes of graphs with small rank decompositions are X-bounded , 2011, Eur. J. Comb..

[27]  Bruno Courcelle,et al.  Linear Time Solvable Optimization Problems on Graphs of Bounded Clique-Width , 2000, Theory of Computing Systems.

[28]  Jan Arne Telle,et al.  An Overview of Techniques for Designing Parameterized Algorithms , 2008, Comput. J..

[29]  Bruno Courcelle,et al.  The Monadic Second-Order Logic of Graphs. I. Recognizable Sets of Finite Graphs , 1990, Inf. Comput..

[30]  Frederic Dorn,et al.  Planar Subgraph Isomorphism Revisited , 2009, STACS.

[31]  Noga Alon,et al.  Crossing patterns of semi-algebraic sets , 2005, J. Comb. Theory, Ser. A.

[32]  Russell Impagliazzo,et al.  Complexity of k-SAT , 1999, Proceedings. Fourteenth Annual IEEE Conference on Computational Complexity (Formerly: Structure in Complexity Theory Conference) (Cat.No.99CB36317).

[33]  Stefan Kratsch,et al.  Efficient parameterized algorithms for computing all-pairs shortest paths , 2020, STACS.