Introduction
The Boolean Satisfiability (SAT) problem is undeniably one of the most fundamental problems in computer science as it lies at the heart of the classical theory of NP-completeness as well as of the Exponential Time Hypothesis and its variants. Given the theoretical hardness of SAT, the surprising efficiency with which real-world solvers can exploit hidden structural properties to solve SAT instances [2 ] has motivated a long line of research aimed at understanding the more fine-grained boundaries of tractability for the problem. Nowadays, this is often pursued via the framework of parameterized complexity [8 ] . A classical result in this domain is that SAT is fixed-parameter tractable (FPT) with respect to the treewidth of the instance, or more specifically, the treewidth of its incidence graph [34 ] .4
Naturally, a SAT instance need not have bounded treewidth—yet it may still possess a “hidden” tree-like structure that reveals itself once a small number of variables is assigned. This phenomenon is typically viewed through the lens of backdoors , introduced by Williams, Gomes, and Selman [40 ] . A set X X X of k k k variables is a strong t t t -treewidth backdoor if every assignment of X X X results in an instance of treewidth at most t t t ; this means that for any fixed k k k and t t t , we can solve SAT in linear time when provided with such a strong t t t -treewidth backdoor. This motivates the study of computing such backdoors of size at most k k k .
Due to a classical result of Gaspers and Szeider [22 ] , it is known that SAT is fixed-parameter tractable w.r.t. the size k k k of a strong t t t -treewidth backdoor—in particular, for every fixed k k k and t t t , we can in cubic time either compute a strong t t t -treewidth backdoor of size bounded by a function of k k k , or determine that no small strong t t t -treewidth backdoor exists.
A natural drawback of strong backdoors, as far as using them for solving SAT is concerned, is that they require every partial assignment of X X X to yield a bounded-treewidth instance. In practice, to obtain a satisfying assignment, we merely need a set X X X of k k k variables such that there is at least one assignment α : X → { 0 , 1 } \alpha: X \to\{0, 1\} α : X → { 0 , 1 } under which the given formula φ \varphi φ is satisfiable and of treewidth at most t t t , provided that the unrestricted φ \varphi φ is satisfiable. Such a set X X X is called a weak t t t -treewidth backdoor . Intuitively, while strong backdoors act as witnesses for tractability, weak backdoors can be seen as direct witnesses for satisfiability.
Unfortunately, in contrast to strong backdoors, finding even a weak backdoor to treewidth 1 for an arbitrary formula φ \varphi φ is W [ 2 ] W[2] W [ 2 ] -hard with respect to k k k [20 ] . A natural response to this hardness is to restrict the structure of φ \varphi φ ; in fact, subsequent research has established that finding weak t t t -treewidth backdoors becomes tractable when the input formulas are structurally sparse . In particular, Fomin, Lokshtanov, Misra, Ramanujan, and Saurabh [16 ] gave the first fixed-parameter algorithm for solving d d d -SAT via weak t t t -treewidth backdoors by showing that such backdoors can be computed in linear time for every fixed choice of k k k , t t t , and d d d . More recently, Lokshtanov, Panolan, and Ramanujan [28 ] expanded this frontier via an f ( k , t ) ⋅ ∣ φ ∣ O ( d ) f(k,t) \cdot|\varphi|^{O(d)} f ( k , t ) ⋅ ∣ φ ∣ O ( d ) algorithm for computing weak t t t -treewidth backdoors on any K d , d K_{d,d} K d , d -free SAT instance φ \varphi φ . This highly general result applies to all previously studied sparse graph classes, including graphs of bounded degree, bounded-genus graphs, and nowhere-dense graph classes.
Given the above results, a natural follow-up question is whether the tractability of SAT via weak t t t -treewidth backdoors can be pushed beyond sparsity into the regime of “well-behaved” dense formulas. In our work, we answer this question positively by giving a linear-time algorithm for solving SAT via weak t t t -treewidth backdoors on instances that are signed d d d -semi-ladder-free . In the next paragraph, we define and motivate the study of these graph classes.
Beyond Sparsity. Our search for tractable structures in the dense regime is inspired by the line of work that lifts first-order (FO) model checking from nowhere dense classes to their dense counterparts (see [33 ] for a survey). A recurring combinatorial notion in this line of work is the ladder . A d d d -ladder, also known as a half-graph, is a graph with vertices a 1 , … , a d a_1,\ldots,a_d a 1 , … , a d on one side and vertices b 1 , … , b d b_1,\ldots,b_d b 1 , … , b d on the other, and there is an edge { a i , b j } \{a_i,b_j\} { a i , b j } if and only if i ≤ j i \le j i ≤ j . We refer to d d d as the height of the ladder. A graph class is edge-stable if it avoids some d d d -ladder as a semi-induced subgraph, and much of the recent progress on FO model checking beyond sparsity concerns dense classes whose structure is governed by the absence of ladders in logically defined auxiliary graphs (monadic stability) [9 ] .5 Excluding ladders in the input graph itself, however, is a purely combinatorial condition that is considerably more general than such logically defined conditions, and it is natural to ask whether it already suffices for the detection of weak t t t -treewidth backdoors. It does not: we show in Theorem 5.1 that the problem is W[1 ] -hard on d d d -ladder-free, that is, edge-stable, instances.
Semi-ladders arise as a natural relaxation of the notion of ladders. While a ladder prescribes both the forced edges and the forced non-edges between the two ordered sides of a bipartition, a semi-ladder keeps only the forced edges and additionally requires horizontal non-edges; that is, we have the edge { a i , b j } \{a_i,b_j\} { a i , b j } whenever i < j i < j i < j , and the non-edges { { a 1 , b 1 } , … , { a d , b d } } \{\{a_1,b_1\},\ldots,\{a_d,b_d\}\} {{ a 1 , b 1 } , … , { a d , b d }} . See Figure 2 for a visualization of both notions. Thus, when excluding a semi-ladder rather than an induced ladder (half-graph), the “lower triangle” is left unconstrained. Notice that since every ladder contains a semi-ladder (up to ± 1 \pm1 ± 1 in the height) but the converse does not hold, the class of d d d -ladder-free graphs is strictly more general than the class of d d d -semi-ladder-free graphs, making the latter a promising candidate for delineating the boundary of efficient weak backdoor detection.
Figure 2. A 4-semi-ladder (left) and a 4-ladder (right). Here, solid lines indicate edges and dashed lines represent non-edges. Vertices that are not connected by a solid or dashed line may be either adjacent or non-adjacent.
The relevance of semi-ladders can also be understood through the Helly property —see for example [12 ] . In a bipartite incidence graph G = ( L , R ) G = (L,R) G = ( L , R ) , where vertices of L L L represent possible choices and vertices of R R R represent constraints, a Helly-type property says that whenever a set of constraints cannot be covered by a single choice from L L L , this failure is already witnessed by a bounded-size subset of constraints. Equivalently, the family of candidate sets N ( b ) ∩ L N(b) \cap L N ( b ) ∩ L , b ∈ R b \in R b ∈ R , has bounded-size certificates for empty intersection. The obstruction to such a strong Helly property is precisely a large co-matching [12 ] . Thus, since bounded semi-ladder index is equivalent, up to Ramsey bounds, to simultaneously bounding the ladder height and co-matching index [12 ] , semi-ladder-freeness can be viewed as the conjunction of stability (excluding order-like half-graphs) and a Helly-type finite-obstruction principle (excluding large co-matchings). This makes it especially natural for domination, hitting, and SAT-backdoor problems, where the algorithmic task is to cover constraints by a small number of selected vertices or literals. Moreover, fixed-radius neighborhood relations in nowhere-dense graph classes have bounded semi-ladder index, showing that semi-ladder-freeness captures a structural phenomenon already present in sparsity theory while extending it to dense graph classes such as map graphs [12 ] and existential-positive first-order interpretations in nowhere-dense graph classes [30 ] .
Unfortunately, it turns out that simply excluding d d d -semi-ladders in the instance still yields W[2 ] -hardness for the problem of detecting weak t t t -treewidth backdoor sets, as we will show in Theorem 5.2 . The reason here, though, is subtle. The hardness occurs because the incidence graph only captures the complexity of a “monotone” SAT instance. That is, the edges of the incidence graph do not account for the polarity in which literals occur in clauses.
One way to circumvent this issue, which is in line with past research on algorithms for dense SAT [14 , 37 , 18 , 32 , 39 ] , is to consider the signed incidence graph of the input formula. Here, every edge between a vertex that corresponds to a clause and a vertex that corresponds to a variable carries a positive or negative sign depending on how this variable appears in the clause (cf. Figure 4 ). Then, the notion of a signed d d d -semi-ladder-free instance means that a d d d -semi-ladder is not present in the incidence graph restricted to positive edges and in the incidence graph restricted to negative edges (cf. Figure 2 ). It is not difficult to show that this is, in fact, equivalent (up to a factor of 2 and an additive constant) to excluding the d d d -semi-ladder in the edge-unlabeled graph, where each variable is represented by two vertices: one for its positive and the other for its negative occurrences. This notion of signed d d d -semi-ladder-freeness turns out to be exactly the right condition for making the detection of weak t t t -treewidth backdoors tractable. Proving this constitutes the main technical contribution of our paper (cf. Theorem 1.1).
Figure 4. The distinct incidence graphs of the formula φ = ( x 1 ∨ x 2 ) ∧ ( x 1 ‾ ∨ x 2 ‾ ∨ x 3 ) \varphi= (x_1 \vee x_2) \wedge(\overline{x_1} \vee\overline{x_2} \vee x_3) φ = ( x 1 ∨ x 2 ) ∧ ( x 1 ∨ x 2 ∨ x 3 ) .
On a different note, one can also observe that the (unsigned) incidence graph of a SAT instance is precisely the incidence graph of the set system defined via the occurrence of variables in clauses. This viewpoint makes it natural to turn to structural parameters that have been widely studied for set systems and try to exploit them for solving SAT. One such parameter that has been employed in the study of set systems is the V C VC V C -dimension [38 , 35 , 36 ] ; it is well known (and also fairly easy to observe) that bounding the height of the largest (semi-)ladder in the incidence graph also bounds the system’s V C VC V C -dimension. In this sense, semi-ladders are a natural next step from both the graph-theoretic and set-theoretic viewpoints on SAT.
Our Contribution. As elaborated earlier, in an attempt to relax structural input restrictions from nowhere-dense graph classes to edge-stable graph classes or to bounded V C VC V C -dimension set systems, we identify signed d d d -semi-ladder-freeness as the correct dense structural restriction that delineates the boundary of tractability. We establish the following theorem.
Theorem 1.1. For all non-negative integers d d d , k k k , and t t t , there is a linear-time algorithm that takes as input a signed d d d -semi-ladder-free SAT instance φ \varphi φ and either:
outputs a satisfying assignment for φ \varphi φ along with a weak t t t -treewidth backdoor of size at most k k k , or or
detects that φ \varphi φ contains no weak t t t -treewidth backdoor of size at most k k k .
As highlighted in the lower part of Figure 1 and discussed in the next paragraph, Theorem 1.1 generalizes the linear-time fixed-parameter algorithm for SAT via weak t t t -treewidth backdoors on d d d -SAT [16 ] to a more general class of instances. It also improves upon the more recent fixed-parameter algorithm via weak t t t -treewidth backdoors on K d , d K_{d,d} K d , d -free SAT, both by applying to an even broader class of instances and by avoiding the superlinear factor of n O ( d ) n^{O(d)} n O ( d ) in the running time.
!Nested classes showing bounded clause size (d d d -SAT, [16 ] ), bounded biclique size (K d , d K_{d,d} K d , d -free, [28 ] ), bounded signed semi-ladder height (Thm. 1.1), bounded unsigned semi-ladder height ( Thm. 5.2 ), bounded signed ladder height (Thm. 5.1), and bounded VC-dimension bbox=0.31,0.21,0.69,0.53
Figure 1. The complexity of finding weak t t t -treewidth backdoors in increasingly more general formulas. Classes that are fixed-parameter tractable with respect to the size of the backdoor are highlighted in green, intractable classes in red. Most of the depicted inclusions are well-known. Additionally, Lemma 3.5 proves that every formula with bounded signed semi-ladder height also has bounded unsigned semi-ladder height.
We remark that a weak 0-treewidth backdoor corresponds to a partial assignment that satisfies all clauses. As a special case, we thus obtain the following corollary.
Corollary 1.2. For all non-negative integers d d d and k k k , there is a linear-time algorithm which takes as input a signed d d d -semi-ladder-free SAT instance φ \varphi φ and either:
outputs a partial assignment of at most k k k variables satisfying all clauses in φ \varphi φ , or
reports that no such partial assignment exists.
On a related note, the tractability established by Corollary 1.2 contrasts with a problem known as Minimum Weight SAT. In Minimum Weight SAT, given a SAT formula and a positive integer k k k , the goal is to find a satisfying assignment that sets at most k k k variables to true, or correctly determine that no such assignment exists. Interestingly, one can show that this problem is W[1 ] -hard even on K 2 , 2 K_{2,2} K 2 , 2 -free instances, and hence when excluding (signed) semi-ladders of constant height (see Lemma A.1 in the Appendix).
Crucially, we complement Theorem 1.1 by showing that signed semi-ladder-freeness marks the tractability barrier of finding weak t t t -treewidth backdoors—see the top part of Figure 1 . More precisely, we first show in Theorem 5.2 that weak t t t -treewidth backdoor detection is W[2 ] -hard if we merely exclude d d d -semi-ladders in the incidence graph—i.e., without taking the edge signs into account. Second, in Theorem 5.1 we prove that weak t t t -treewidth backdoor detection is W[1 ] -hard on SAT instances that are signed ladder-free (as opposed to semi-ladder-free). In fact, both lower bounds hold even if d d d is a small constant and apply to every fixed choice of t ≥ 0 t \ge0 t ≥ 0 .
Related Work on Backdoors. The study of backdoor sets has developed into an active line of research for understanding hidden structures in satisfiability problems that can be exploited to obtain tractable algorithms. The general backdoor paradigm was introduced by Williams, Gomes, and Selman [40 ] . Building on this idea of identifying a small set of variables whose assignment reduces the instance to a tractable class, the literature has considered backdoors to both syntactic classes (such as Horn- and 2-SAT [31 ] , affine [25 ] , nested [21 ] , and q q q -Horn formulas [24 ] ) and to structural classes (such as acyclic formulas [20 ] and more generally formulas of bounded incidence treewidth [22 ] ). Surveys, including a very recent one, by Gaspers and Szeider [23 , 19 ] emphasize that the parameterized complexity of detecting such backdoors has become a broad research program, including variants for strong and weak backdoors, structural backdoors, and extensions beyond classical SAT.
Figure 3. A 6-semi-ladder contains a K 3 , 3 K_{3,3} K 3 , 3 as a subgraph.
This activity is ongoing: recent work on quantified Boolean formulas (QBFs) studied backdoors to Horn, 2-SAT, and affine QBFs, showing that the QBF setting is substantially more delicate than SAT—QBF remains PSPACE-hard even for formulas with constant-size standard backdoors—while introducing enhanced backdoors that recover FPT algorithms under additional structural control such as bounded quantifier depth and bounded incidence treewidth [11 ] .
The problem of detecting weak t t t -treewidth backdoor sets for SAT, the one considered in this work, is shown not to admit a polynomial kernel parameterized by k k k , even for d d d -SAT when d ≥ 4 d \ge4 d ≥ 4 and t t t is fixed, under reasonable complexity assumptions [16 ] .
Related Work on d d d -semi-ladder-free Graphs. Fabianski et al. [12 ] introduced semi-ladder-freeness in the context of their progressive exploration framework, obtaining FPT algorithms for domination problems on several graph classes. Subsequently, Guillemot [26 ] established FPT and kernelization results for Set Cover on d d d -semi-ladder-free hypergraphs. A certain part of the algorithm that underlies our main result is inspired by the latter work; we indicate the respective part of the algorithm below.
Technical Overview
We now present the key ideas and challenges towards proving Theorem 1.1.
The General Procedure. The algorithm that Theorem 1.1 postulates is a branching algorithm that orchestrates three major components in an iterative fashion. We call these components reducer, extractor, and progressor. The pipeline that comprises all three components is illustrated in Figure 5 . In broad strokes, the extractor samples a set V ′ V' V ′ of variables and clauses of bounded size such that every weak backdoor X X X , if there is any, intersects V ′ V' V ′ or satisfies a clause in V ′ V' V ′ via a partial assignment witnessing its weak backdoor property. The extractor may not be able to achieve the above on general instances, which is why the instances are pre-processed by the reducer component, which ensures that an instance exhibits a certain structure that guarantees the success of the extractor. Finally, the progressor takes as input a variable or a clause that is guaranteed to be in the weak backdoor or be satisfied by it, respectively, and eliminates it from the instance, thus ensuring that some progress towards finding a weak backdoor is made.
Figure 5. A schematic depiction of the interplay between our algorithmic modules—the reducer, extractor, and progressor—in the proof of Theorem 4.1.
To motivate the choice of these modules and their interplay, we first sketch the general procedure for finding weak t t t -treewidth backdoors on instances of d d d -SAT and K d , d K_{d,d} K d , d -free SAT as proposed in [17 ] and [28 ] , respectively. These works operate on the unsigned incidence graph of the respective SAT instances.
Thus, let G G G be the unsigned incidence graph of a SAT formula φ \varphi φ and let X X X be a hypothetical weak t t t -treewidth backdoor of φ \varphi φ of size at most k k k . Then, in particular, the treewidth of the residual graph G − N G [ X ] G-N_G[X] G − N G [ X ] is at most t t t , where N G [ X ] N_G[X] N G [ X ] denotes the closed neighborhood of X X X in G G G .6 Observe that if the size of N G [ X ] N_G[X] N G [ X ] were bounded by some function of k k k , then the original instance would have a treewidth of size f ( k , t ) f(k,t) f ( k , t ) (where f f f is some computable function) and we could immediately apply Courcelle’s Theorem [7 ] .
Unfortunately, the size of N G [ X ] N_G[X] N G [ X ] may be large; in fact, this may be the case even if φ \varphi φ is a formula of bounded clause size, since the variables in X X X may appear in many clauses. Hence, instead of relying on the size of N G [ X ] N_G[X] N G [ X ] to be bounded, we further observe that if a “good” fraction of the edges of G G G is not incident on N G [ X ] N_G[X] N G [ X ] , then there are large subgraphs in G − N G [ X ] G-N_G[X] G − N G [ X ] , which have treewidth at most t t t and a “boundary” of size O ( t ) \mathcal{O}(t) O ( t ) to the rest of the graph. Such subgraphs are called O ( t ) \mathcal{O}(t) O ( t ) -protrusions in the literature. Essentially, the task of our reducer is to compress large O ( t ) \mathcal{O}(t) O ( t ) -protrusions in the graph G G G , while preserving the satisfiability status of the instance.
After the instance has been processed by the reducer, a random uniform sampling of an edge of the graph and then a random selection of an end-point of this edge gives a vertex in N G [ X ] N_G[X] N G [ X ] with high probability. This random sampling—in fact, a deterministic version of it—is the task of the extractor.
Finally, the progressor gets a vertex that is guaranteed to be in N G [ X ] N_G[X] N G [ X ] with “high probability” (this is simulated by branching in the case where the extractor is a deterministic algorithm). If this vertex corresponds to a variable then the progressor chooses to pick it in the hypothetical weak backdoor X X X , guesses an assignment to it, which is compatible with a satisfying assignment of the formula, and then removes all the clauses that are satisfied by this assignment of the chosen vertex. In this case, the progressor made progress by dropping the measure k k k by 1.
The interesting case is when the extractor produces a vertex which happens to be a clause vertex in N G [ X ] N_G[X] N G [ X ] . In this case, we know that the hypothetical weak backdoor contains a literal that is one of the literals of this clause. If the input formula was a d d d -SAT formula, then the length of each clause is bounded by d d d , and therefore one can branch on which literal in this clause is in X X X and then proceed to delete it, delete all clauses it satisfies and decrease k k k by 1. This is roughly how the algorithm of Fomin et al. [17 ] for d d d -SAT operates. The non-trivial scenario arises when the clauses have unbounded length, which prevents this final branching of guessing which literal of the clause satisfies it in the weak backdoor X X X .
The key obstacle to make this procedure work on instances beyond d d d -SAT, is having a notion of a bounded measure that can still drop while eliminating a sampled clause from N G [ X ] N_G[X] N G [ X ] . We elaborate on this main obstacle below while highlighting the impact of this in the interplay between our three components reducer, extractor, and progressor. Also note that the reducer and the extractor function irrespectively of the structure of the input formula. It is the progressor that needs additional structure on the input, in order to make “progress”.
The earlier work of Lokshtanov et al. [28 ] for K d , d K_{d,d} K d , d -free SAT also encounters this challenge and manages to resolve it, in a way, by waiting for several rounds of the “extractor-progressor communication” (still bounded by a function of k k k , t t t , d d d ) before really dropping the measure of the branching algorithm. This is not quite the formal treatment; instead the authors make use of the notion of unbreakability of instances to overcome the challenge. The implementation of this, in the work of Lokshtanov et al. costs them super-linear time—in fact the time taken is XP w.r.t. d d d (that is, ∣ φ ∣ O ( d ) |\varphi|^{O(d)} ∣ φ ∣ O ( d ) ). Our work, on the other hand, overcomes this issue in linear time on a even more general class of instances.
The progressor. Our progressor, is inspired by the FPT algorithm for Set Cover on d d d -semi-ladder-free hypergraphs by Guillemot [26 ] . On receiving a clause C C C that is guaranteed to be satisfied by the assignment α \alpha α of the weak backdoor X X X , records that some literal of this clause must be selected into the weak backdoor. This information is kept by imagining X X X as an ordered set of k k k literals and maintaining k k k (not necessarily disjoint) sets of literals, called candidate sets P 1 , … , P k P_1,\ldots,P_k P 1 , … , P k , that keep the choices for the first, second, ..., k k k -th literal of the backdoor, respectively. In other words, in this annotated problem, the i i i -th backdoor variable is forced to come from the set P i P_i P i . Initially, each P i P_i P i contains all literals. When the progressor receives a clause C C C that is guaranteed to be satisfied by the weak backdoor, the progressor guesses the least index i i i such that C C C will be satisfied by the i i i -th literal of the weak backdoor. Under the guess, it deletes the i i i -th candidate set P i P_i P i to only contain the literals of C C C that were already in P i P_i P i , and delete everything else. This way, the new P i P_i P i ensures that as long as, for each i i i , some literal of P i P_i P i is selected into the final weak backdoor, the clause C C C will always be satisfied.
To guarantee termination of the algorithm, we will show that some measure decreases every time the progressor is called. To this end, the algorithm cleans up the instance after every branching by deleting all clauses whose neighborhood contains some P i P_i P i . This deletion is correct since, as long as any literal from each set P i P_i P i is chosen to be satisfied by the final weak backdoor, the deleted clauses will all be satisfied. The clean-up ensures that after each branching step followed by a clean-up, the size of a maximum semi-ladder that can be constructed using the literal vertices of P i P_i P i (and arbitrary clauses) in the signed incidence graph, strictly decreases. Thus, the total measure of all branching steps of the progressor is bounded by s : = ( d − 1 ) k s := (d - 1)k s := ( d − 1 ) k . This bounds the number of calls to the progressor in the overall algorithm. See Figure 6 .
Figure 6. High-level overview of the proof of our main result. The input formula φ \varphi φ is translated into an annotated instance with a SL-pattern size bound of s = ( d − 1 ) k s=(d-1)k s = ( d − 1 ) k and p = s + k = d k p=s+k=dk p = s + k = d k . Theorem 4.1 is then applied to this instance to obtain a set of instances in which k k k or s s s is reduced by 1. The process is iterated on all output instances. After at most d k − 1 dk-1 d k − 1 iterations we obtain a set of instances with k = 0 k=0 k = 0 or s = 0 s=0 s = 0 . These can be decided easily, and a solution (or its non-existence) can be lifted back to the original question for the formula φ \varphi φ .
The reducer. Finally, since the progressor makes progress by reducing a bounded measure at the cost of adding many annotations to the instance, it correspondingly increases the burden on the reducer routine.
Recall that the reducer is a pre-processing routine that outputs an equivalent instance that is free from large O ( t ) O(t) O ( t ) -protrusions. Because of the steps outlined above, the reducer now needs to deal with annotated instances. The problem, however, is that our annotations, that is, the candidate sets P 1 , … , P k P_1,\ldots,P_k P 1 , … , P k and a measure s s s associated with the instance, are not encoded in the graph structure. Consequently, even if a graph contains an O ( t ) O(t) O ( t ) -protrusion—so, in particular, a subgraph with an O ( t ) O(t) O ( t ) -sized boundary—this boundary is not the protrusion’s “real” one, as information flows between this protrusion and the remaining graph through the annotations, which the graph structure does not capture. This makes handling protrusions non-trivial. We circumvent the issue by designing a reducer that efficiently compresses sufficiently large O ( t ) O(t) O ( t ) -protrusions to ones of size f ( k , t , d ) f(k,t,d) f ( k , t , d ) —this differs from the f ( t ) f(t) f ( t ) bound one would obtain when working with the “genuine” boundary of t t t -protrusions, but is still sufficient for our purposes.
Solving Base Cases To conclude the outline of the algorithm, notice that once the progressor reduced our “measure of progress” sufficiently, we are guaranteed to remain with a set of “simple” instances: for each of them, we have either k = 0 k = 0 k = 0 (asking for the existence of an empty weak backdoor), or s s s , a measure of the “maximal semi-ladder height of an annotated instance”, is zero. We link the latter to the instance not having any clauses. Based on these descriptions, it should be evident that both cases are easy to handle. In fact, if k = 0 k = 0 k = 0 , it suffices to check whether the instance already has treewidth at most t t t and, if it does, to determine whether a satisfying assignment exists. In the second case, that is, if no clauses remain, note that removing any set of variables yields treewidth 0 0 0 , so we only have to decide whether such a set exists that respects the annotated information of our instance (in particular, that satisfies the clauses which we removed earlier). We solve this via a simple branching algorithm.
We have thus presented all ingredients of the algorithm that Theorem 1.1 postulates. The overall procedure is depicted in Figure 6 . Below, we highlight several further aspects that make finding weak backdoors in a dense regime more challenging than in the sparse settings studied in [17 ] and in [28 ] , respectively.
The (deterministic) extractor: Structure-oblivious deterministic sampling. Earlier works rely on a random sampling argument for the extractor routine. In principle, the randomized argument works for all instances of SAT, as long as they have been pre-processed by the reducer. In earlier works, this random step is derandomized by accounting for the sparse structure of the instance. In our work, we derandomize without relying on any structure of the SAT formula. In fact, this makes both our reducer and our (deterministic) extractor oblivious to the structure of the input formula.
Below, we briefly sketch the idea of our deterministic extractor. We first make a fairly simple observation: since a K t + 2 , t + 2 K_{t+2,t+2} K t + 2 , t + 2 is an obstruction to treewidth at most t t t , any K t + 2 , t + 2 K_{t+2,t+2} K t + 2 , t + 2 in the incidence graph G G G must either be hit by the weak backdoor X X X or contain a clause vertex that will be satisfied by the witnessing assignment for X X X . Therefore, if we find a K t + 2 , t + 2 K_{t+2,t+2} K t + 2 , t + 2 in G G G , the extractor can output the literals corresponding to all the variables, and the clauses, contained in this K t + 2 , t + 2 K_{t+2,t+2} K t + 2 , t + 2 .
The challenge is to find such a K t + 2 , t + 2 K_{t+2,t+2} K t + 2 , t + 2 , if it exists, in linear time. Since finding a biclique is W[1 ] -hard parameterized by the desired size [27 ] , a linear-time algorithm is out of reach—though finding such a biclique (or reporting that none exist) in ∣ φ ∣ O ( t ) |\varphi|^{O(t)} ∣ φ ∣ O ( t ) time is trivial.
We overcome this challenge by exploiting the fact that, due to the pre-processing in the reducer module, any weak backdoor X X X is such that N G ( X ) N_G(X) N G ( X ) is a ρ \rho ρ -cover of the incidence graph G G G , where ρ = 1 / f ( k , t , d ) \rho=1/f(k,t,d) ρ = 1/ f ( k , t , d ) and f f f is a function that depends only on k , t , d k,t,d k , t , d . A ρ \rho ρ -cover in a graph is a set of vertices that has a ρ \rho ρ fraction of edges incident to it. Since N G ( X ) N_G(X) N G ( X ) is a ρ \rho ρ -cover, either there is a clause vertex in the neighborhood of X X X that has at least a ρ / 2 d k \rho/2dk ρ /2 d k -fraction of the edges incident to it, or X X X contains a literal vertex whose clause neighborhood covers at least a ρ / k \rho/k ρ / k -fraction of all edges. In the first case, the number of (clause) vertices which have a ρ / 2 d k \rho/2dk ρ /2 d k -fraction of the edges incident on them individually is bounded by 2 d k / ρ 2dk/\rho 2 d k / ρ . In the second case, we observe that, if the number of literal vertices Y Y Y whose clause neighborhoods have a ρ / k \rho/k ρ / k -fraction of the edges incident on them is large enough, then there is a K t + 2 , t + 2 K_{t+2,t+2} K t + 2 , t + 2 whose literal endpoints reside in any sufficiently large (but bounded) subset of Y Y Y . This allows us to find a K t + 2 , t + 2 K_{t+2,t+2} K t + 2 , t + 2 in linear time when Y Y Y is large.
Linear versus almost-linear time in the dense regime. Apart from the challenges discussed above, yet another issue arises from entering the dense regime: The reducer is an O ( n + m ) O(n+m) O ( n + m ) -time procedure that reduces the number of vertices in the incidence graph by a fraction of the original number of vertices (if the instance is not already “ready” for the extractor). Here, n n n and m m m are the number of vertices and edges in the incidence graph of the SAT formula. But one round of this pre-processing may not be enough for the extractor to work, so this step needs to be exhaustively performed until we are in a scenario that the extractor accepts. In the sparse regime, this is not a problem if we want to design a linear-time algorithm, since in each time step, the number of vertices reduces by a fraction and the number of edges is in any case bounded linearly in the number of vertices. Therefore, the total running time of this exhaustive application is O ( n + m ) + O ( ( n + m ) / α ) + O ( ( n + m ) / α 2 ) + … O(n+m)+O((n+m)/\alpha)+O((n+m)/\alpha^{2})+\ldots O ( n + m ) + O (( n + m ) / α ) + O (( n + m ) / α 2 ) + … , for some constant α > 1 \alpha>1 α > 1 , which is still O ( n + m ) O(n+m) O ( n + m ) .
On dense instances, however, a reduction in the number of vertices by a fraction does not guarantee that the number of edges also drops by that proportion. Thus, a naive exhaustive application of a reduction rule that eliminates a fraction of the vertices will give an algorithm with running time O ( ∣ φ ∣ log ∣ φ ∣ ) O(|\varphi|\log|\varphi|) O ( ∣ φ ∣ log ∣ φ ∣ ) . Designing a truly linear-time algorithm with these repetitive procedures requires making careful observations about the structure of the problem and the process.
Preliminaries
For any variables n , α , β , … n,\alpha,\beta,\ldots n , α , β , … we define O α , β , … ( f ( n ) ) O_{\alpha,\beta,\ldots}(f(n)) O α , β , … ( f ( n )) for any function f f f depending only on n n n to capture all functions bounded from above by O ( g ( α , β , … ) ⋅ f ( n ) ) O(g(\alpha,\beta,\ldots)\cdot f(n)) O ( g ( α , β , … ) ⋅ f ( n )) for some computable function g g g . In particular, O α , β , … ( f ( n ) ) = O ( f ( n ) ) O_{\alpha,\beta,\ldots}(f(n))=O(f(n)) O α , β , … ( f ( n )) = O ( f ( n )) when α , β , … ∈ O ( 1 ) \alpha,\beta,\ldots\in O(1) α , β , … ∈ O ( 1 ) .
Graphs. For a graph G G G we denote its vertex and edge set by V ( G ) V(G) V ( G ) and E ( G ) E(G) E ( G ) , respectively. The size of a graph is measured by ∣ G ∣ = ∣ V ( G ) ∣ + ∣ E ( G ) ∣ |G|=|V(G)|+|E(G)| ∣ G ∣ = ∣ V ( G ) ∣ + ∣ E ( G ) ∣ . For some v ∈ V ( G ) v\in V(G) v ∈ V ( G ) , we let N G ( v ) = { u ∣ { u , v } ∈ E ( G ) } N_G(v)=\{u\mid\{u,v\}\in E(G)\} N G ( v ) = { u ∣ { u , v } ∈ E ( G )} and N G [ v ] = { v } ∪ N G ( v ) N_G[v]=\{v\}\cup N_G(v) N G [ v ] = { v } ∪ N G ( v ) . Moreover, we let deg G ( v ) = ∣ N G ( v ) ∣ \deg_G(v)=|N_G(v)| deg G ( v ) = ∣ N G ( v ) ∣ denote the degree of v v v in G G G . For a vertex set S ⊆ V ( G ) S\subseteq V(G) S ⊆ V ( G ) , we let N G ( S ) = ⋃ v ∈ S N G ( v ) ∖ S N_G(S)=\bigcup_{v\in S}N_G(v)\setminus S N G ( S ) = ⋃ v ∈ S N G ( v ) ∖ S and N G [ S ] = N G ( S ) ∪ S N_G[S]=N_G(S)\cup S N G [ S ] = N G ( S ) ∪ S , and we let G − S G-S G − S denote the graph that is obtained from G G G by deleting all vertices in S S S together with all edges incident to S S S . Throughout the paper, we assume a graph encoding that supports the following operations in O ( 1 ) O(1) O ( 1 ) time: adding/deleting an isolated vertex, adding/deleting a given edge, and testing adjacency between two vertices; moreover, we assume that all edges incident to a vertex can be listed in time linear in the number of such edges.7
The treewidth tw ( G ) \operatorname{tw}(G) tw ( G ) of a graph G G G is a well-established measure of how “tree-like” it is. For a definition of treewidth and (nice) tree decompositions we refer to the literature [8 Subsection 7.2] .
Definition 3.1 (ρ \rho ρ -cover). Let G G G be a graph and let 0 < ρ < 1 0 < \rho< 1 0 < ρ < 1 . A set X ⊆ V ( G ) X \subseteq V(G) X ⊆ V ( G ) is a ρ \rho ρ -cover of G G G if ∑ v ∈ X deg G ( v ) ≥ ρ ⋅ ∑ v ∈ V ( G ) deg G ( v ) \sum_{v\in X}\deg_G(v) \geq\rho\cdot\sum_{v\in V(G)}\deg_G(v) ∑ v ∈ X deg G ( v ) ≥ ρ ⋅ ∑ v ∈ V ( G ) deg G ( v ) .
CNF formulas. For a set of Boolean variables Var \operatorname{Var} Var , let L ( Var ) = { x , x ‾ ∣ x ∈ Var } L(\operatorname{Var}) = \{x, \overline{x} \mid x \in\operatorname{Var}\} L ( Var ) = { x , x ∣ x ∈ Var } denote the corresponding set of literals. For simplicity of notation, we define x ‾ ‾ = x \overline{\overline{x}} = x x = x for all x ∈ Var x \in\operatorname{Var} x ∈ Var . A clause over Var \operatorname{Var} Var is a set of literals from L ( Var ) L(\operatorname{Var}) L ( Var ) , and it is satisfied via any of the literals in that set. A CNF formula is a pair φ = ( Var , Clauses ) \varphi= (\operatorname{Var},\operatorname{Clauses}) φ = ( Var , Clauses ) , where Clauses \operatorname{Clauses} Clauses is a multiset of clauses over Var \operatorname{Var} Var . Given a CNF formula φ = ( Var , Clauses ) \varphi= (\operatorname{Var},\operatorname{Clauses}) φ = ( Var , Clauses ) and a partial assignment α : X → { 0 , 1 } \alpha\colon X \to\{0,1\} α : X → { 0 , 1 } for some X ⊆ Var X \subseteq\operatorname{Var} X ⊆ Var , we define the residual of φ \varphi φ under α \alpha α to be φ [ α ] = ( Var α , Clauses α ) \varphi[\alpha] = (\operatorname{Var}_{\alpha},\operatorname{Clauses}_{\alpha}) φ [ α ] = ( Var α , Clauses α ) with Var α = Var ∖ X \operatorname{Var}_{\alpha} = \operatorname{Var} \setminus X Var α = Var ∖ X and Clauses α = { C ∖ L ( X ) ∣ C ∈ Clauses and C is not already satisfied by a literal described by α } \operatorname{Clauses}_{\alpha} = \{C \setminus L(X) \mid C \in\operatorname{Clauses}\text{ and }C\text{ is not already satisfied by a literal described by }\alpha\} Clauses α = { C ∖ L ( X ) ∣ C ∈ Clauses and C is not already satisfied by a literal described by α } . The length of a clause is the number of literals it contains and the size of a formula φ \varphi φ , denoted by ∣ φ ∣ |\varphi| ∣ φ ∣ , is the total length of all clauses in φ \varphi φ . Below, we define several options for representing CNF formulas via graphs.
Definition 3.2 (Signed Incidence Graphs). Let φ = ( Var , Clauses ) \varphi= (\operatorname{Var},\operatorname{Clauses}) φ = ( Var , Clauses ) be a CNF formula. We define the following variants of signed incidence graphs for φ \varphi φ .
The signed vertex incidence graph G φ s i g n V = ( Clauses ∪ L ( Var ) , E ) G_{\varphi}^{\mathrm{signV}} = (\operatorname{Clauses} \cup L(\operatorname{Var}), E) G φ signV = ( Clauses ∪ L ( Var ) , E ) contains for each ℓ ∈ L ( Var ) \ell\in L(\operatorname{Var}) ℓ ∈ L ( Var ) and C ∈ Clauses C \in\operatorname{Clauses} C ∈ Clauses , the edge { ℓ , C } \{\ell,C\} { ℓ , C } if and only if ℓ ∈ C \ell\in C ℓ ∈ C , and additionally the edge { x , x ‾ } \{x,\overline{x}\} { x , x } for each x ∈ Var x \in\operatorname{Var} x ∈ Var that connects two opposing literals.
The signed edge incidence graph G φ s i g n E = ( Clauses ∪ Var , E ) G_{\varphi}^{\mathrm{signE}} = (\operatorname{Clauses} \cup\operatorname{Var}, E) G φ signE = ( Clauses ∪ Var , E ) contains for each x ∈ Var x \in\operatorname{Var} x ∈ Var and C ∈ Clauses C \in\operatorname{Clauses} C ∈ Clauses , the edge { x , C } \{x,C\} { x , C } of sign + + + if and only if x ∈ C x \in C x ∈ C and of sign − - − if and only if x ‾ ∈ C \overline{x} \in C x ∈ C .
For s ∈ { + , − } s \in\{+,-\} s ∈ { + , − } , we write G φ s i g n E , s G_{\varphi}^{\mathrm{signE},s} G φ signE , s for the subgraph of G φ s i g n E G_{\varphi}^{\mathrm{signE}} G φ signE obtained by keeping all vertices and exactly the edges of sign s s s .
Semi-Ladders. A semi-ladder of height h h h in a graph G G G is a sequence of vertices a 1 , … , a h a_1,\ldots,a_h a 1 , … , a h , b 1 , … , b h b_1,\ldots,b_h b 1 , … , b h such that { a i , b i } ∉ E ( G ) \{a_i,b_i\} \notin E(G) { a i , b i } ∈ / E ( G ) for all i ∈ [ h ] i \in[h] i ∈ [ h ] , and { a i , b j } ∈ E ( G ) \{a_i,b_j\} \in E(G) { a i , b j } ∈ E ( G ) for all i , j ∈ [ h ] i,j \in[h] i , j ∈ [ h ] with i < j i < j i < j . Note that the vertices b 1 , … , b h b_1,\ldots,b_h b 1 , … , b h are pairwise distinct (for i < j i < j i < j , b j b_j b j is a neighbor of a i a_i a i while b i b_i b i is not) and so are a 1 , … , a h a_1,\ldots,a_h a 1 , … , a h . Moreover, restricting a semi-ladder to any subset of its positions, that is, to a i 1 , … , a i m , b i 1 , … , b i m a_{i_1},\ldots,a_{i_m},b_{i_1},\ldots,b_{i_m} a i 1 , … , a i m , b i 1 , … , b i m for indices i 1 < ⋯ < i m i_1 < \cdots< i_m i 1 < ⋯ < i m , yields again a semi-ladder. For d ∈ N d \in\mathbb{N} d ∈ N , we say that G G G is S L d SL_d S L d -free if it contains no semi-ladder of height at least d d d .
Consider a graph G G G in which every vertex is marked either as a literal vertex or as a clause vertex ; for instance, in G φ s i g n V G_{\varphi}^{\mathrm{signV}} G φ signV the literal vertices are L ( Var ) L(\operatorname{Var}) L ( Var ) and the clause vertices are Clauses \operatorname{Clauses} Clauses . We call a semi-ladder a 1 , … , a h , b 1 , … , b h a_1,\ldots,a_h,b_1,\ldots,b_h a 1 , … , a h , b 1 , … , b h in such a graph proper if every a i a_i a i is a literal vertex and every b i b_i b i is a clause vertex. Similarly, we call a semi-ladder in G φ s i g n E , s G_{\varphi}^{\mathrm{signE},s} G φ signE , s proper if every a i a_i a i is a variable vertex and every b i b_i b i is a clause vertex.
We have thus defined several notions of semi-ladders in the incidence graphs of a formula; for instance, semi-ladders in G φ s i g n V G_{\varphi}^{\mathrm{signV}} G φ signV may a priori mix literal and clause vertices on both sides, whereas proper ones may not. The following lemma shows that all these notions are functionally equivalent: their maximum heights agree up to a factor of two and an additive constant. Given this
machine model, but in general they work in expected O ( 1 ) O(1) O ( 1 ) time (though not necessarily in the worst case). correspondence, we restrict our attention to proper semi-ladders in signed vertex incidence graphs in the following and, for simplicity, refer to these graphs as signed incidence graphs G φ G_\varphi G φ .
Lemma 3.3. Let φ \varphi φ be a CNF formula. Let h h h be the maximum height of a semi-ladder in G φ s i g n V G_\varphi^{\mathrm{signV}} G φ signV , let h V h_V h V be the maximum height of a proper semi-ladder in G φ s i g n V G_\varphi^{\mathrm{signV}} G φ signV , and let h E h_E h E be the maximum height of a proper semi-ladder in G φ s i g n E , + G_\varphi^{\mathrm{signE},+} G φ signE , + or G φ s i g n E , − G_\varphi^{\mathrm{signE},-} G φ signE , − . Then
h V ≤ h ≤ h V + 4 and h E ≤ h V ≤ 2 h E . h_V \le h \le h_V + 4 \qquad\text{and} \qquad h_E \le h_V \le2h_E. h V ≤ h ≤ h V + 4 and h E ≤ h V ≤ 2 h E . Proof. Since every proper semi-ladder is in particular a semi-ladder, we have h V ≤ h h_V \le h h V ≤ h .
We next show h ≤ h V + 4 h \le h_V + 4 h ≤ h V + 4 . Let a 1 , … , a h , b 1 , … , b h a_1,\ldots,a_h,b_1,\ldots,b_h a 1 , … , a h , b 1 , … , b h be a semi-ladder in G φ s i g n V G_\varphi^{\mathrm{signV}} G φ signV of height h h h . Recall that in G φ s i g n V G_\varphi^{\mathrm{signV}} G φ signV no two clause vertices are adjacent, and every literal vertex is adjacent to exactly one other literal vertex, namely the opposing literal. We will moreover use mirroring : if a 1 , … , a h , b 1 , … , b h a_1,\ldots,a_h,b_1,\ldots,b_h a 1 , … , a h , b 1 , … , b h is a semi-ladder, then so is b h , … , b 1 , a h , … , a 1 b_h,\ldots,b_1,a_h,\ldots,a_1 b h , … , b 1 , a h , … , a 1 , obtained by exchanging the two sides and reversing their order. We call a position i ∈ [ h ] i \in[h] i ∈ [ h ] proper if a i a_i a i is a literal vertex and b i b_i b i is a clause vertex, and co-proper if a i a_i a i is a clause vertex and b i b_i b i is a literal vertex. Let p p p and q q q denote the number of proper and co-proper positions, respectively. Restricting the semi-ladder to its proper positions yields a proper semi-ladder of height p p p , and restricting it to its co-proper positions and mirroring yields one of height q q q , so h V ≥ max ( p , q ) h_V \ge\max(p,q) h V ≥ max ( p , q ) . It therefore suffices to show max ( p , q ) ≥ h − 4 \max(p,q) \ge h - 4 max ( p , q ) ≥ h − 4 , which we do by bounding the number of positions of all remaining types. First, at most one position consists of two clause vertices: given two such positions i < j i < j i < j , the clause vertices a i a_i a i and b j b_j b j would be adjacent. Second, at most two positions consist of two literal vertices: for two such positions i < j i < j i < j , the literal vertices a i a_i a i and b j b_j b j are adjacent and hence opposing literals, so three such positions i < j < j ′ i < j < j' i < j < j ′ would yield b j = a i ‾ = b j ′ b_j = \overline{a_i} = b_{j'} b j = a i = b j ′ , contradicting the distinctness of b j b_j b j and b j ′ b_{j'} b j ′ . Finally, we claim that min ( p , q ) ≤ 1 \min(p,q) \le1 min ( p , q ) ≤ 1 . Note that every proper position precedes every co-proper position, as otherwise two clause vertices a i a_i a i and b j b_j b j with i < j i < j i < j would be adjacent. So if p ≥ 2 p \ge2 p ≥ 2 and q ≥ 1 q \ge1 q ≥ 1 , there are proper positions i < i ′ i < i' i < i ′ and a co-proper position j j j with i ′ < j i' < j i ′ < j , and the literal vertex b j b_j b j is adjacent to the two distinct literal vertices a i a_i a i and a i ′ a_{i'} a i ′ , a contradiction. Symmetrically, if p ≥ 1 p \ge1 p ≥ 1 and q ≥ 2 q \ge2 q ≥ 2 , there is a proper position i i i and co-proper positions j < j ′ j < j' j < j ′ with i < j i < j i < j , and the literal vertex a i a_i a i is adjacent to the two distinct literal vertices b j b_j b j and b j ′ b_{j'} b j ′ , again a contradiction. In total, h ≤ p + q + 3 ≤ max ( p , q ) + 4 h \le p + q + 3 \le\max(p,q) + 4 h ≤ p + q + 3 ≤ max ( p , q ) + 4 , as required.
It remains to show h E ≤ h V ≤ 2 h E h_E \le h_V \le2h_E h E ≤ h V ≤ 2 h E . Fix a sign s ∈ { + , − } s \in\{+,-\} s ∈ { + , − } and, for a variable x ∈ Var x \in\operatorname{Var} x ∈ Var , let ℓ x s = x \ell_x^s = x ℓ x s = x if s = + s = + s = + and ℓ x s = x ‾ \ell_x^s = \overline{x} ℓ x s = x if s = − s = - s = − . By definition of the two graphs, { x , C } \{x,C\} { x , C } is an edge of G φ s i g n E , s G_\varphi^{\mathrm{signE},s} G φ signE , s if and only if { ℓ x s , C } \{\ell_x^s,C\} { ℓ x s , C } is an edge of G φ s i g n V G_\varphi^{\mathrm{signV}} G φ signV .
This correspondence immediately yields h V ≥ h E h_V \ge h_E h V ≥ h E : if x 1 , … , x k , C 1 , … , C k x_1,\ldots,x_k,C_1,\ldots,C_k x 1 , … , x k , C 1 , … , C k is a proper semi-ladder in G φ s i g n E , s G_\varphi^{\mathrm{signE},s} G φ signE , s , then ℓ x 1 s , … , ℓ x k s , C 1 , … , C k \ell_{x_1}^s,\ldots,\ell_{x_k}^s,C_1,\ldots,C_k ℓ x 1 s , … , ℓ x k s , C 1 , … , C k is a proper semi-ladder in G φ s i g n V G_\varphi^{\mathrm{signV}} G φ signV .
Conversely, let ℓ 1 , … , ℓ k , C 1 , … , C k \ell_1,\ldots,\ell_k,C_1,\ldots,C_k ℓ 1 , … , ℓ k , C 1 , … , C k be a proper semi-ladder in G φ s i g n V G_\varphi^{\mathrm{signV}} G φ signV of height k = h V k = h_V k = h V . At least ⌈ k / 2 ⌉ \lceil k/2 \rceil ⌈ k /2 ⌉ of the literals ℓ i \ell_i ℓ i have the same polarity; let s s s be the corresponding sign and let i 1 < ⋯ < i m i_1 < \cdots< i_m i 1 < ⋯ < i m with m ≥ ⌈ k / 2 ⌉ m \ge\lceil k/2 \rceil m ≥ ⌈ k /2 ⌉ be the corresponding positions. By the same correspondence, the variables of ℓ i 1 , … , ℓ i m \ell_{i_1},\ldots,\ell_{i_m} ℓ i 1 , … , ℓ i m together with C i 1 , … , C i m C_{i_1},\ldots,C_{i_m} C i 1 , … , C i m form a proper semi-ladder in G φ s i g n E , s G_\varphi^{\mathrm{signE},s} G φ signE , s . Hence we have h E ≥ ⌈ h V / 2 ⌉ h_E \ge\lceil h_V/2 \rceil h E ≥ ⌈ h V /2 ⌉ and thus h V ≤ 2 h E h_V \le2h_E h V ≤ 2 h E . □ \square □
Another natural graph representation of a CNF formula is the unsigned incidence graph , a graph that contains a vertex for each clause and each variable, but does not distinguish between positive and negative occurrences of variables in clauses. Formally, we define such graphs as follows.
Definition 3.4 (Unsigned Incidence Graphs). Let φ = ( V a r , C l a u s e s ) \varphi= (\mathrm{Var}, \mathrm{Clauses}) φ = ( Var , Clauses ) be a CNF formula. The unsigned incidence graph G φ u n s i g n = ( C l a u s e s ∪ V a r , E ) G_{\varphi}^{\mathrm{unsign}} = (\mathrm{Clauses} \cup\mathrm{Var}, E) G φ unsign = ( Clauses ∪ Var , E ) contains for each x ∈ V a r x \in\mathrm{Var} x ∈ Var and C ∈ C l a u s e s C \in\mathrm{Clauses} C ∈ Clauses , the edge { x , C } \{x,C\} { x , C } if and only if x ∈ C x \in C x ∈ C or x ‾ ∈ C \overline{x} \in C x ∈ C .
The maximum height of any semi-ladder in the unsigned incidence graph of a formula φ \varphi φ gives us insight into the maximum height of any semi-ladder in its signed incidence graph. The relation is not as tight as the correspondence established above—in fact, it is exponential—but still suffices to conclude that every graph whose maximum signed semi-ladder height is bounded by a constant also has a constantly bounded unsigned semi-ladder height (see Figure 1 ).
Lemma 3.5. Let φ \varphi φ be a CNF formula. Let h u h_u h u be the maximum height of a semi-ladder in G φ u n s i g n G_{\varphi}^{\mathrm{unsign}} G φ unsign and h s h_s h s be the maximum height of a semi-ladder in G φ s i g n V G_{\varphi}^{\mathrm{signV}} G φ signV . Then, h u ≤ 4 h s + 2 h_u \le4^{h_s} + 2 h u ≤ 4 h s + 2 .
Proof. Consider a semi-ladder of maximum height h u h_u h u in G φ u n s i g n G_{\varphi}^{\mathrm{unsign}} G φ unsign . If h u ≤ 3 h_u \le3 h u ≤ 3 , then the statement holds trivially since h s ≥ 0 h_s \ge0 h s ≥ 0 . Moreover, note that in G φ u n s i g n G_{\varphi}^{\mathrm{unsign}} G φ unsign , no literal vertices (here variable vertices) are adjacent to each other and neither are clause vertices. Therefore, if h u ≥ 3 h_u \ge3 h u ≥ 3 , then G φ u n s i g n G_{\varphi}^{\mathrm{unsign}} G φ unsign contains a proper semi-ladder a 1 , … , a h u p , b 1 , … , b h u p a_1,\ldots,a_{h_u^p},b_1,\ldots,b_{h_u^p} a 1 , … , a h u p , b 1 , … , b h u p of height h u p h_u^p h u p where h u − 2 ≤ h u p ≤ h u h_u - 2 \le h_u^p \le h_u h u − 2 ≤ h u p ≤ h u . Now, for each pair i < j i < j i < j let p ( i , j ) ∈ { + , − } p(i,j) \in\{+,-\} p ( i , j ) ∈ { + , − } be the polarity with which variable a i a_i a i occurs in clause b j b_j b j (pick either one if both occur). This induces a two-coloring of the pairs of { 1 , … , h u p } \{1,\ldots,h_u^p\} { 1 , … , h u p } . By Ramsey’s theorem, there exists a subset of indices I = { i 1 < ⋯ < i m } I = \{i_1 < \cdots< i_m\} I = { i 1 < ⋯ < i m } with m ≥ 1 2 log 2 h u p m \ge\frac{1}{2}\log_2 h_u^p m ≥ 2 1 log 2 h u p and a color c ∈ { + , − } c \in\{+,-\} c ∈ { + , − } , such that p ( i s , i t ) = c p(i_s,i_t) = c p ( i s , i t ) = c for all s < t s < t s < t . From this, we can build a signed semi-ladder a 1 ′ , … , a m ′ , b 1 ′ , … , b m ′ a'_1,\ldots,a'_m,b'_1,\ldots,b'_m a 1 ′ , … , a m ′ , b 1 ′ , … , b m ′ of height m m m as follows: For each t ∈ [ m ] t \in[m] t ∈ [ m ] , let a t ′ a'_t a t ′ be the literal of a i t a_{i_t} a i t of polarity c c c and let b t ′ = b i t b'_t = b_{i_t} b t ′ = b i t . This sequence is indeed a semi-ladder because (1) if { a i t , b i t } \{a_{i_t},b_{i_t}\} { a i t , b i t } is a non-edge in the unsigned graph this means that neither literal of a i t a_{i_t} a i t appears in the clause b i t b_{i_t} b i t , hence there is no edge between a t ′ a'_t a t ′ and b t ′ b'_t b t ′ ; and (2) for s < t s < t s < t , we have that a s ′ a'_s a s ′ is adjacent to b t ′ b'_t b t ′ because a i s a_{i_s} a i s occurs in b i t b_{i_t} b i t with polarity c = p ( a s ′ ) c = p(a'_s) c = p ( a s ′ ) .
We have thus shown that every proper unsigned semi-ladder of height h u p h_u^p h u p yields a signed one of height m ≥ 1 2 log 2 h u p m \ge\frac{1}{2}\log_2 h_u^p m ≥ 2 1 log 2 h u p . Consequently, recalling that φ \varphi φ has maximum signed semi-ladder height h s h_s h s and that h u − 2 ≤ h u p h_u - 2 \le h_u^p h u − 2 ≤ h u p , we can bound the maximum unsigned semi-ladder height by h u ≤ h u p + 2 ≤ 4 h s + 2 h_u \le h_u^p + 2 \le4^{h_s} + 2 h u ≤ h u p + 2 ≤ 4 h s + 2 .
In Section 5, we complement the tractability of finding weak backdoors on semi-ladder-free graphs by a lower bound that rules out a similar result for ladder-free graphs. There we will make use of the following notion.
Ladders. A ladder of height h h h in a graph G G G is a sequence of vertices a 1 , … , a h , b 1 , … , b h a_1,\ldots,a_h,b_1,\ldots,b_h a 1 , … , a h , b 1 , … , b h such that for all i , j ∈ [ h ] i,j \in[h] i , j ∈ [ h ] we have { a i , b j } ∈ E ( G ) \{a_i,b_j\} \in E(G) { a i , b j } ∈ E ( G ) if and only if j ≥ i j \ge i j ≥ i . For d ∈ N d \in\mathbb{N} d ∈ N , we say that G G G is L d L_d L d -free if it contains no ladder of height at least d d d .
Backdoors. We now formally define the notion of weak backdoors for SAT.
Definition 3.6 (Weak Backdoor to Treewidth t t t ). Let φ = ( V a r , C l a u s e s ) \varphi= (\mathrm{Var},\mathrm{Clauses}) φ = ( Var , Clauses ) be a CNF formula. A set X ⊆ V a r X \subseteq\mathrm{Var} X ⊆ Var is a weak backdoor of φ \varphi φ to treewidth t t t if there exists an assignment α : X → { 0 , 1 } \alpha: X \to\{0,1\} α : X → { 0 , 1 } such that φ [ α ] \varphi[\alpha] φ [ α ] is satisfiable and the unsigned incidence graph of φ [ α ] \varphi[\alpha] φ [ α ] has treewidth at most t t t . Note that only satisfiable formulas admit weak backdoors. Since weak backdoors come with a specific assignment, we will also refer to them as sets of literals, where each variable in X X X is set in the polarity that is satisfied by α \alpha α . The size of a weak backdoor is the number of variables (equivalently, literals) it contains. A weak ( k , t ) (k,t) ( k , t ) -backdoor is a weak backdoor of size at most k k k to treewidth at most t t t .
In Section 4, we will mostly work on the following auxiliary problem, which allows us to make progress towards finding backdoors. We here state it in terms of a decision problem on colored graphs, See Figure 7 . Its last condition is based on the following notion, which measures, for each of k k k given vertex sets, the largest proper semi-ladder supported by that set.
Figure 7. A CNF formula φ \varphi φ and the graph G G G in a corresponding instance ( k , s , t , G ) (k,s,t,G) ( k , s , t , G ) of Ext-WB-TW. Initially, every literal vertex lies in each of the candidate sets P 1 , … , P k P_1,\ldots,P_k P 1 , … , P k (and holds the respective colors).
Definition 3.7 (SL-pattern). Let G G G be a graph in which every vertex is marked as a literal or a clause vertex, and let P 1 , … , P k ⊆ V ( G ) P_1,\ldots,P_k \subseteq V(G) P 1 , … , P k ⊆ V ( G ) . For each i ∈ [ k ] i \in[k] i ∈ [ k ] , let s i s_i s i be the maximum height of a proper semi-ladder in G G G whose literal vertices all lie in P i P_i P i . Then ( s 1 , … , s k ) (s_1,\ldots,s_k) ( s 1 , … , s k ) is the SL-pattern of G G G with respect to P 1 , … , P k P_1,\ldots,P_k P 1 , … , P k , and we refer to ∑ i ∈ [ k ] s i \sum_{i\in[k]}s_i ∑ i ∈ [ k ] s i as the SL-pattern size.
Definition 3.8 (Extension Weak Backdoor to Bounded Treewidth (Ext-WB-TW)). For k , s , t ∈ N k,s,t \in\mathbb{N} k , s , t ∈ N and a vertex- and edge-colored graph G G G , the tuple I = ( k , s , t , G ) I=(k,s,t,G) I = ( k , s , t , G ) is a well-formed instance of Ext-WB-TW (and G G G is well-formed) if
(W1) every vertex of G G G is colored as a literal vertex or as a clause vertex, but not both;
(W2) every edge of G G G is colored either as an incidence edge, joining a literal vertex to a clause vertex, or as an opposite-literal edge, joining two literal vertices;
(W3) the opposite-literal edges form a perfect matching on the literal vertices—intuitively each pair represents the two opposing literals of some variable;
(W4) literal vertices may carry at most k k k more colors indicating membership in some (backdoor) candidate sets P 1 , … , P k P_1,\ldots,P_k P 1 , … , P k ; for every i ∈ [ k ] i \in[k] i ∈ [ k ] the set P i P_i P i is non-empty and P i ⊈ N G ( C ) P_i \nsubseteq N_G(C) P i ⊈ N G ( C ) for every clause vertex C C C , that is, some literal vertex of P i P_i P i is not an incidence-neighbor of C C C ; and
(W5) the SL-pattern size of G G G with respect to P 1 , … , P k P_1,\ldots,P_k P 1 , … , P k is at most s s s .
A well-formed instance I = ( k , s , t , G ) I=(k,s,t,G) I = ( k , s , t , G ) of Ext-WB-TW is a yes-instance if there is an ordered set X = { ℓ 1 , … , ℓ k } X=\{\ell_1,\ldots,\ell_k\} X = { ℓ 1 , … , ℓ k } of literal vertices (a solution) with ℓ i ∈ P i \ell_i \in P_i ℓ i ∈ P i for each i ∈ [ k ] i \in[k] i ∈ [ k ] that satisfies three properties:
non-conflicting: there is no opposite-literal edge joining two solution vertices ℓ i , ℓ j \ell_i,\ell_j ℓ i , ℓ j ;
bounded treewidth: deleting N G [ X ] N_G[X] N G [ X ] from G G G and then contracting all opposite-literal edges yields a graph of treewidth at most t t t ; and
domination: there is a set of literal vertices in G − N G [ X ] G-N_G[X] G − N G [ X ] that pairwise do not share any opposite-literal edges and which dominate all clause vertices in G − N G [ X ] G-N_G[X] G − N G [ X ] .
Non-well-formed instances are never yes-instances by any X X X , even if X X X satisfies the above three criteria.
The bounded treewidth property intuitively corresponds to having a set of literal vertices such that the residual SAT formula for this partial assignment has small treewidth. The domination property expresses that this partial assignment can be extended to a full satisfying assignment. The combination of these yields the property of being a small weak backdoor to bounded treewidth.
Crucially, we show that finding a weak ( k , t ) (k,t) ( k , t ) -backdoor for a CNF formula φ \varphi φ is equivalent to solving a certain Ext-WB-TW instance where all sets P i P_i P i contain all literal vertices.
The following observation relates the target treewidth t t t in the bounded treewidth property of yes-instances to the treewidth of G − N G [ X ] G-N_G[X] G − N G [ X ] (without edge contraction).
Observation 3.9. Let X X X be a solution to a yes-instance ( k , s , t , G ) (k,s,t,G) ( k , s , t , G ) of Ext-WB-TW. Then G − N G [ X ] G-N_G[X] G − N G [ X ] and G − N G ( X ) G-N_G(X) G − N G ( X ) have treewidth at most 2 t + 1 2t+1 2 t + 1 each.
Proof. By definition, the contracted residual graph obtained by contracting edges of opposing literals in G − N G [ X ] G-N_G[X] G − N G [ X ] has treewidth at most t t t . Consider a witness tree decomposition of width t t t and replace in every bag each contracted vertex by the two endpoints of its matching edge. This is a valid tree decomposition of G − N G [ X ] G-N_G[X] G − N G [ X ] : every vertex and every edge is covered (a matching edge { v , v ˉ } \{v,\bar{v}\} { v , v ˉ } by any bag holding its contracted vertex, and every other edge because the contracted vertices of its endpoints share a bag), and the bags containing any fixed vertex still form a subtree. Previously, all bags had size at most t + 1 t+1 t + 1 , so now they have size at most 2 ( t + 1 ) = 2 t + 2 2(t+1)=2t+2 2 ( t + 1 ) = 2 t + 2 . Thus the treewidth of G − N G [ X ] G-N_G[X] G − N G [ X ] is at most 2 t + 1 2t+1 2 t + 1 . Since G − N G ( X ) G-N_G(X) G − N G ( X ) is obtained from G − N G [ X ] G-N_G[X] G − N G [ X ] by adding the now isolated vertices of X X X , G − N G ( X ) G-N_G(X) G − N G ( X ) has treewidth at most 2 t + 1 2t+1 2 t + 1 as well (note that vertices in X X X are pairwise non-adjacent as they are non-conflicting). □ \square □
Weak Backdoors to Treewidth for Semi-Ladder-free SAT
The goal of this section is to establish our main algorithmic result Theorem 1.1: for every SAT instance whose signed incidence graph is S L d SL_d S L d -free, we can decide whether a weak ( k , t ) (k,t) ( k , t ) -backdoor exists—and, in the positive case, exploit it to solve SAT—in linear time.
At the core of our algorithm lies a recursive procedure formalized in the following theorem:
Theorem 4.1 (Main Technical Theorem). There is an algorithm A \mathcal{A} A that takes as input a well-formed instance I = ( k , s , t , G ) I=(k,s,t,G) I = ( k , s , t , G ) of Ext-WB-TW, where k ≥ 1 k \ge1 k ≥ 1 and G G G has n n n vertices and m m m edges. A \mathcal{A} A runs in time O k , s , t ( n + m ) O_{k,s,t}(n+m) O k , s , t ( n + m ) and outputs q ≤ q ( k , s , t ) q \le q(k,s,t) q ≤ q ( k , s , t ) many well-formed instances I 1 , … , I q I_1,\ldots,I_q I 1 , … , I q of Ext-WB-TW
I i = ( k , s − 1 , t , G i ) I_i=(k,s-1,t,G_i) I i = ( k , s − 1 , t , G i ) or I i = ( k − 1 , s , t , G i ) I_i=(k-1,s,t,G_i) I i = ( k − 1 , s , t , G i ) for some labeled graph G i G_i G i for all i ∈ [ q ] i\in[q] i ∈ [ q ] ;
I I I is a yes-instance if and only if there is at least one i ∈ [ q ] i\in[q] i ∈ [ q ] such that I i I_i I i is a yes-instance; and
given a solution to I i I_i I i for some i ∈ [ q ] i\in[q] i ∈ [ q ] , one can derive a solution to I I I in O k , s , t ( n ) O_{k,s,t}(n) O k , s , t ( n ) time.
Towards this, we first establish the three modules (reducer, extractor, and progressor) and combine them to prove Theorem 4.1, which is then used to establish our main Theorem 1.1.
Lemma 4.2 (Reducer). There exist ρ = ρ ( k , s , t ) ∈ ( 0 , 1 ) \rho=\rho(k,s,t)\in(0,1) ρ = ρ ( k , s , t ) ∈ ( 0 , 1 ) and an algorithm R \mathcal{R} R which takes as input a well-formed instance I = ( k , s , t , G ) I=(k,s,t,G) I = ( k , s , t , G ) of Ext-WB-TW, where G G G has n n n vertices and m m m edges. R \mathcal{R} R runs in time O k , s , t ( n + m ) O_{k,s,t}(n+m) O k , s , t ( n + m ) and outputs a well-formed instance I ′ = ( k , s , t , G ′ ) I'=(k,s,t,G') I ′ = ( k , s , t , G ′ ) of Ext-WB-TW such that
I I I is a yes-instance if and only if I ′ I' I ′ is a yes-instance;
given a solution to I ′ I' I ′ , one can compute a solution to I I I in time O k , s , t ( n ) O_{k,s,t}(n) O k , s , t ( n ) ; and
I ′ I' I ′ is ready for extraction: for every solution X X X to I ′ I' I ′ (if there is any), N G ′ ( X ) N_{G'}(X) N G ′ ( X ) is a ρ \rho ρ -cover in G ′ G' G ′ .
Lemma 4.3 (Extractor). There is an algorithm E \mathcal{E} E which takes as input a well-formed instance I = ( k , s , t , G ) I=(k,s,t,G) I = ( k , s , t , G ) of Ext-WB-TW with k ≥ 1 k\ge1 k ≥ 1 , where G G G has n n n vertices and m m m edges, and some 0 < ρ < 1 0<\rho<1 0 < ρ < 1 such that for every solution X X X to I I I , the set N G ( X ) N_G(X) N G ( X ) is a ρ \rho ρ -cover in G G G . E \mathcal{E} E runs in time ( 2 k ρ ) O ( t 2 ) ⋅ ∣ G ∣ \left(\frac{2k}{\rho}\right)^{O(t^2)}\cdot|G| ( ρ 2 k ) O ( t 2 ) ⋅ ∣ G ∣ and outputs a set V ′ ⊆ V ( G ) V'\subseteq V(G) V ′ ⊆ V ( G ) such that
if I I I is a yes-instance witnessed by a solution X X X then N G [ X ] ∩ V ′ ≠ ∅ N_G[X]\cap V'\ne\emptyset N G [ X ] ∩ V ′ = ∅ , and
∣ V ′ ∣ ≤ ( 2 k ρ ) O ( t ) |V'|\le\left(\frac{2k}{\rho}\right)^{O(t)} ∣ V ′ ∣ ≤ ( ρ 2 k ) O ( t ) .
Lemma 4.4 (Progressor). There is an algorithm P \mathcal{P} P which takes as input a well-formed instance I = ( k , s , t , G ) I=(k,s,t,G) I = ( k , s , t , G ) of Ext-WB-TW, where G G G has n n n vertices and m m m edges, and a vertex v v v of G G G . P \mathcal{P} P runs in time O ( k 2 ( n + m ) ) O(k^2(n+m)) O ( k 2 ( n + m )) and outputs a set I = { I 1 , … , I q } \mathcal{I}=\{I_1,\ldots,I_q\} I = { I 1 , … , I q } of q ≤ 2 k q\le2k q ≤ 2 k well-formed instances of Ext-WB-TW such that
I i ′ = ( k − 1 , s , t , G i ′ ) I_{i'}=(k-1,s,t,G_{i'}) I i ′ = ( k − 1 , s , t , G i ′ ) or I i ′ = ( k , s − 1 , t , G i ′ ) I_{i'}=(k,s-1,t,G_{i'}) I i ′ = ( k , s − 1 , t , G i ′ ) for some labeled graph G i ′ G_{i'} G i ′ for all i ′ ∈ [ q ] i'\in[q] i ′ ∈ [ q ] ;
I I I is a yes-instance via a solution X X X with v ∈ N G [ X ] v\in N_G[X] v ∈ N G [ X ] if and only if I \mathcal{I} I contains a yes-instance;
given a solution X X X to an instance I ′ ∈ I I'\in\mathcal{I} I ′ ∈ I one can derive a solution to I I I in O ( n ) O(n) O ( n ) time.
In the following sub-sections, we prove Lemmas 4.2, 4.3 and 4.4 and then use them to first establish Theorem 4.1 and finally prove Theorem 1.1.
The Reducer
Our reducer (Lemma 4.2) turns a well-formed instance I = ( k , s , t , G ) I=(k,s,t,G) I = ( k , s , t , G ) into an equivalent one whose every solution X X X is “sample-able” in the sense that N G ( X ) N_G(X) N G ( X ) covers a good fraction of all edge-endpoints of G G G ; this is the ρ \rho ρ -cover property the extractor will consume in the next subsection. We obtain it by following the strategy of [17 Theorem 3] 8 : A protrusion replacer is an algorithm to obtain an equivalent instance where a subgraph with a certain structure, a protrusion , is replaced by a subgraph of fixed size. We will prove the existence of such an algorithm in Section 4.1.1; for now, assume it is given as a black box.
Using this black box algorithm, we describe a reducer in Section 4.1.2, which follows [17 ] closely. The key observation is that if many vertices of G G G lie in large disjoint protrusions, we can replace them all in a single linear-time round (Lemma 4.2) and shrink the whole instance by a constant fraction (depending on k k k , s s s , and t t t ). We iterate this round until no such collection of protrusions remains. At that fixed point, a structural argument about G G G (via Lemmas 6 and 7 in [17 ] ) shows that the neighborhood N G ( X ) N_G(X) N G ( X ) of every weak backdoor X X X must comprise a constant fraction of the vertices of G G G —intuitively, a small N G ( X ) N_G(X) N G ( X ) would leave the bulk of G G G packed into large protrusions, contradicting termination. A short degree-counting argument then converts this lower bound on ∣ N G ( X ) ∣ |N_G(X)| ∣ N G ( X ) ∣ into the desired ρ \rho ρ -cover.
The Protrusion Replacer
Boundaried Graphs and Protrusions. We use the standard boundaried-graph vocabulary for protrusion replacement; see [4 Section 2.2 and Definition 2.17] and [5 ] 9 . An r r r -boundaried graph is a triple G = ( G , ∂ G , λ ) G=(G,\partial G,\lambda) G = ( G , ∂ G , λ ) where G G G is a vertex- and edge-colored graph, ∂ G ⊆ V ( G ) \partial G\subseteq V(G) ∂ G ⊆ V ( G ) has size at most r r r , and λ : ∂ G → [ r ] \lambda:\partial G\to[r] λ : ∂ G → [ r ] is an injective labeling. We lift standard graph notation to boundaried graphs as usual. In particular, let G [ X ] : = ( G [ X ] , ∂ G , λ ) G[X] := (G[X], \partial G, \lambda) G [ X ] := ( G [ X ] , ∂ G , λ ) whenever ∂ G ⊆ X \partial G \subseteq X ∂ G ⊆ X . Two r r r -boundaried graphs are compatible if their labelings induce an isomorphism between their boundary graphs G 1 [ ∂ G 1 ] \mathbf{G}_1[\partial G_1] G 1 [ ∂ G 1 ] and G 2 [ ∂ G 2 ] \mathbf{G}_2[\partial G_2] G 2 [ ∂ G 2 ] that respects vertex- and edge colors. The glue G 1 ⊕ G 2 \mathbf{G}_1 \oplus\mathbf{G}_2 G 1 ⊕ G 2 of two r r r -boundaried compatible graphs G 1 \mathbf{G}_1 G 1 and G 2 \mathbf{G}_2 G 2 is the r r r -boundaried graph obtained from their disjoint union by identifying equally labeled boundary vertices and retaining that common labeled boundary. Compatibility makes the colors and edges among the identified vertices well-defined. Forgetting the boundary of an r r r -boundaried graph G = ( G , ∂ G , λ ) \mathbf{G} = (G, \partial G, \lambda) G = ( G , ∂ G , λ ) yields its underlying plain graph plain ( G ) : = G \operatorname{plain}(\mathbf{G}) := G plain ( G ) := G .
Definition 4.5 (r r r -protrusion). Let G G G be a well-formed vertex- and edge-colored graph and let r ∈ N r \in\mathbb{N} r ∈ N . A set Y ⊆ V ( G ) Y \subseteq V(G) Y ⊆ V ( G ) is an r r r -protrusion of G G G if ∣ ∂ G ( Y ) ∣ ≤ r |\partial_G(Y)| \le r ∣ ∂ G ( Y ) ∣ ≤ r , where ∂ G ( Y ) = { v ∈ Y : ( N G ( v ) ∖ Y ) ≠ ∅ } \partial_G(Y) = \{v \in Y : (N_G(v) \setminus Y) \ne\varnothing\} ∂ G ( Y ) = { v ∈ Y : ( N G ( v ) ∖ Y ) = ∅ } , and tw ( G [ Y ] ) ≤ r \operatorname{tw}(G[Y]) \le r tw ( G [ Y ]) ≤ r .
Definition 4.6 (Canonical equivalence). Fix k , s , t ∈ N k,s,t \in\mathbb{N} k , s , t ∈ N . We say two boundaried graphs G 1 , G 2 \mathbf{G}_1,\mathbf{G}_2 G 1 , G 2 are canonically equivalent (written G 1 ≡ k , s , t G 2 \mathbf{G}_1 \equiv_{k,s,t} \mathbf{G}_2 G 1 ≡ k , s , t G 2 ) if they are compatible and, for every boundaried H \mathbf{H} H compatible with both, plain ( G 1 ⊕ H ) \operatorname{plain}(\mathbf{G}_1 \oplus\mathbf{H}) plain ( G 1 ⊕ H ) is well-formed if and only if plain ( G 2 ⊕ H ) \operatorname{plain}(\mathbf{G}_2 \oplus\mathbf{H}) plain ( G 2 ⊕ H ) is, and whenever both are, it holds that
( k , s , t , plain ( G 1 ⊕ H ) ) is a yes-instance of Ext-WB-TW ⟺ (k,s,t,\operatorname{plain}(\mathbf{G}_1 \oplus\mathbf{H}))\text{ is a yes-instance of Ext-WB-TW} \Longleftrightarrow ( k , s , t , plain ( G 1 ⊕ H )) is a yes-instance of Ext-WB-TW ⟺
( k , s , t , plain ( G 2 ⊕ H ) ) is a yes-instance of Ext-WB-TW . (k,s,t,\operatorname{plain}(\mathbf{G}_2 \oplus\mathbf{H}))\text{ is a yes-instance of Ext-WB-TW}. ( k , s , t , plain ( G 2 ⊕ H )) is a yes-instance of Ext-WB-TW .
The relation ≡ k , s , t \equiv_{k,s,t} ≡ k , s , t is clearly an equivalence relation. The following lemma shows that this equivalence relation has finite index in a constructive sense: every boundaried graph of bounded treewidth can be replaced, in linear time, by a bounded-size representative of its class, from which solutions can moreover be lifted back to the original.
Lemma 4.7 (Finite index). There is a computable function f : N 4 → N f : \mathbb{N}^{4} \to\mathbb{N} f : N 4 → N such that for every k , r , s , t ∈ N k,r,s,t \in\mathbb{N} k , r , s , t ∈ N and every r r r -boundaried graph G \mathbf{G} G of treewidth at most r r r , one can compute in time f ( k , r , s , t ) ⋅ ∣ G ∣ f(k,r,s,t) \cdot|\mathbf{G}| f ( k , r , s , t ) ⋅ ∣ G ∣ a representative rep ( G ) \operatorname{rep}(\mathbf{G}) rep ( G ) with the following properties.
( R 1 ) (R1) ( R 1 ) (Small and equivalent) rep ( G ) \operatorname{rep}(\mathbf{G}) rep ( G ) has size at most f ( k , r , s , t ) f(k,r,s,t) f ( k , r , s , t ) and satisfies rep ( G ) ≡ k , s , t G \operatorname{rep}(\mathbf{G}) \equiv_{k,s,t} \mathbf{G} rep ( G ) ≡ k , s , t G .
( R 2 ) (R2) ( R 2 ) (Solution-respecting) For every boundaried graph H \mathbf{H} H that is compatible with G \mathbf{G} G and every solution W W W of ( k , s , t , plain ( rep ( G ) ⊕ H ) ) (k,s,t,\operatorname{plain}(\operatorname{rep}(\mathbf{G}) \oplus\mathbf{H})) ( k , s , t , plain ( rep ( G ) ⊕ H )) , one can compute in time f ( k , r , s , t ) ⋅ ∣ G ∣ f(k,r,s,t) \cdot|\mathbf{G}| f ( k , r , s , t ) ⋅ ∣ G ∣ a solution W ′ W' W ′ of ( k , s , t , plain ( G ⊕ H ) ) (k,s,t,\operatorname{plain}(\mathbf{G} \oplus\mathbf{H})) ( k , s , t , plain ( G ⊕ H )) .
Proof. Throughout, we work over the fixed finite signature consisting of the two vertex colors (literal and clause ), the unary predicates P 1 , … , P k P_1,\ldots,P_k P 1 , … , P k , the two edge predicates (incidence and opposite-literal ), and 2 r + 1 2r+1 2 r + 1 unary predicates for boundary labels. An r r r -boundaried graph uses only the first r r r of these predicates; the remaining predicates are used for the bags of the tree decomposition below.
The only problem-specific ingredients are two M S O 2 \mathrm{MSO}_2 MSO 2 sentences ξ \xi ξ and ϕ \phi ϕ . For an introduction to M S O 2 \mathrm{MSO}_2 MSO 2 , we refer to [7 ] and [8 Chapter 7.4.1] . We claim that, for every plain graph J J J ,
J ⊨ ξ ⟺ J is well-formed , J \models\xi\Longleftrightarrow J\text{ is well-formed}, J ⊨ ξ ⟺ J is well-formed ,
J ⊨ ϕ ⟺ J is a well-formed yes-instance of Ext-WB-TW . J \models\phi\Longleftrightarrow J\text{ is a well-formed yes-instance of Ext-WB-TW}. J ⊨ ϕ ⟺ J is a well-formed yes-instance of Ext-WB-TW .
To define ξ \xi ξ , observe that in Definition 3.8 , conditions (W1) and (W2) are first-order constraints on the colors10 and edges, (W3) says that every literal vertex is incident to exactly one opposite-literal edge, and (W4) essentially says that each P i P_i P i is non-empty and that every clause vertex misses some P i P_i P i -vertex. For (W5), a proper semi-ladder of any fixed height h h h is a fixed finite configuration. Hence, the statement that there is a semi-ladder that has its entire literal side in P i P_i P i is first-order expressible. Since s s s and k k k are fixed, the condition ∑ i ∈ [ k ] s i ≤ s \sum_{i\in[k]} s_i \le s ∑ i ∈ [ k ] s i ≤ s for the S L SL S L -pattern ( s 1 , … , s k ) (s_1,\ldots,s_k) ( s 1 , … , s k ) can be expressed by forbidding, for every tuple of non-negative integers ( h 1 , … , h k ) (h_1,\ldots,h_k) ( h 1 , … , h k ) with ∑ i h i = s + 1 \sum_i h_i=s+1 ∑ i h i = s + 1 , the simultaneous existence of proper semi-ladders of heights h 1 , … , h k h_1,\ldots,h_k h 1 , … , h k whose literal sides lie in P 1 , … , P k P_1,\ldots,P_k P 1 , … , P k , respectively; a height-zero requirement is vacuous. Thus, ξ \xi ξ exists.
To define ϕ \phi ϕ , let ψ ( X ) \psi(X) ψ ( X ) be the M S O 2 \mathrm{MSO}_2 MSO 2 formula with one free vertex-set variable X X X that asserts that X X X consists of a valid selection of non-conflicting literals from the sets P i P_i P i , and states that the contracted residual graph ( J − N J [ X ] ) c (J-N_J[X])^c ( J − N J [ X ] ) c , obtained by contracting all opposite-literal edges in J − N J [ X ] J-N_J[X] J − N J [ X ] , has treewidth at most t t t and is satisfiable. For fixed t t t , the property “treewidth at most t t t ” is M S O 2 \mathrm{MSO}_2 MSO 2 -expressible and satisfiability is expressed by the existence of a set S S S of literal vertices that contains no opposite-literal edge and in which every clause vertex has an incidence-neighbor. Moreover, the contracted residual graph is M S O 2 \mathrm{MSO}_2 MSO 2 -interpretable from X X X .11 We then set
ϕ : = ξ ∧ ∃ X ψ ( X ) . \phi:= \xi\land\exists X\ \psi(X). ϕ := ξ ∧ ∃ X ψ ( X ) .
With ξ \xi ξ and ϕ \phi ϕ in hand, the lemma readily follows from the finite-state and protrusion-replacement machinery for CMSO-definable properties of boundaried graphs developed by Bodlaender, Fomin, Lokshtanov, Penninkx, Saurabh, and Thilikos [4 ] . Since Ext-WB-TW is a decision problem, we need only the finite-state property of that framework; the finite-integer-index refinement used there for optimization problems is not required.
For completeness, we briefly summarize the key ideas of [4 ] . Let q q q be the maximum of the quantifier ranks of ξ \xi ξ and ϕ \phi ϕ . The q q q -type of a graph G \mathbf{G} G , denoted q q q -type(G \mathbf{G} G ), is the set of M S O 2 \mathrm{MSO}_2 MSO 2 sentences of quantifier rank at most q q q that hold in it. Up to logical equivalence, there are only finitely many such sentences over the fixed signature. Hence the number of q q q -types is bounded by a computable function of k , r , s , t k,r,s,t k , r , s , t . We rely on a Feferman–Vaught-style compositionality theorem for M S O 2 \mathrm{MSO}_2 MSO 2 on boundaried graphs: the q q q -type of a glue A ⊕ B \mathbf{A}\oplus\mathbf{B} A ⊕ B is determined by the q q q -types of A \mathbf{A} A and B \mathbf{B} B [13 , 29 ] . We apply it three times.
First, every boundary vertex has a unique unary predicate, and w.l.o.g. q ≥ 2 q\ge2 q ≥ 2 . Therefore, the q q q -type determines the labeled boundary graph. Thus, two boundaried graphs of equal q q q -type are compatible. When they are glued to any compatible context H \mathbf{H} H , compositionality yields glues of equal q q q -type, whose plain graphs therefore agree on ξ \xi ξ and ϕ \phi ϕ . Hence equal q q q -type implies canonical equivalence. In particular, the number of q q q -types bounds the number of canonical equivalence classes.
Second, take a rooted tree decomposition for G − ∂ G G-\partial G G − ∂ G of width at most r r r , add ∂ G \partial G ∂ G to every bag, and convert the result into a nice tree decomposition for G G G . The resulting decomposition has width at most 2 r 2r 2 r , and its root contains ∂ G \partial G ∂ G . For each bag, consider the boundaried graph consisting of the bag together with all vertices introduced in the subtree rooted at that bag, using the bag as the boundary. Its q q q -type can be computed bottom-up using Courcelle-style arguments. Whenever the same q q q -type occurs twice on a root-to-leaf path, replace the larger rooted subgraph by the smaller one having the same q q q -type. Compositionality ensures that this replacement leaves the q q q -type of the whole graph unchanged. Since the original boundary ∂ G \partial G ∂ G is retained throughout the construction, the resulting representative is compatible with G \mathbf{G} G . Repeating this operation yields a graph of the same q q q -type whose size (number of edges plus number of vertices) is bounded by a computable function of k , r , s , t k,r,s,t k , r , s , t : a nice tree decomposition has bounded branching, and after the replacements its depth is bounded by the number of possible q q q -types. Computing the bag q q q -types and performing the replacements takes time f ( k , r , s , t ) ⋅ ∣ G ∣ f(k,r,s,t)\cdot|\mathbf{G}| f ( k , r , s , t ) ⋅ ∣ G ∣ by Courcelle’s Theorem [7 ] . Together with the first application, this proves (R1).
For the third application, we transfer witnesses to establish (R2). Since ∃ X ψ ( X ) \exists X\ \psi(X) ∃ X ψ ( X ) is a subformula of ϕ \phi ϕ , the quantifier rank of ψ \psi ψ is at most qr ( ϕ ) − 1 ≤ q − 1 \operatorname{qr}(\phi)-1\le q-1 qr ( ϕ ) − 1 ≤ q − 1 . For a graph G \mathbf{G} G and a set S ⊆ V ( G ) S\subseteq V(\mathbf{G}) S ⊆ V ( G ) , denote by q q q -type( G , S ) (\mathbf{G},S) ( G , S ) the q q q -type of the structure obtained by expanding G \mathbf{G} G with a fresh unary relation interpreted as S S S . The Feferman–Vaught-style compositionality theorem extends to this enriched signature [13 , 29 ] : for compatible boundaried graphs A , B \mathbf{A},\mathbf{B} A , B and any U ⊆ V ( A ⊕ B ) U\subseteq V(\mathbf{A}\oplus\mathbf{B}) U ⊆ V ( A ⊕ B ) , the labeled type q q q -type( A ⊕ B , U ) (\mathbf{A}\oplus\mathbf{B},U) ( A ⊕ B , U ) is determined by q q q -type( A , U ∩ V ( A ) ) (\mathbf{A},U\cap V(\mathbf{A})) ( A , U ∩ V ( A )) and q q q -type( B , U ∩ V ( B ) ) (\mathbf{B},U\cap V(\mathbf{B})) ( B , U ∩ V ( B )) .
Now let W ⊆ V ( plain ( rep ( G ) ⊕ H ) ) W\subseteq V(\operatorname{plain}(\operatorname{rep}(\mathbf{G})\oplus\mathbf{H})) W ⊆ V ( plain ( rep ( G ) ⊕ H )) be a solution, and set W R : = W ∩ V ( rep ( G ) ) W_R:=W\cap V(\operatorname{rep}(\mathbf{G})) W R := W ∩ V ( rep ( G )) and W H : = W ∩ V ( H ) W_H:=W\cap V(\mathbf{H}) W H := W ∩ V ( H ) . Let τ : = ( q − 1 ) \tau:=(q-1) τ := ( q − 1 ) -type( rep ( G ) , W R ) (\operatorname{rep}(\mathbf{G}),W_R) ( rep ( G ) , W R ) . Let ρ \rho ρ be the finite set of (normalized) M S O 2 \mathrm{MSO}_2 MSO 2 sentences of quantifier rank at most q − 1 q-1 q − 1 over the extended signature, and define
ψ τ ( X ) : = ⋀ σ ∈ ρ ∩ τ σ ∧ ⋀ σ ∈ ρ ∖ τ ¬ σ . \psi_\tau(X):=\bigwedge_{\sigma\in\rho\cap\tau}\sigma\ \land\ \bigwedge_{\sigma\in\rho\setminus\tau}\neg\sigma. ψ τ ( X ) := σ ∈ ρ ∩ τ ⋀ σ ∧ σ ∈ ρ ∖ τ ⋀ ¬ σ .
where the additional unary relation is viewed as the free set variable X X X . By construction, G ⊨ ψ τ ( S ) \mathbf{G}\models\psi_\tau(S) G ⊨ ψ τ ( S ) if and only if ( q − 1 ) (q-1) ( q − 1 ) -type( G , S ) = τ (\mathbf{G},S)=\tau ( G , S ) = τ , and the realizability sentence ∃ X ψ τ ( X ) \exists X\ \psi_\tau(X) ∃ X ψ τ ( X ) has quantifier rank at most q q q . Since rep ( G ) ⊨ ∃ X ψ τ ( X ) \operatorname{rep}(\mathbf{G})\models\exists X\ \psi_\tau(X) rep ( G ) ⊨ ∃ X ψ τ ( X ) , witnessed by W R W_R W R , and rep ( G ) \operatorname{rep}(\mathbf{G}) rep ( G ) and G \mathbf{G} G have the same q q q -type, we also have G ⊨ ∃ X ψ τ ( X ) \mathbf{G}\models\exists X\ \psi_\tau(X) G ⊨ ∃ X ψ τ ( X ) . The constructive variant of Courcelle’s Theorem due to Arnborg, Lagergren, and Seese [1 ] , applied to the boundaried graph G \mathbf{G} G of treewidth at most r r r , therefore produces a set W G ⊆ V ( G ) W_G\subseteq V(\mathbf{G}) W G ⊆ V ( G ) with ( q − 1 ) (q-1) ( q − 1 ) -type( G , W G ) = τ (\mathbf{G},W_G)=\tau ( G , W G ) = τ in time f ( k , r , s , t ) ⋅ ∣ G ∣ f(k,r,s,t)\cdot|\mathbf{G}| f ( k , r , s , t ) ⋅ ∣ G ∣ .
Because each boundary label has its own unary predicate, the type τ \tau τ determines which boundary vertices belong to the distinguished set. Hence W G W_G W G and W R W_R W R agree on equally labeled boundary vertices, and W G W_G W G can be combined consistently with W H W_H W H . Define W ′ : = W G ∪ W H ⊆ V ( G ⊕ H ) W':=W_G\cup W_H\subseteq V(\mathbf{G}\oplus\mathbf{H}) W ′ := W G ∪ W H ⊆ V ( G ⊕ H ) . By labeled compositionality, we have that
( q − 1 ) -type ( G ⊕ H , W ′ ) = ( q − 1 ) -type ( rep ( G ) ⊕ H , W ) . (q-1)\text{-type}(\mathbf{G}\oplus\mathbf{H},W')=(q-1)\text{-type}(\operatorname{rep}(\mathbf{G})\oplus\mathbf{H},W). ( q − 1 ) -type ( G ⊕ H , W ′ ) = ( q − 1 ) -type ( rep ( G ) ⊕ H , W ) .
The right-hand side satisfies ψ \psi ψ , which has rank at most q − 1 q-1 q − 1 , because W W W is a solution. Therefore, the left-hand side also satisfies ψ \psi ψ . Thus, W ′ W' W ′ is a solution, proving (R2).
Replacing a single protrusion by its representative is a local, in-place modification of the graph; we record it in the following lemma.
Lemma 4.8 (Protrusion replacement). There is an algorithm that takes as input an instance I = ( k , s , t , G ) I=(k,s,t,\mathbf{G}) I = ( k , s , t , G ) of E x t \mathrm{Ext} Ext -WB-TW and an r r r -protrusion Y Y Y of G \mathbf{G} G with ∣ Y ∣ ≥ f ( k , r , s , t ) + 1 = : r ′ |Y|\ge f(k,r,s,t)+1=:r' ∣ Y ∣ ≥ f ( k , r , s , t ) + 1 =: r ′ , where f f f is the function from Lemma 4.7. In O ( r ′ ⋅ ( r 2 + r ∣ Y ∣ ) ) \mathcal{O}(r'\cdot(r^2+r|Y|)) O ( r ′ ⋅ ( r 2 + r ∣ Y ∣ )) time, the algorithm modifies I I I in place into an instance I ′ = ( k , s , t , G ′ ) I'=(k,s,t,\mathbf{G}') I ′ = ( k , s , t , G ′ ) with ∣ V ( G ′ ) ∣ < ∣ V ( G ) ∣ |V(\mathbf{G}')|<|V(\mathbf{G})| ∣ V ( G ′ ) ∣ < ∣ V ( G ) ∣ such that G ′ \mathbf{G}' G ′ is well-formed if and only if G \mathbf{G} G is and I I I is a yes-instance if and only if I ′ I' I ′ is. Moreover, given any solution of I ′ I' I ′ , a solution of I I I can be computed in O ( r ′ ⋅ ( r 2 + r ∣ Y ∣ ) ) \mathcal{O}(r'\cdot(r^2+r|Y|)) O ( r ′ ⋅ ( r 2 + r ∣ Y ∣ )) time.
Proof. Recall that we assumed that our graph encoding supports adjacency tests as well as the addition (deletion, respectively) of an edge (vertex, resp.) in O ( 1 ) \mathcal{O}(1) O ( 1 ) time each, as well as identifying N G ( v ) N_{\mathbf{G}}(v) N G ( v ) from a vertex v v v in O ( ∣ N G ( v ) ∣ ) \mathcal{O}(|N_{\mathbf{G}}(v)|) O ( ∣ N G ( v ) ∣ ) time. We first assemble the boundaried graph G Y = ( G [ Y ] , ∂ G ( Y ) , λ ) \mathbf{G}_Y=(\mathbf{G}[Y],\partial_{\mathbf{G}}(Y),\lambda) G Y = ( G [ Y ] , ∂ G ( Y ) , λ ) , where λ : ∂ G ( Y ) → [ r ] \lambda: \partial_G(Y) \to[r] λ : ∂ G ( Y ) → [ r ] is an arbitrary injective labeling. Since Y Y Y is an r r r -protrusion, ∣ ∂ G ( Y ) ∣ ≤ r |\partial_G(Y)| \le r ∣ ∂ G ( Y ) ∣ ≤ r and G [ Y ] G[Y] G [ Y ] has at most O ( r 2 ) O(r^2) O ( r 2 ) edges in the boundary and O ( r ∣ Y ∣ ) O(r|Y|) O ( r ∣ Y ∣ ) edges incident to at least one non-boundary vertex. Since non-boundary vertices have no neighbors outside Y Y Y in G G G , the latter edges can be identified in O ( r ∣ Y ∣ ) O(r|Y|) O ( r ∣ Y ∣ ) time. The edges between boundary vertices are found by O ( r 2 ) O(r^2) O ( r 2 ) adjacency tests. Hence G Y G_Y G Y is assembled in O ( r 2 + r ∣ Y ∣ ) O(r^2 + r|Y|) O ( r 2 + r ∣ Y ∣ ) time.
By (R1) of Lemma 4.7 we compute the representative rep ( G Y ) \operatorname{rep}(G_Y) rep ( G Y ) , which satisfies G Y ≡ k , s , t rep ( G Y ) G_Y \equiv_{k,s,t} \operatorname{rep}(G_Y) G Y ≡ k , s , t rep ( G Y ) and ∣ rep ( G Y ) ∣ < r ′ |\operatorname{rep}(G_Y)| < r' ∣ rep ( G Y ) ∣ < r ′ , in time r ′ ⋅ ∣ G Y ∣ = O ( r ′ ⋅ ( r 2 + r ∣ Y ∣ ) ) r' \cdot|G_Y| = O(r' \cdot(r^2 + r|Y|)) r ′ ⋅ ∣ G Y ∣ = O ( r ′ ⋅ ( r 2 + r ∣ Y ∣ )) . We then update G G G to G ′ G' G ′ in place: delete the interior Y ∖ ∂ G ( Y ) Y \setminus\partial_G(Y) Y ∖ ∂ G ( Y ) together with its incident edges (in O ( r ∣ Y ∣ ) O(r|Y|) O ( r ∣ Y ∣ ) time), and insert the interior of rep ( G Y ) \operatorname{rep}(G_Y) rep ( G Y ) , attaching it to the retained boundary ∂ G ( Y ) \partial_G(Y) ∂ G ( Y ) (in O ( r ′ ) O(r') O ( r ′ ) time).
The size guarantee and solution lifting follow immediately from Lemma 4.7, using ∣ G Y ∣ ≤ ( r 2 + r ∣ Y ∣ ) |G_Y| \le(r^2 + r|Y|) ∣ G Y ∣ ≤ ( r 2 + r ∣ Y ∣ ) . The preservation of well-formedness as well as outputting a yes-instance if and only if I I I is a yes-instance is due to the canonical equivalence. □ \square □
Constructing the Reducer
While Lemma 4.8 handles replacing a single protrusion, our reducer module (Lemma 4.2) replaces many protrusions per round, using the lemma as a black box. Such a round shrinks the instance size when the current graph admits a certain structure, namely an ( α , β ) (\alpha,\beta) ( α , β ) -protrusion decomposition as used by [17 ] and originally introduced by [4 ] .
Definition 4.9 (( α , β ) ( \alpha,\beta) ( α , β ) -protrusion decomposition). Let α , β ∈ N \alpha,\beta\in\mathbb{N} α , β ∈ N . An ( α , β ) (\alpha,\beta) ( α , β ) -protrusion decomposition of a graph G G G is a partition V ( G ) = R 0 ⊎ R 1 ⊎ ⋯ ⊎ R q V(G) = R_0 \uplus R_1 \uplus\cdots\uplus R_q V ( G ) = R 0 ⊎ R 1 ⊎ ⋯ ⊎ R q of its vertex set such that
∣ R 0 ∣ + q ≤ α |R_0| + q \le\alpha ∣ R 0 ∣ + q ≤ α ;
for every i ∈ [ q ] i \in[q] i ∈ [ q ] , N G ( R i ) ⊆ R 0 N_G(R_i) \subseteq R_0 N G ( R i ) ⊆ R 0 and ∣ N G ( R i ) ∣ ≤ β |N_G(R_i)| \le\beta ∣ N G ( R i ) ∣ ≤ β ;
for every i ∈ [ q ] i \in[q] i ∈ [ q ] , R i ∪ N G ( R i ) R_i \cup N_G(R_i) R i ∪ N G ( R i ) is a β \beta β -protrusion of G G G with boundary N G ( R i ) N_G(R_i) N G ( R i ) .
Intuitively, such a decomposition describes a set of disjoint β \beta β -protrusions in the graph, where α \alpha α bounds the number of protrusions and the size of the graph not covered by protrusions.
A small α \alpha α relative to ∣ V ( G ) ∣ |V(G)| ∣ V ( G ) ∣ thus means that the bulk of G G G is packed into protrusions, which is precisely the regime in which the protrusion replacer of Lemma 4.8 can be applied to a large fraction of G G G in a single linear-time round.
We now show how multiple protrusions can be replaced in a single linear-time round. This is the Linear Time Protrusion Replacement Theorem (Theorem 3 in [17 ] ), instantiated for Ext-WB-TW; where we tighten the running time guarantee to O ( n ) O(n) O ( n ) rather than the O ( n + m ) O(n+m) O ( n + m ) stated by [17 ] . This improvement is what makes the iterated reducer linear: across the rounds the number of vertices shrinks by a constant factor but the number of edges need not, so an O ( n + m ) O(n+m) O ( n + m ) per-round cost would not sum to linear (cf. the running-time analysis in the proof of Lemma 4.2); for [17 ] this did not matter, since there m ∈ O ( n ) m \in O(n) m ∈ O ( n ) .
Lemma 4.10 (One-round protrusion replacement; cf. [17 Theorem 3] ). *There is an algorithm that takes as input an instance I = ( k , s , t , G ) I = (k,s,t,G) I = ( k , s , t , G ) of Ext-WB-TW, where G G G has n n n vertices. In O k , s , t ( n ) O_{k,s,t}(n) O k , s , t ( n ) time, the algorithm computes an instance I ′ = ( k , s , t , G ′ ) I' = (k,s,t,G') I ′ = ( k , s , t , G ′ ) in place such that ∣ V ( G ′ ) ∣ ≤ n |V(G')| \le n ∣ V ( G ′ ) ∣ ≤ n , G ′ G' G ′ is well-formed if and only if G G G is and I ′ I' I ′ is a yes-instance if and only if I I I is. Moreover, given a solution to I ′ I' I ′ , a solution to I I I can be recovered in O k , s , t ( n ) O_{k,s,t}(n) O k , s , t ( n ) time. If G G G admits an ( α , β ) (\alpha,\beta) ( α , β ) -protrusion decomposition with β ≤ 4 t + 4 \beta\le4t + 4 β ≤ 4 t + 4 and α ≤ n 244 ( r 2 r ′ ) \alpha\le\frac{n}{244(r^2r')} α ≤ 244 ( r 2 r ′ ) n for r = 12 t + 15 r = 12t + 15 r = 12 t + 15 and r ′ r' r ′ as in Lemma 4.8 , then ∣ V ( G ′ ) ∣ ≤ ( 1 − δ ) n |V(G')| \le(1-\delta)n ∣ V ( G ′ ) ∣ ≤ ( 1 − δ ) n for some δ = δ ( k , s , t ) ∈ ( 0 , 1 ) \delta= \delta(k,s,t) \in(0,1) δ = δ ( k , s , t ) ∈ ( 0 , 1 ) .
Proof. This is the algorithm of Theorem 3 of [17 ] applied to our problem using the protrusion replacer of Lemma 4.8 —compute a large protrusion cover with the linear-time algorithm of [17 Lemma 16] and replace each of its protrusions. Since each single replacement preserves well-formedness (Lemma 4.8 ), so does their composition; hence G ′ G' G ′ is well-formed if and only if G G G is. Below, we comment on some changes we made to that statement apart from applying it to our problem: we fixed some constants, added the recovery of solutions, and decreased the running time to be linear in n n n instead of n + m n+m n + m .
Setting Constants. We instantiate the algorithm of [17 ] with r = 12 t + 15 r = 12t + 15 r = 12 t + 15 , and r ′ r' r ′ as in Lemma 4.8 , and we let their variable s s s —not to be confused with our s s s —take value r ′ ⋅ 2 r r' \cdot2^r r ′ ⋅ 2 r . Their requirement r ≥ 3 ( β + 1 ) r \ge3(\beta+ 1) r ≥ 3 ( β + 1 ) is equivalently expressed by β ≤ 4 t + 4 \beta\le4t + 4 β ≤ 4 t + 4 .
Reconstruction of solutions. While this is not explicitly stated in [17 ] , the authors rely on solution recovery as well. It follows by observing that the protrusions can be replaced one after another, using Lemma 4.8 , in any order. Indeed, replacing a protrusion Y Y Y deletes only the interior of Y Y Y —these vertices are exclusive to Y Y Y , since the protrusions computed by the algorithm overlap only on their boundaries, if at all—and it retains Y Y Y ’s labeled boundary together with the edges among boundary vertices. Hence, for any other protrusion Y ^ \widehat{Y} Y , no vertex of Y ^ \widehat{Y} Y is deleted and the subgraph induced on Y ^ \widehat{Y} Y is unchanged, so Y ^ \widehat{Y} Y remains an r r r -protrusion of size at least r ′ r' r ′ and Lemma 4.8 still applies to it. Tracing back the resulting solutions in a last-in-first-out manner and at each step invoking the solution-recovery property of Lemma 4.8 allows us to derive a solution to I I I from a solution to I ′ I' I ′ . We replace a set Y \mathcal{Y} Y of protrusions and the recovery step takes time O ( r ′ ( r 2 + r ∣ Y ∣ ) ) O(r'(r^2+r|Y|)) O ( r ′ ( r 2 + r ∣ Y ∣ )) for each Y ∈ Y Y \in\mathcal{Y} Y ∈ Y . As the protrusions pairwise overlap in at most r r r vertices (the boundary), we have
∑ Y ∈ Y r ′ ( r 2 + r ∣ Y ∣ ) ≤ r ′ r 2 n + r ′ r ⋅ ∑ Y ∈ Y ( r + 1 ) ∣ Y ′ ∣ = O ( r ′ 2 r 2 n ) , \sum_{Y \in\mathcal{Y}} r'(r^2+r|Y|) \le r'r^2n+r'r\cdot\sum_{Y \in\mathcal{Y}}(r+1)|Y'| = O(r'^2r^2n), Y ∈ Y ∑ r ′ ( r 2 + r ∣ Y ∣ ) ≤ r ′ r 2 n + r ′ r ⋅ Y ∈ Y ∑ ( r + 1 ) ∣ Y ′ ∣ = O ( r ′2 r 2 n ) ,
where Y ′ ⊆ Y Y' \subseteq Y Y ′ ⊆ Y is the set of vertices which appear exclusively in Y Y Y .
Tighter time bound. The authors of [17 ] bound the running time of their algorithm by O r ′ , r ( n + m ) O_{r',r}(n+m) O r ′ , r ( n + m ) . We analyze their algorithm more carefully, tightening the running time to O r ′ , r ( n ) = O k , s , t ( n ) O_{r',r}(n)=O_{k,s,t}(n) O r ′ , r ( n ) = O k , s , t ( n ) . Note that [17 Lemma 16] returns a set of O ( n ) O(n) O ( n ) protrusions that only overlap in the boundaries and which are then sequentially replaced using Lemma 4.8 , with each protrusion Y Y Y taking O ( r ′ ⋅ ( r 2 + r ∣ Y ∣ ) ) O(r' \cdot(r^2+r|Y|)) O ( r ′ ⋅ ( r 2 + r ∣ Y ∣ )) time. Since there are O ( n ) O(n) O ( n ) protrusions and, by the same argument as above, ∑ Y ∈ Y ∣ Y ∣ ≤ ( r + 1 ) n \sum_{Y\in\mathcal{Y}}|Y| \le(r+1)n ∑ Y ∈ Y ∣ Y ∣ ≤ ( r + 1 ) n , this latter step of replacing all protrusions takes O ( r 2 ⋅ r ′ ⋅ n ) O(r^2\cdot r'\cdot n) O ( r 2 ⋅ r ′ ⋅ n ) time. It remains to examine the time required by [17 Lemma 16] more closely. We do not restate the arguments of correctness or even the intuition of this proof, but simply list their steps and argue that each is feasible in O r , r ′ ( n ) O_{r,r'}(n) O r , r ′ ( n ) time.
For some constant s ′ s' s ′ depending only on r r r and r ′ r' r ′ , the authors of [17 ] first compute for every vertex v v v a set S v S_v S v that contains all S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) such that we have v ∈ S v \in S v ∈ S , ∣ S ∣ ≤ 6 s ′ |S| \le6s' ∣ S ∣ ≤ 6 s ′ , ∣ N G ( S ) ∣ ≤ r |N_G(S)| \le r ∣ N G ( S ) ∣ ≤ r , and G [ S ] G[S] G [ S ] is connected. They explicitly state this takes O r , r ′ ( n ) O_{r,r'}(n) O r , r ′ ( n ) time in total (independently on whether m ∈ O r , r ′ ( n ) m \in O_{r,r'}(n) m ∈ O r , r ′ ( n ) or larger). This is due to the fact that no such set S S S contains vertices of degree larger than 6 s ′ + r 6s' + r 6 s ′ + r , hence, all high degree vertices can be ignored. Identifying whether the degree of a vertex exceeds some constant is possible in constant time. They remark that ∣ S v ∣ = O r , r ′ ( 1 ) |S_v| = O_{r,r'}(1) ∣ S v ∣ = O r , r ′ ( 1 ) for every vertex v v v .
(2) Next, for every vertex v v v , all sets S ∈ S v S \in\mathcal{S}_v S ∈ S v for which the treewidth exceeds some constant value are discarded. As is argued in [17 ] , this can be tested in O r , r ′ ( 1 ) \mathcal{O}_{r,r'}(1) O r , r ′ ( 1 ) time per set and thus takes O r , r ′ ( n ) \mathcal{O}_{r,r'}(n) O r , r ′ ( n ) time in total.
(3) As a next step, the authors group all sets in ⋃ v ∈ V ( G ) S v \bigcup_{v\in V(G)} \mathcal{S}_v ⋃ v ∈ V ( G ) S v according to their neighborhood, which can be done in O r , r ′ ( n ) \mathcal{O}_{r,r'}(n) O r , r ′ ( n ) time as they argue themselves. This can be achieved by r r r passes of bucket sort over the vertex identifiers; to keep the cost at O r , r ′ ( n ) \mathcal{O}_{r,r'}(n) O r , r ′ ( n ) even when these identifiers do not form the range [ n ] [n] [ n ] (as happens when the graph has been locally modified previously), we clear the buckets lazily, touching only the O r , r ′ ( n ) \mathcal{O}_{r,r'}(n) O r , r ′ ( n ) buckets actually used rather than reinitializing the whole array. This yields a partition X 1 , … , X q \mathcal{X}_1,\ldots,\mathcal{X}_q X 1 , … , X q into non-empty sets, so q ≤ ∑ v ∈ V ( G ) ∣ S v ∣ ≤ n ⋅ O r , r ′ ( 1 ) = O r , r ′ ( n ) q \leq\sum_{v\in V(G)} |\mathcal{S}_v| \leq n \cdot\mathcal{O}_{r,r'}(1) = \mathcal{O}_{r,r'}(n) q ≤ ∑ v ∈ V ( G ) ∣ S v ∣ ≤ n ⋅ O r , r ′ ( 1 ) = O r , r ′ ( n ) .
(4) Then they form sets Y 1 , … , Y q \mathcal{Y}_1,\ldots,\mathcal{Y}_q Y 1 , … , Y q by, for each X i \mathcal{X}_i X i , greedily extracting disjoint subsets of certain sizes. Since each set S S S is touched at most once, this takes O r , r ′ ( q + n ) = O r , r ′ ( n ) \mathcal{O}_{r,r'}(q+n) = \mathcal{O}_{r,r'}(n) O r , r ′ ( q + n ) = O r , r ′ ( n ) time.
(5) From this, they construct a graph H H H with vertex set { Y 1 , … , Y q } \{\mathcal{Y}_1,\ldots,\mathcal{Y}_q\} { Y 1 , … , Y q } , where Y i \mathcal{Y}_i Y i and Y j \mathcal{Y}_j Y j with i ≠ j i \ne j i = j share an edge if and only if there are Y i ∈ Y i Y_i \in\mathcal{Y}_i Y i ∈ Y i and Y j ∈ Y j Y_j \in\mathcal{Y}_j Y j ∈ Y j such that Y i ∩ Y j ≠ ∅ Y_i \cap Y_j \ne\emptyset Y i ∩ Y j = ∅ or there is an edge in G G G between Y i Y_i Y i and Y j Y_j Y j . Assume Y i ∩ Y j = ∅ Y_i \cap Y_j = \emptyset Y i ∩ Y j = ∅ , then the only case where there is an edge between Y i Y_i Y i and Y j Y_j Y j in G G G is if one set intersects the neighborhood of the other, N G ( Y i ) ∩ Y j ≠ ∅ N_G(Y_i) \cap Y_j \ne\emptyset N G ( Y i ) ∩ Y j = ∅ or conversely N G ( Y j ) ∩ Y i ≠ ∅ N_G(Y_j) \cap Y_i \ne\emptyset N G ( Y j ) ∩ Y i = ∅ . Thus, Y i \mathcal{Y}_i Y i and Y j \mathcal{Y}_j Y j share an edge if and only if there are Y i ∈ Y i Y_i \in\mathcal{Y}_i Y i ∈ Y i and Y j ∈ Y j Y_j \in\mathcal{Y}_j Y j ∈ Y j such that N G [ Y i ] ∩ Y j ≠ ∅ N_G[Y_i] \cap Y_j \ne\emptyset N G [ Y i ] ∩ Y j = ∅ . By construction (the third and fourth step), each collection Y i \mathcal{Y}_i Y i is a sub-collection of one of the neighborhood classes of S : = ⋃ v ∈ V ( G ) S v \mathcal{S} := \bigcup_{v\in V(G)} \mathcal{S}_v S := ⋃ v ∈ V ( G ) S v , so every member Y i ∈ Y i Y_i \in\mathcal{Y}_i Y i ∈ Y i is one of the sets listed in the first step. Moreover, the only condition defining S v \mathcal{S}_v S v that refers to v v v is v ∈ S v \in S v ∈ S , while the remaining conditions (∣ S ∣ ≤ 6 s ′ |S| \leq6s' ∣ S ∣ ≤ 6 s ′ , ∣ N G ( S ) ∣ ≤ r |N_G(S)| \leq r ∣ N G ( S ) ∣ ≤ r , and G [ S ] G[S] G [ S ] connected) depend on S S S alone; hence Y i ∈ S v Y_i \in\mathcal{S}_v Y i ∈ S v for every v ∈ Y i v \in Y_i v ∈ Y i , and likewise Y j ∈ S w Y_j \in\mathcal{S}_w Y j ∈ S w for every w ∈ Y j w \in Y_j w ∈ Y j . We exploit this to construct H H H as follows. Iterate over every vertex v v v and every set S ∈ S v S \in\mathcal{S}_v S ∈ S v ; since ∣ N G [ S ] ∣ ≤ 6 s ′ + r |N_G[S]| \leq6s' + r ∣ N G [ S ] ∣ ≤ 6 s ′ + r and ∣ S w ∣ = O r , r ′ ( 1 ) |\mathcal{S}_w| = \mathcal{O}_{r,r'}(1) ∣ S w ∣ = O r , r ′ ( 1 ) for every vertex w w w , we can in time ( 6 s ′ + r ) ⋅ O r , r ′ ( 1 ) = O r , r ′ ( 1 ) (6s' + r) \cdot\mathcal{O}_{r,r'}(1) = \mathcal{O}_{r,r'}(1) ( 6 s ′ + r ) ⋅ O r , r ′ ( 1 ) = O r , r ′ ( 1 ) iterate over all vertices w ∈ N G [ S ] w \in N_G[S] w ∈ N G [ S ] and all sets S ′ ∈ S w S' \in\mathcal{S}_w S ′ ∈ S w . Whenever S S S and S ′ S' S ′ lie in distinct collections Y i \mathcal{Y}_i Y i and Y j \mathcal{Y}_j Y j , add the edge { Y i , Y j } \{\mathcal{Y}_i,\mathcal{Y}_j\} { Y i , Y j } to H H H (unless it is already present). This enumeration finds every edge of H H H : if Y i \mathcal{Y}_i Y i and Y j \mathcal{Y}_j Y j are adjacent, witnessed by Y i ∈ Y i Y_i \in\mathcal{Y}_i Y i ∈ Y i , Y j ∈ Y j Y_j \in\mathcal{Y}_j Y j ∈ Y j , and a vertex w ∈ N G [ Y i ] ∩ Y j w \in N_G[Y_i] \cap Y_j w ∈ N G [ Y i ] ∩ Y j , then choosing any v ∈ Y i v \in Y_i v ∈ Y i the outer loop enumerates S = Y i ∈ S v S = Y_i \in\mathcal{S}_v S = Y i ∈ S v , the inner loop reaches w ∈ N G [ S ] w \in N_G[S] w ∈ N G [ S ] , and there it enumerates S ′ = Y j ∈ S w S' = Y_j \in\mathcal{S}_w S ′ = Y j ∈ S w (using w ∈ Y j w \in Y_j w ∈ Y j ). Conversely, every pair produced this way satisfies N G [ S ] ∩ S ′ ≠ ∅ N_G[S] \cap S' \ne\emptyset N G [ S ] ∩ S ′ = ∅ and hence corresponds to a genuine edge. As there are O r , r ′ ( n ) \mathcal{O}_{r,r'}(n) O r , r ′ ( n ) choices of v v v , each handled in O r , r ′ ( 1 ) \mathcal{O}_{r,r'}(1) O r , r ′ ( 1 ) time, H H H can be constructed in O r , r ′ ( n ) \mathcal{O}_{r,r'}(n) O r , r ′ ( n ) time.
(6) Lastly, they compute a large independent set in H H H in O r , r ′ ( ∣ V ( H ) ∣ + ∣ E ( H ) ∣ ) = O r , r ′ ( q ) = O r , r ′ ( n ) \mathcal{O}_{r,r'}(|V(H)| + |E(H)|) = \mathcal{O}_{r,r'}(q) = \mathcal{O}_{r,r'}(n) O r , r ′ ( ∣ V ( H ) ∣ + ∣ E ( H ) ∣ ) = O r , r ′ ( q ) = O r , r ′ ( n ) time, noting that H H H has constant maximum degree for fixed r , r ′ r,r' r , r ′ . The output of [17 Lemma 16] are the sets corresponding to this independent set in H H H .
Since each of the six consecutive steps takes O r , r ′ ( n ) \mathcal{O}_{r,r'}(n) O r , r ′ ( n ) time, so does the entire algorithm. □
With Lemma 4.10 in hand, we are now ready to prove the main lemma of this subsection.
Lemma 4.2 (Reducer). There exist ρ = ρ ( k , s , t ) ∈ ( 0 , 1 ) \rho= \rho(k,s,t) \in(0,1) ρ = ρ ( k , s , t ) ∈ ( 0 , 1 ) and an algorithm R \mathcal{R} R which takes as input a well-formed instance I = ( k , s , t , G ) I = (k,s,t,G) I = ( k , s , t , G ) of \textsc{Ext-WB-TW} , where G G G has n n n vertices and m m m edges. R \mathcal{R} R runs in time O k , s , t ( n + m ) \mathcal{O}_{k,s,t}(n+m) O k , s , t ( n + m ) and outputs a well-formed instance I ′ = ( k , s , t , G ′ ) I' = (k,s,t,G') I ′ = ( k , s , t , G ′ ) of \textsc{Ext-WB-TW} such that
I I I is a yes-instance if and only if I ′ I' I ′ is a yes-instance;
given a solution to I ′ I' I ′ , one can compute a solution to I I I in time O k , s , t ( n ) \mathcal{O}_{k,s,t}(n) O k , s , t ( n ) ; and
Proof. Use r = 12 t + 15 r = 12t + 15 r = 12 t + 15 , r ′ r' r ′ , b = r ′ ⋅ 2 r b = r' \cdot2^r b = r ′ ⋅ 2 r , and δ \delta δ of Lemma 4.10 . Let Q Q Q denote a single round, that is, one application of Lemma 4.10 to the current graph G i G_i G i on n i = ∣ V ( G i ) ∣ n_i = |V(G_i)| n i = ∣ V ( G i ) ∣ vertices, which in time O k , s , t ( n i ) O_{k,s,t}(n_i) O k , s , t ( n i ) —independent of the number of edges—produces an equivalent graph G i + 1 G_{i+1} G i + 1 with n i + 1 : = ∣ V ( G i + 1 ) ∣ ≤ n i n_{i+1} := |V(G_{i+1})| \le n_i n i + 1 := ∣ V ( G i + 1 ) ∣ ≤ n i vertices. By Lemma 4.10 , if G i G_i G i admits an ( α , β ) (\alpha,\beta) ( α , β ) -protrusion decomposition with β ≤ 4 t + 4 \beta\le4t + 4 β ≤ 4 t + 4 and α ≤ n i / 244 b \alpha\le n_i/244b α ≤ n i /244 b , then n i + 1 ≤ ( 1 − δ ) n i n_{i+1} \le(1-\delta)n_i n i + 1 ≤ ( 1 − δ ) n i .
Set G 0 : = G G_0 := G G 0 := G and iterate rounds G i + 1 : = Q ( G i ) G_{i+1} := Q(G_i) G i + 1 := Q ( G i ) . Stop at the first index i ∗ i^* i ∗ at which the round failed to shrink, i.e., n i ∗ + 1 > ( 1 − δ ) n i ∗ n_{i^*+1} > (1-\delta)n_{i^*} n i ∗ + 1 > ( 1 − δ ) n i ∗ , and let G ′ : = G i ∗ G' := G_{i^*} G ′ := G i ∗ and I ′ : = ( k , s , t , G ′ ) I' := (k,s,t,G') I ′ := ( k , s , t , G ′ ) . The total time required is ∑ i ≤ i ∗ O k , s , t ( n i ) \sum_{i\le i^*} O_{k,s,t}(n_i) ∑ i ≤ i ∗ O k , s , t ( n i ) . Since n i + 1 ≤ ( 1 − δ ) n i n_{i+1} \le(1-\delta)n_i n i + 1 ≤ ( 1 − δ ) n i for all such i i i (except for i ∗ i^* i ∗ ), this forms a geometric series bounded by O k , s , t ( n 0 ) = O k , s , t ( n ) O_{k,s,t}(n_0) = O_{k,s,t}(n) O k , s , t ( n 0 ) = O k , s , t ( n ) .
By induction along the chain, I ′ I' I ′ is a yes-instance if and only if I I I is, and—by composing the per-round solution recovery of Lemma 4.10 —a solution of I ′ I' I ′ lifts to a solution of I I I in time ∑ i < i ∗ O k , s , t ( n i ) = O k , s , t ( n ) \sum_{i<i^*} O_{k,s,t}(n_i) = O_{k,s,t}(n) ∑ i < i ∗ O k , s , t ( n i ) = O k , s , t ( n ) . Each round also preserves well-formedness (Lemma 4.10 ), so since I I I is well-formed, so is I ′ I' I ′ . This establishes that I ′ I' I ′ is well-formed together with the first two statements of the lemma.
It remains to argue that the third condition is met as well. For this, let n ′ : = ∣ V ( G ′ ) ∣ n' := |V(G')| n ′ := ∣ V ( G ′ ) ∣ and let X X X be a solution to I ′ I' I ′ . By Observation 3.9 , G ′ − N G ′ [ X ] G' - N_{G'}[X] G ′ − N G ′ [ X ] has treewidth at most 2 t + 1 2t + 1 2 t + 1 . Then, feeding N G ′ ( X ) N_{G'}(X) N G ′ ( X ) , η = 2 t + 1 \eta= 2t + 1 η = 2 t + 1 , and a = ( 8 t + 8 ) r ′ / r > 1 a = (8t + 8)r'/r > 1 a = ( 8 t + 8 ) r ′ / r > 1 to Lemma 6 in [17 ] (which is based on [4 , 15 ] ) gives that at least one of the following holds:
(i) ∣ N G ′ [ N G ′ ( X ) ] ∣ ≤ n ′ / ( 244 a ) |N_{G'}[N_{G'}(X)]| \le n'/(244a) ∣ N G ′ [ N G ′ ( X )] ∣ ≤ n ′ / ( 244 a ) or (ii) N G ′ ( X ) N_{G'}(X) N G ′ ( X ) is a ρ \rho ρ -cover in G ′ G' G ′ for ρ = 1 488 a ( 2 t + 2 ) + 2 \rho= \frac{1}{488a(2t+2)+2} ρ = 488 a ( 2 t + 2 ) + 2 1 .
Towards a contradiction, assume that (i) is the case. Feeding N G ′ ( X ) N_{G'}(X) N G ′ ( X ) to Lemma 7 in [17 ] (which is based on [4 ] ) yields an ( α , β ) (\alpha,\beta) ( α , β ) -protrusion decomposition with α = ∣ N G ′ [ N G ′ ( X ) ] ∣ ⋅ 4 ( 2 t + 2 ) \alpha= |N_{G'}[N_{G'}(X)]| \cdot4(2t+2) α = ∣ N G ′ [ N G ′ ( X )] ∣ ⋅ 4 ( 2 t + 2 ) and β = 2 ( 2 t + 2 ) \beta= 2(2t+2) β = 2 ( 2 t + 2 ) . Since α ≤ n ′ / ( 244 a ) ⋅ ( 8 t + 8 ) = n ′ / ( 244 b ) \alpha\le n'/(244a) \cdot(8t+8) = n'/(244b) α ≤ n ′ / ( 244 a ) ⋅ ( 8 t + 8 ) = n ′ / ( 244 b ) and β = 4 t + 4 \beta= 4t+4 β = 4 t + 4 , the shrinking condition of Lemma 4.10 would be satisfied, so a further round Q Q Q applied to G ′ G' G ′ would have shrunk it—contradicting the stopping condition. Consequently, case (i) never occurs and N G ′ ( X ) N_{G'}(X) N G ′ ( X ) is a ρ \rho ρ -cover. □
The Extractor
The extractor is the second module that Theorem 4.1 relies on. It receives an instance I I I of Ext-WB-TW in which the neighborhood of every solution is a ρ \rho ρ -cover of the graph associated with I I I and aims at identifying a set of vertices such that, for any solution to I I I , at least one of these vertices lies in the solution or in its neighborhood.
For a single fixed solution X X X , the hitting property is easy to achieve by randomization: since N G ( X ) N_G(X) N G ( X ) is a ρ \rho ρ -cover, a uniformly random edge has an endpoint in N G ( X ) N_G(X) N G ( X ) with probability at least ρ \rho ρ , so collecting the endpoints of O ( ρ − 1 ) O(\rho^{-1}) O ( ρ − 1 ) random edges hits N G [ X ] N_G[X] N G [ X ] with constant probability. The more elaborate lemma below instead produces a single deterministic set that works for all solutions at once.
Lemma 4.3 (Extractor). There is an algorithm E \mathcal{E} E which takes as input a well-formed instance I = ( k , s , t , G ) I = (k,s,t,G) I = ( k , s , t , G ) of Ext-WB-TW with k ≥ 1 k \ge1 k ≥ 1 , where G G G has n n n vertices and m m m edges, and some 0 < ρ < 1 0 < \rho< 1 0 < ρ < 1 such that for every solution X X X to I I I , the set N G ( X ) N_G(X) N G ( X ) is a ρ \rho ρ -cover in G G G . E \mathcal{E} E runs in time ( 2 k ρ ) O ( t 2 ) ⋅ ∣ G ∣ \left(\frac{2k}{\rho}\right)^{O(t^2)} \cdot|G| ( ρ 2 k ) O ( t 2 ) ⋅ ∣ G ∣ and outputs a set V ′ ⊆ V ( G ) V' \subseteq V(G) V ′ ⊆ V ( G ) such that
if I I I is a yes-instance witnessed by a solution X X X then N G [ X ] ∩ V ′ ≠ ∅ N_G[X] \cap V' \ne\emptyset N G [ X ] ∩ V ′ = ∅ , and
∣ V ′ ∣ ≤ ( 2 k ρ ) O ( t ) |V'| \le\left(\frac{2k}{\rho}\right)^{O(t)} ∣ V ′ ∣ ≤ ( ρ 2 k ) O ( t ) .
Proof. Recall that V ( G ) V(G) V ( G ) is partitioned into a set C \mathcal{C} C of clause vertices and a set L \mathcal{L} L of literal vertices. Set α : = ρ k \alpha:= \frac{\rho}{k} α := k ρ , β : = ρ 2 ( 2 t + 1 ) k \beta:= \frac{\rho}{2(2t+1)k} β := 2 ( 2 t + 1 ) k ρ , and γ : = ∏ i = 0 2 t + 1 ( α − i β ) \gamma:= \prod_{i=0}^{2t+1}(\alpha-i\beta) γ := ∏ i = 0 2 t + 1 ( α − i β ) . Note that 0 < γ < 1 0 < \gamma< 1 0 < γ < 1 , since each factor lies in ( 0 , 1 ) (0,1) ( 0 , 1 ) . We define the following sets of vertices.
W : = { ℓ ∈ L : deg G ( ℓ ) ≥ α m } , Y : = { C ∈ C : deg G ( C ) ≥ β m } , W := \{\ell\in\mathcal{L} : \deg_G(\ell) \ge\alpha m\}, \qquad Y := \{C \in\mathcal{C} : \deg_G(C) \ge\beta m\}, W := { ℓ ∈ L : deg G ( ℓ ) ≥ α m } , Y := { C ∈ C : deg G ( C ) ≥ β m } ,
Z : = { v ∈ L ∖ N G ( Y ) : ∑ C ∈ N G ( v ) ∩ C deg G ( C ) ≥ α m } . Z := \{v \in\mathcal{L} \setminus N_G(Y) : \sum_{C \in N_G(v) \cap\mathcal{C}} \deg_G(C) \ge\alpha m\}. Z := { v ∈ L ∖ N G ( Y ) : C ∈ N G ( v ) ∩ C ∑ deg G ( C ) ≥ α m } .
We first show that V ′ = W ∪ Y ∪ Z V' = W \cup Y \cup Z V ′ = W ∪ Y ∪ Z is always a valid output apart from the size bound.
Claim 4.11. If X X X is a solution to I I I , then N G [ X ] ∩ ( W ∪ Y ∪ Z ) ≠ ∅ N_G[X] \cap(W \cup Y \cup Z) \ne\emptyset N G [ X ] ∩ ( W ∪ Y ∪ Z ) = ∅ .
Proof of Claim 4.11. Towards a contradiction, suppose that N G [ X ] ∩ ( W ∪ Y ∪ Z ) = ∅ N_G[X]\cap(W\cup Y\cup Z)=\emptyset N G [ X ] ∩ ( W ∪ Y ∪ Z ) = ∅ ; in particular N G ( X ) ∩ W = ∅ N_G(X) \cap W = \emptyset N G ( X ) ∩ W = ∅ , N G ( X ) ∩ Y = ∅ N_G(X) \cap Y = \emptyset N G ( X ) ∩ Y = ∅ , and X ∩ Z = ∅ X \cap Z = \emptyset X ∩ Z = ∅ . By (W2)–(W3), every literal vertex in G G G has exactly one literal neighbor, namely its opposite literal. Hence, the literal vertices in N G ( X ) N_G(X) N G ( X ) are exactly X ‾ : = { x ‾ : x ∈ X } \overline{X} := \{\overline{x} : x \in X\} X := { x : x ∈ X } , a set of at most k k k vertices, and N G ( X ) = X ‾ ∪ ( N G ( X ) ∩ C ) N_G(X) = \overline{X} \cup(N_G(X) \cap\mathcal{C}) N G ( X ) = X ∪ ( N G ( X ) ∩ C ) .
Since N G ( X ) ∩ W = ∅ N_G(X) \cap W = \emptyset N G ( X ) ∩ W = ∅ , each x ‾ \overline{x} x has deg G ( x ‾ ) < α m \deg_G(\overline{x}) < \alpha m deg G ( x ) < α m , so the opposite literals contribute
∑ x ‾ ∈ X ‾ deg G ( x ‾ ) < k α m = ρ m . \sum_{\overline{x} \in\overline{X}} \deg_G(\overline{x}) < k\alpha m = \rho m. x ∈ X ∑ deg G ( x ) < k α m = ρ m .
Moreover, since N G ( X ) ∩ Y = ∅ N_G(X) \cap Y = \emptyset N G ( X ) ∩ Y = ∅ , we have X ∩ N G ( Y ) = ∅ X \cap N_G(Y) = \emptyset X ∩ N G ( Y ) = ∅ , so every v ∈ X v \in X v ∈ X lies in L ∖ N G ( Y ) \mathcal{L} \setminus N_G(Y) L ∖ N G ( Y ) ; together with v ∉ Z v \notin Z v ∈ / Z (as X ∩ Z = ∅ X \cap Z = \emptyset X ∩ Z = ∅ ) this gives ∑ C ∈ N G ( v ) ∩ C deg G ( C ) < α m \sum_{C \in N_G(v) \cap\mathcal{C}} \deg_G(C) < \alpha m ∑ C ∈ N G ( v ) ∩ C deg G ( C ) < α m . Hence the clause neighbors contribute
∑ C ∈ N G ( X ) ∩ C deg G ( C ) ≤ ∑ v ∈ X ∑ C ∈ N G ( v ) ∩ C deg G ( C ) < k α m = ρ m . \sum_{C \in N_G(X) \cap\mathcal{C}} \deg_G(C) \le\sum_{v \in X}\sum_{C \in N_G(v) \cap\mathcal{C}} \deg_G(C) < k\alpha m = \rho m. C ∈ N G ( X ) ∩ C ∑ deg G ( C ) ≤ v ∈ X ∑ C ∈ N G ( v ) ∩ C ∑ deg G ( C ) < k α m = ρ m .
Adding the two bounds, we obtain ∑ v ∈ N G ( X ) deg G ( v ) < 2 ρ m = ρ ∑ v ∈ V ( G ) deg G ( v ) \sum_{v \in N_G(X)} \deg_G(v) < 2\rho m = \rho\sum_{v \in V(G)} \deg_G(v) ∑ v ∈ N G ( X ) deg G ( v ) < 2 ρ m = ρ ∑ v ∈ V ( G ) deg G ( v ) , contradicting the fact that N G ( X ) N_G(X) N G ( X ) is a ρ \rho ρ -cover. △ \triangle △
To handle the cases where the above is too large, we first bound the size of Y Y Y and W W W .
Claim 4.12. ∣ Y ∣ ≤ 2 ( 2 t + 1 ) k ρ |Y| \le\frac{2(2t+1)k}{\rho} ∣ Y ∣ ≤ ρ 2 ( 2 t + 1 ) k and ∣ W ∣ ≤ 2 k ρ |W| \le\frac{2k}{\rho} ∣ W ∣ ≤ ρ 2 k .
Proof of Claim 4.12. Since there are no edges between clause vertices, we have
∑ C ∈ C deg G ( C ) ≤ ∣ E ( G ) ∣ = m . \sum_{C \in\mathcal{C}} \deg_G(C) \le|E(G)| = m. C ∈ C ∑ deg G ( C ) ≤ ∣ E ( G ) ∣ = m .
If ∣ Y ∣ > 2 ( 2 t + 1 ) k ρ |Y| > \frac{2(2t+1)k}{\rho} ∣ Y ∣ > ρ 2 ( 2 t + 1 ) k , then ∑ C ∈ Y deg G ( C ) > 2 ( 2 t + 1 ) k ρ ⋅ ρ 2 ( 2 t + 1 ) k ⋅ m = m \sum_{C \in Y} \deg_G(C) > \frac{2(2t+1)k}{\rho} \cdot\frac{\rho}{2(2t+1)k} \cdot m = m ∑ C ∈ Y deg G ( C ) > ρ 2 ( 2 t + 1 ) k ⋅ 2 ( 2 t + 1 ) k ρ ⋅ m = m , a contradiction. Furthermore, since ∑ ℓ ∈ L deg G ( ℓ ) ≤ ∑ v ∈ V ( G ) deg G ( v ) = 2 m \sum_{\ell\in\mathcal{L}} \deg_G(\ell) \le\sum_{v \in V(G)} \deg_G(v) = 2m ∑ ℓ ∈ L deg G ( ℓ ) ≤ ∑ v ∈ V ( G ) deg G ( v ) = 2 m , at most 2 m α m = 2 k ρ \frac{2m}{\alpha m} = \frac{2k}{\rho} α m 2 m = ρ 2 k literal vertices have degree at least α m \alpha m α m , so ∣ W ∣ ≤ 2 k ρ |W| \le\frac{2k}{\rho} ∣ W ∣ ≤ ρ 2 k . △ \triangle △
By the previous claim, if W ∪ Y ∪ Z W \cup Y \cup Z W ∪ Y ∪ Z exceeds our size bound, it is due to Z Z Z being very large. The following claims show that in this regime, the graph contains a biclique, which we can find efficiently, and that any such biclique yields a valid output set as well. The case ∣ C ∖ Y ∣ < 2 t + 2 |\mathcal{C} \setminus Y| < 2t + 2 ∣ C ∖ Y ∣ < 2 t + 2 is handled separately below.
Claim 4.13. Suppose ∣ Z ∣ > ( 2 t + 2 ) / γ |Z| > (2t + 2)/\gamma ∣ Z ∣ > ( 2 t + 2 ) / γ and ∣ C ∖ Y ∣ ≥ 2 t + 2 |C \setminus Y| \ge2t + 2 ∣ C ∖ Y ∣ ≥ 2 t + 2 , and let Z ′ ⊆ Z Z' \subseteq Z Z ′ ⊆ Z be an arbitrary subset of size ⌊ ( 2 t + 2 ) / γ ⌋ + 1 \lfloor(2t + 2)/\gamma\rfloor+ 1 ⌊( 2 t + 2 ) / γ ⌋ + 1 (which exists since ∣ Z ∣ > ( 2 t + 2 ) / γ |Z| > (2t + 2)/\gamma ∣ Z ∣ > ( 2 t + 2 ) / γ ). Then G [ Z ′ ∪ N G ( Z ′ ) ] G[Z' \cup N_G(Z')] G [ Z ′ ∪ N G ( Z ′ )] contains a K 2 t + 2 , 2 t + 2 K_{2t+2,2t+2} K 2 t + 2 , 2 t + 2 (a complete bipartite graph on 4 t + 4 4t + 4 4 t + 4 vertices) as a subgraph, with one side contained in Z ′ ⊆ L Z' \subseteq\mathcal{L} Z ′ ⊆ L and the other in C ∖ Y C \setminus Y C ∖ Y .
Proof of Claim 4.13. Recall that for every literal vertex v ∈ Z v \in Z v ∈ Z we have ∑ C ∈ N G ( v ) ∩ C deg G ( C ) ≥ α m \sum_{C \in N_G(v) \cap C} \deg_G(C) \ge\alpha m ∑ C ∈ N G ( v ) ∩ C deg G ( C ) ≥ α m and, since v ∉ N G ( Y ) v \notin N_G(Y) v ∈ / N G ( Y ) , each clause neighbor C ∈ N G ( v ) ∩ C ⊆ C ∖ Y C \in N_G(v) \cap C \subseteq C \setminus Y C ∈ N G ( v ) ∩ C ⊆ C ∖ Y satisfies deg G ( C ) < β m \deg_G(C) < \beta m deg G ( C ) < β m .
Sample a set S S S of 2 t + 2 2t + 2 2 t + 2 distinct clause vertices from C ∖ Y C \setminus Y C ∖ Y , drawn one at a time without replacement, each clause with probability proportional to its degree.
Fix a literal x ∈ Z ′ x \in Z' x ∈ Z ′ and consider the probability that all 2 t + 2 2t + 2 2 t + 2 sampled clauses are neighbors of x x x . For each j ∈ { 0 , 1 , … , 2 t + 1 } j \in\{0,1,\ldots,2t+1\} j ∈ { 0 , 1 , … , 2 t + 1 } , condition on the first j j j draws being neighbors of x x x . These j j j removed clauses lie in C ∖ Y C \setminus Y C ∖ Y and so have total degree less than j β m j\beta m j β m , hence the remaining neighbors of x x x still carry mass at least α m − j β m \alpha m - j\beta m α m − j β m , while the normalizer—the total degree of the undrawn clauses of C ∖ Y C \setminus Y C ∖ Y —is at most ∑ C ∈ C deg G ( C ) ≤ m \sum_{C \in C} \deg_G(C) \le m ∑ C ∈ C deg G ( C ) ≤ m , as the incident edges account for at most m m m of the edges. Thus the ( j + 1 ) (j+1) ( j + 1 ) -th draw is a neighbor of x x x with probability at least α m − j β m m = α − j β \frac{\alpha m-j\beta m}{m} = \alpha- j\beta m α m − j β m = α − j β . Multiplying over j = 0 , 1 , … , 2 t + 1 j = 0,1,\ldots,2t+1 j = 0 , 1 , … , 2 t + 1 gives
Pr [ x is adjacent to every vertex of S ] ≥ α ( α − β ) ( α − 2 β ) ⋯ ( α − ( 2 t + 1 ) β ) = γ . \Pr[x\text{ is adjacent to every vertex of }S] \ge\alpha(\alpha-\beta)(\alpha-2\beta)\cdots(\alpha-(2t+1)\beta)=\gamma. Pr [ x is adjacent to every vertex of S ] ≥ α ( α − β ) ( α − 2 β ) ⋯ ( α − ( 2 t + 1 ) β ) = γ .
By linearity of expectation, the expected number of literals in Z ′ Z' Z ′ that are adjacent to every vertex of S S S is at least ∣ Z ′ ∣ ⋅ γ > 2 t + 2 γ ⋅ γ = 2 t + 2 |Z'| \cdot\gamma> \frac{2t+2}{\gamma}\cdot\gamma= 2t+2 ∣ Z ′ ∣ ⋅ γ > γ 2 t + 2 ⋅ γ = 2 t + 2 . As the maximum is at least the expectation, there is a choice of S S S for which at least 2 t + 2 2t+2 2 t + 2 literals of Z ′ Z' Z ′ are adjacent to every clause of S S S . These 2 t + 2 2t+2 2 t + 2 literals together with S S S form a K 2 t + 2 , 2 t + 2 K_{2t+2,2t+2} K 2 t + 2 , 2 t + 2 in G [ Z ′ ∪ N G ( Z ′ ) ] G[Z' \cup N_G(Z')] G [ Z ′ ∪ N G ( Z ′ )] . △ \triangle △
Claim 4.14. If ∣ Z ∣ > ( 2 t + 2 ) / γ |Z| > (2t + 2)/\gamma ∣ Z ∣ > ( 2 t + 2 ) / γ and ∣ C ∖ Y ∣ ≥ 2 t + 2 |C \setminus Y| \ge2t + 2 ∣ C ∖ Y ∣ ≥ 2 t + 2 , then one can find a K 2 t + 2 , 2 t + 2 K_{2t+2,2t+2} K 2 t + 2 , 2 t + 2 in G G G with one side in L \mathcal{L} L and the other in C C C in time ( 2 k ρ ) O ( t 2 ) ⋅ m \left(\frac{2k}{\rho}\right)^{O(t^2)} \cdot m ( ρ 2 k ) O ( t 2 ) ⋅ m .
Proof of Claim 4.14. Let Z ′ ⊆ Z Z' \subseteq Z Z ′ ⊆ Z be an arbitrary subset of Z Z Z of size ⌊ ( 2 t + 2 ) / γ ⌋ + 1 \lfloor(2t + 2)/\gamma\rfloor+ 1 ⌊( 2 t + 2 ) / γ ⌋ + 1 . From Claim 4.13, we know that G [ Z ′ ∪ N G ( Z ′ ) ] G[Z' \cup N_G(Z')] G [ Z ′ ∪ N G ( Z ′ )] contains a K 2 t + 2 , 2 t + 2 K_{2t+2,2t+2} K 2 t + 2 , 2 t + 2 . Thus a K 2 t + 2 , 2 t + 2 K_{2t+2,2t+2} K 2 t + 2 , 2 t + 2 can be found by brute-forcing over all choices of 2 t + 2 2t+2 2 t + 2 vertices from Z ′ Z' Z ′ in time O ( ( ∣ Z ′ ∣ 2 t + 2 ) ⋅ ( 2 t + 2 ) ⋅ m ) O\left(\binom{|Z'|}{2t+2}\cdot(2t+2)\cdot m\right) O ( ( 2 t + 2 ∣ Z ′ ∣ ) ⋅ ( 2 t + 2 ) ⋅ m ) . Since γ ≥ ( α − ( 2 t + 1 ) β ) 2 t + 2 = ( ρ 2 k ) 2 t + 2 \gamma\ge(\alpha-(2t+1)\beta)^{2t+2} = \left(\frac{\rho}{2k}\right)^{2t+2} γ ≥ ( α − ( 2 t + 1 ) β ) 2 t + 2 = ( 2 k ρ ) 2 t + 2 , we have ∣ Z ′ ∣ ≤ ( 2 t + 2 ) ( 2 k ρ ) 2 t + 2 + 1 = ( 2 k ρ ) O ( t 2 ) |Z'| \le(2t+2)\left(\frac{2k}{\rho}\right)^{2t+2}+1 = \left(\frac{2k}{\rho}\right)^{O(t^2)} ∣ Z ′ ∣ ≤ ( 2 t + 2 ) ( ρ 2 k ) 2 t + 2 + 1 = ( ρ 2 k ) O ( t 2 ) . Consequently, ( ∣ Z ′ ∣ 2 t + 2 ) ≤ ∣ Z ′ ∣ 2 t + 2 = ( 2 k ρ ) O ( t 2 ) \binom{|Z'|}{2t+2} \le|Z'|^{2t+2} = \left(\frac{2k}{\rho}\right)^{O(t^2)} ( 2 t + 2 ∣ Z ′ ∣ ) ≤ ∣ Z ′ ∣ 2 t + 2 = ( ρ 2 k ) O ( t 2 ) , which gives the claimed running time. △ \triangle △
Claim 4.15. Let ( A , B ) (A,B) ( A , B ) be a K 2 t + 2 , 2 t + 2 K_{2t+2,2t+2} K 2 t + 2 , 2 t + 2 in G G G with A ⊆ L A \subseteq\mathcal{L} A ⊆ L and B ⊆ C B \subseteq C B ⊆ C , and let A ′ : = A ∪ { a ˉ : a ∈ A } ⊆ L A' := A \cup\{\bar{a}:a \in A\} \subseteq\mathcal{L} A ′ := A ∪ { a ˉ : a ∈ A } ⊆ L , where a ˉ \bar{a} a ˉ denotes the opposite literal vertex of a a a . Then for any solution X X X to I I I , we have that either X ∩ A ′ ≠ ∅ X \cap A' \ne\emptyset X ∩ A ′ = ∅ or N G ( X ) ∩ B ≠ ∅ N_G(X) \cap B \ne\emptyset N G ( X ) ∩ B = ∅ .
Proof of Claim 4.15. Suppose, for the sake of contradiction, that there is a solution X X X to I I I such that X ∩ A ′ = ∅ X \cap A' = \emptyset X ∩ A ′ = ∅ and N G ( X ) ∩ B = ∅ N_G(X) \cap B = \emptyset N G ( X ) ∩ B = ∅ . We show that the biclique ( A , B ) (A,B) ( A , B ) survives in the residual graph G − N G [ X ] G - N_G[X] G − N G [ X ] . Each literal vertex a ∈ A a \in A a ∈ A lies outside N G [ X ] N_G[X] N G [ X ] : otherwise a ∈ X a \in X a ∈ X , or a a a is adjacent to some x ∈ X x \in X x ∈ X , which (as a a a is a literal vertex) can only be via the opposite-literal edge, i.e. a ˉ ∈ X \bar{a} \in X a ˉ ∈ X ; either case yields X ∩ A ′ ≠ ∅ X \cap A' \ne\emptyset X ∩ A ′ = ∅ , a contradiction. Likewise each clause vertex b ∈ B b \in B b ∈ B lies outside N G [ X ] N_G[X] N G [ X ] : being a clause vertex, b ∈ N G [ X ] b \in N_G[X] b ∈ N G [ X ] would mean b ∈ N G ( X ) b \in N_G(X) b ∈ N G ( X ) , contradicting N G ( X ) ∩ B = ∅ N_G(X) \cap B = \emptyset N G ( X ) ∩ B = ∅ . Hence G − N G [ X ] G - N_G[X] G − N G [ X ] contains the biclique ( A , B ) (A,B) ( A , B ) , whose treewidth is 2 t + 2 2t+2 2 t + 2 ; thus G − N G [ X ] G - N_G[X] G − N G [ X ] has treewidth at least 2 t + 2 2t+2 2 t + 2 . By Observation 3.9, however, G − N G [ X ] G - N_G[X] G − N G [ X ] has treewidth at most 2 t + 1 2t+1 2 t + 1 since X X X is a solution to I I I , a contradiction. △ \triangle △
The algorithm outputs the set V ′ V' V ′ based on the following cases. We prove the correctness of each individual case.
Case 1: ∣ C ∖ Y ∣ ≤ 2 t + 1 |C \setminus Y| \le2t+1 ∣ C ∖ Y ∣ ≤ 2 t + 1 .
Here Z = ∅ Z=\emptyset Z = ∅ : any v ∈ L ∖ N G ( Y ) v \in L \setminus N_G(Y) v ∈ L ∖ N G ( Y ) has all its clause neighbors in C ∖ Y C \setminus Y C ∖ Y , each of degree below β m \beta m β m , so ∑ C ∈ N G ( v ) ∩ C deg G ( C ) < ( 2 t + 1 ) β m = α m 2 < α m \sum_{C \in N_G(v)\cap C}\deg_G(C) < (2t+1)\beta m = \frac{\alpha m}{2} < \alpha m ∑ C ∈ N G ( v ) ∩ C deg G ( C ) < ( 2 t + 1 ) β m = 2 α m < α m and hence v ∉ Z v \notin Z v ∈ / Z . Output V ′ = W ∪ Y V'=W\cup Y V ′ = W ∪ Y . By Claim 4.11 (with Z = ∅ Z=\emptyset Z = ∅ ), every solution X X X satisfies N G [ X ] ∩ ( W ∪ Y ) ≠ ∅ N_G[X]\cap(W\cup Y)\ne\emptyset N G [ X ] ∩ ( W ∪ Y ) = ∅ , so N G [ X ] ∩ V ′ ≠ ∅ N_G[X]\cap V'\ne\emptyset N G [ X ] ∩ V ′ = ∅ since V ′ = W ∪ Y V'=W\cup Y V ′ = W ∪ Y . By Claim 4.12 , ∣ V ′ ∣ ≤ ∣ W ∣ + ∣ Y ∣ = ( 2 k ρ ) O ( t ) |V'|\le|W|+|Y|=\left(\frac{2k}{\rho}\right)^{O(t)} ∣ V ′ ∣ ≤ ∣ W ∣ + ∣ Y ∣ = ( ρ 2 k ) O ( t ) .
Case 2: ∣ C ∖ Y ∣ ≥ 2 t + 2 |C \setminus Y| \ge2t+2 ∣ C ∖ Y ∣ ≥ 2 t + 2 and ∣ Z ∣ ≤ ( 2 t + 2 ) / γ |Z|\le(2t+2)/\gamma ∣ Z ∣ ≤ ( 2 t + 2 ) / γ .
Output V ′ = Y ∪ W ∪ Z V'=Y\cup W\cup Z V ′ = Y ∪ W ∪ Z . The correctness is immediate from Claim 4.11 : every solution X X X satisfies N G [ X ] ∩ V ′ = N G [ X ] ∩ ( W ∪ Y ∪ Z ) ≠ ∅ N_G[X]\cap V'=N_G[X]\cap(W\cup Y\cup Z)\ne\emptyset N G [ X ] ∩ V ′ = N G [ X ] ∩ ( W ∪ Y ∪ Z ) = ∅ . The size bound follows from Claim 4.12 and ∣ Z ∣ ≤ ( 2 t + 2 ) / γ ≤ ( 2 t + 2 ) ( 2 k ρ ) 2 t + 2 |Z|\le(2t+2)/\gamma\le(2t+2)\left(\frac{2k}{\rho}\right)^{2t+2} ∣ Z ∣ ≤ ( 2 t + 2 ) / γ ≤ ( 2 t + 2 ) ( ρ 2 k ) 2 t + 2 . This gives ∣ V ′ ∣ = ( 2 k ρ ) O ( t ) |V'|=\left(\frac{2k}{\rho}\right)^{O(t)} ∣ V ′ ∣ = ( ρ 2 k ) O ( t ) .
Case 3: ∣ C ∖ Y ∣ ≥ 2 t + 2 |C \setminus Y| \ge2t+2 ∣ C ∖ Y ∣ ≥ 2 t + 2 and ∣ Z ∣ ≥ ⌊ ( 2 t + 2 ) / γ ⌋ + 1 |Z|\ge\lfloor(2t+2)/\gamma\rfloor+1 ∣ Z ∣ ≥ ⌊( 2 t + 2 ) / γ ⌋ + 1 .
From Claim 4.14 , a K 2 t + 2 , 2 t + 2 K_{2t+2,2t+2} K 2 t + 2 , 2 t + 2 , say ( A , B ) (A,B) ( A , B ) with A ⊆ L A\subseteq L A ⊆ L and B ⊆ C B\subseteq C B ⊆ C , can be found in G G G in ( 2 k ρ ) O ( t 2 ) ⋅ m \left(\frac{2k}{\rho}\right)^{O(t^2)}\cdot m ( ρ 2 k ) O ( t 2 ) ⋅ m time. Output V ′ = A ′ ∪ B V'=A'\cup B V ′ = A ′ ∪ B , where A ′ A' A ′ is as defined in Claim 4.15 . By Claim 4.15 , every solution X X X satisfies X ∩ A ′ ≠ ∅ X\cap A'\ne\emptyset X ∩ A ′ = ∅ or N G ( X ) ∩ B ≠ ∅ N_G(X)\cap B\ne\emptyset N G ( X ) ∩ B = ∅ , so N G [ X ] ∩ V ′ ≠ ∅ N_G[X]\cap V'\ne\emptyset N G [ X ] ∩ V ′ = ∅ . Moreover, ∣ V ′ ∣ ≤ ∣ A ′ ∣ + ∣ B ∣ ≤ 3 ( 2 t + 2 ) |V'|\le|A'|+|B|\le3(2t+2) ∣ V ′ ∣ ≤ ∣ A ′ ∣ + ∣ B ∣ ≤ 3 ( 2 t + 2 ) .
It remains to bound the running time. The degrees and the sets Y Y Y and W W W can be computed in O ( n + m ) O(n+m) O ( n + m ) time. We then mark N G ( Y ) N_G(Y) N G ( Y ) and, in one further scan of the adjacency lists, compute the sums ∑ C ∈ N G ( v ) ∩ C deg G ( C ) \sum_{C\in N_G(v)\cap C}\deg_G(C) ∑ C ∈ N G ( v ) ∩ C deg G ( C ) that determine Z Z Z , again in O ( n + m ) O(n+m) O ( n + m ) time. Cases 1 and 2 then require only linear time, while Case 3 takes ( 2 k ρ ) O ( t 2 ) ⋅ m \left(\frac{2k}{\rho}\right)^{O(t^2)}\cdot m ( ρ 2 k ) O ( t 2 ) ⋅ m time by Claim 4.14 . This establishes the overall running time stated in the lemma.
The Progressor
The progressor is the last module that gets called in the pipeline of Theorem 4.1. On a high level, this module receives an instance of Ext-WB-TW together with a vertex and creates a set of instances, such that in each, some progress towards finding a backdoor is made. As will be made precise below, progress can be achieved by decreasing the number of literals that can still be selected into the backdoor or by decreasing the S L SL S L -pattern size s s s of the instance.
Lemma 4.4 (Progressor). There is an algorithm P P P which takes as input a well-formed instance I = ( k , s , t , G ) I=(k,s,t,G) I = ( k , s , t , G ) of Ext-WB-TW, where G G G has n n n vertices and m m m edges, and a vertex v v v of G G G . P P P runs in time O ( k ( n + m ) ) O(k(n+m)) O ( k ( n + m )) and outputs a set I = { I 1 , … , I q } \mathcal{I}=\{I_1,\ldots,I_q\} I = { I 1 , … , I q } of q ≤ 2 k q\le2k q ≤ 2 k well-formed instances of Ext-WB-TW such that
I i ′ = ( k − 1 , s , t , G i ′ ) I_{i'}=(k-1,s,t,G_{i'}) I i ′ = ( k − 1 , s , t , G i ′ ) or I i ′ = ( k , s − 1 , t , G i ′ ) I_{i'}=(k,s-1,t,G_{i'}) I i ′ = ( k , s − 1 , t , G i ′ ) for some labeled graph G i ′ G_{i'} G i ′ for all i ′ ∈ [ q ] i'\in[q] i ′ ∈ [ q ] ;
I I I is a yes-instance via a solution X X X with v ∈ N G [ X ] v\in N_G[X] v ∈ N G [ X ] if and only if I \mathcal{I} I contains a yes-instance;
given a solution X X X to an instance I ′ ∈ I I'\in\mathcal{I} I ′ ∈ I one can derive a solution to I I I in O ( n ) O(n) O ( n ) time.
Proof. Recall that in G G G , every vertex is either a literal vertex or a clause vertex.
Claim 4.16. The statement holds if v v v is a literal vertex.
Proof of Claim 4.16. The construction for a literal vertex v v v is guided by a hypothetical solution X X X with v ∈ N G [ X ] v\in N_G[X] v ∈ N G [ X ] ; the claimed properties (in particular the first item) are established unconditionally. Since v v v is a literal vertex, its only literal neighbor is v ˉ \bar{v} v ˉ ; hence v ∈ N G [ X ] v\in N_G[X] v ∈ N G [ X ] means that either v ∈ X v\in X v ∈ X or v ˉ ∈ X \bar{v} \in X v ˉ ∈ X . In other words, we found a variable that belongs to our backdoor set, but we do not know yet, in which polarity we should set it. Consequently, we branch over the two possibilities (v ∈ X v \in X v ∈ X or v ˉ ∈ X \bar{v} \in X v ˉ ∈ X ) and over the index i i i of the candidate set P i P_i P i out of which u u u is selected. More specifically, for each i ∈ [ k ] i \in[k] i ∈ [ k ] and each u ∈ { v , v ˉ } u \in\{v,\bar{v}\} u ∈ { v , v ˉ } with u ∈ P i u \in P_i u ∈ P i , we create an instance I i , u = ( k − 1 , s , t , G i , u ) I_{i,u} = (k-1,s,t,G_{i,u}) I i , u = ( k − 1 , s , t , G i , u ) covering the case ℓ i = u \ell_i = u ℓ i = u .
The graph G i , u G_{i,u} G i , u is obtained from G G G as follows:
delete every clause vertex in N G ( u ) N_G(u) N G ( u ) , i.e. the clauses satisfied by u u u ;
delete all edges from u ˉ \bar{u} u ˉ to clause vertices (as u ˉ \bar{u} u ˉ is now false);
if some clause vertex thereby becomes isolated, we discard the branch: such a clause can never be dominated, so I i , u I_{i,u} I i , u would be a no-instance. We likewise discard the branch if removing u ˉ \bar{u} u ˉ empties some remaining candidate set, i.e. if P j = { u ˉ } P_j = \{\bar{u}\} P j = { u ˉ } for some j ≠ i j \ne i j = i , whose only choice ℓ j = u ˉ \ell_j = \bar{u} ℓ j = u ˉ would conflict with u u u ;
otherwise, remove the color indicating membership in candidate set P i P_i P i from all literal vertices (the i i i -th literal is now resolved);
remove u ˉ \bar{u} u ˉ from all remaining candidate sets by removing the respective colors from u ˉ \bar{u} u ˉ (choosing u ˉ \bar{u} u ˉ would conflict with our choice of u u u ); and
remove all clause vertices C ′ C' C ′ for which P ^ j ⊆ N G i , u ( C ′ ) \hat{P}_j \subseteq N_{G_{i,u}}(C') P ^ j ⊆ N G i , u ( C ′ ) for some j ∈ [ k ] ∖ { i } j \in[k] \setminus\{i\} j ∈ [ k ] ∖ { i } (this clause is satisfied for every remaining choice of ℓ j \ell_j ℓ j ).
Note that we keep the literals u u u and u ˉ \bar{u} u ˉ in the instance since u u u can be reused in another candidate set. There are at most 2 k 2k 2 k branches, each constructed in O ( k ( n + m ) ) O(k(n+m)) O ( k ( n + m )) time: deleting the clauses of N G ( u ) N_G(u) N G ( u ) , deleting u ˉ \bar{u} u ˉ 's incident edges, and checking whether a clause became isolated together take O ( n + m ) O(n+m) O ( n + m ) time, while the last step tests, separately for each of the at most k k k sets P ^ j \hat{P}_j P ^ j with j ≠ i j \ne i j = i , whether P ^ j ⊆ N G i , u ( C ′ ) \hat{P}_j \subseteq N_{G_{i,u}}(C') P ^ j ⊆ N G i , u ( C ′ ) for every clause C ′ C' C ′ ; as in the clause case below, each such test runs in O ( n + m ) O(n+m) O ( n + m ) time by a single scan over the incidence lists of the literals in P ^ j \hat{P}_j P ^ j . Summing over all branches yields a total running time of O ( k 2 ( n + m ) ) O(k^2(n+m)) O ( k 2 ( n + m )) .
Well-formedness. G i , u G_{i,u} G i , u arises from G G G by deleting some clause vertices and the edges of u ˉ \bar{u} u ˉ to clause vertices, while keeping all literal vertices and all opposite-literal edges; in particular the opposite-literal edges still form a perfect matching, so (W1)–(W3) are inherited. Regarding (W4), each retained set P ^ j \hat{P}_j P ^ j (j ≠ i j \ne i j = i ) is non-empty since branches violating this were discarded, and the final deletion removes exactly the clauses C ′ C' C ′ with P ^ j ⊆ N G i , u ( C ′ ) \hat{P}_j \subseteq N_{G_{i,u}}(C') P ^ j ⊆ N G i , u ( C ′ ) for some j ≠ i j \ne i j = i ; hence every surviving clause C ′ C' C ′ satisfies P ^ j ⊈ N G i , u ( C ′ ) \hat{P}_j \nsubseteq N_{G_{i,u}}(C') P ^ j ⊈ N G i , u ( C ′ ) for all j ≠ i j \ne i j = i . Any P ^ j \hat{P}_j P ^ j containing the now-isolated vertex u u u satisfies this trivially, as u ∉ N G i , u ( C ′ ) u \notin N_{G_{i,u}}(C') u ∈ / N G i , u ( C ′ ) . Regarding (W5), consider any proper semi-ladder of G i , u G_{i,u} G i , u whose literal side lies in P ^ j \hat{P}_j P ^ j ; its clause side then consists of surviving clause vertices. All adjacencies and non-adjacencies among these vertices agree in G G G and G i , u G_{i,u} G i , u , since the only edges G i , u G_{i,u} G i , u lacks relative to G G G are those incident to u ˉ \bar{u} u ˉ (not a literal of P ^ j \hat{P}_j P ^ j ) or to a deleted clause vertex (not on the surviving clause side). Hence the same sequence is a proper semi-ladder of G G G with literal side in P j ⊇ P ^ j P_j \supseteq\hat{P}_j P j ⊇ P ^ j , giving s j ′ ≤ s j s'_j \le s_j s j ′ ≤ s j ; thus the S L SL S L -pattern size of G i , u G_{i,u} G i , u is at most ∑ j ≠ i s j ≤ s \sum_{j \ne i} s_j \le s ∑ j = i s j ≤ s .
Preservation of solutions and efficient solution transfer. First, suppose I I I is a yes-instance witnessed by a solution X = { ℓ 1 , … , ℓ k } X = \{\ell_1,\ldots,\ell_k\} X = { ℓ 1 , … , ℓ k } with v ∈ N G [ X ] v \in N_G[X] v ∈ N G [ X ] . Since v ∈ N G [ X ] v \in N_G[X] v ∈ N G [ X ] , either u : = v u := v u := v or u : = v ˉ u := \bar{v} u := v ˉ equals some ℓ i ∈ X \ell_i \in X ℓ i ∈ X , so u ∈ P i u \in P_i u ∈ P i . For every j ≠ i j \ne i j = i , we have ℓ j ≠ u ˉ \ell_j \ne\bar{u} ℓ j = u ˉ (as X X X is non-conflicting and ℓ i = u \ell_i = u ℓ i = u ), so ℓ j ∈ P j ∖ { u ˉ } = P ^ j \ell_j \in P_j \setminus\{\bar{u}\} = \hat{P}_j ℓ j ∈ P j ∖ { u ˉ } = P ^ j ; in particular, no P ^ j \hat{P}_j P ^ j is empty. Moreover, the deletion of edges incident to u ˉ \bar{u} u ˉ isolates no clause: a clause whose only neighbor is u ˉ \bar{u} u ˉ lies in G − N G [ X ] G - N_G[X] G − N G [ X ] but has no neighbor there, so it could not be dominated—contradicting that X X X is a solution. Hence the branch I i , u I_{i,u} I i , u is created and not discarded. Let X ′ X' X ′ be the tuple X X X with its i i i -th entry removed (its remaining entries ℓ j \ell_j ℓ j , j ≠ i j \ne i j = i , may again include u u u ). We claim that X ′ X' X ′ is a solution to I i , u I_{i,u} I i , u if and only if X X X is a solution to I I I . Admissibility and non-conflicting property transfer: ℓ j ∈ P ^ j \ell_j \in\widehat{P}_j ℓ j ∈ P j for every j ≠ i j \ne i j = i , and since the only literal that could conflict with u u u is u ‾ ∉ P ^ j \overline{u} \notin\widehat{P}_j u ∈ / P j , the tuple X ′ X' X ′ is non-conflicting exactly when X X X is. For the residual, every clause deleted in constructing G i , u G_{i,u} G i , u lies in N G [ X ] N_G[X] N G [ X ] : those in N G ( u ) N_G(u) N G ( u ) because u ∈ X u \in X u ∈ X , and every C ′ C' C ′ deleted in the last step because ℓ j ∈ P ^ j ⊆ N G i , u ( C ′ ) \ell_j \in\widehat{P}_j \subseteq N_{G_{i,u}}(C') ℓ j ∈ P j ⊆ N G i , u ( C ′ ) gives C ′ ∈ N G ( ℓ j ) ⊆ N G ( X ) C' \in N_G(\ell_j) \subseteq N_G(X) C ′ ∈ N G ( ℓ j ) ⊆ N G ( X ) ; likewise, the deleted incidence edges are precisely those incident to u ‾ ∈ N G [ X ] \overline{u} \in N_G[X] u ∈ N G [ X ] . Hence G − N G [ X ] G-N_G[X] G − N G [ X ] and G i , u − N G i , u [ X ′ ] G_{i,u}-N_{G_{i,u}}[X'] G i , u − N G i , u [ X ′ ] coincide (once the coloring of P i P_i P i is forgotten), except that the latter still contains the isolated matched pair { u , u ‾ } \{u,\overline{u}\} { u , u } whenever u ∉ X ′ u \notin X' u ∈ / X ′ . As an isolated pair contracts to a single isolated vertex, the contractions ( G − N G [ X ] ) c (G-N_G[X])^c ( G − N G [ X ] ) c and ( G i , u − N G i , u [ X ′ ] ) c (G_{i,u}-N_{G_{i,u}}[X'])^c ( G i , u − N G i , u [ X ′ ] ) c have the same treewidth, and the clause vertices in one are dominated by a non-conflicting literal set if and only if this holds in the other (the isolated u u u and u ‾ \overline{u} u dominate no clause and need not be dominated). Consequently, X ′ X' X ′ is a solution to I i , u I_{i,u} I i , u , so I I I contains the yes-instance I i , u I_{i,u} I i , u .
Conversely, the same equivalence yields the solution transfer: given any solution X ′ X' X ′ to a created branch I i , u I_{i,u} I i , u , its entries satisfy ℓ j ∈ P ^ j ⊆ P j \ell_j \in\widehat{P}_j \subseteq P_j ℓ j ∈ P j ⊆ P j for all j ≠ i j \ne i j = i and are non-conflicting with u u u (as u ‾ ∉ P ^ j \overline{u} \notin\widehat{P}_j u ∈ / P j ), so extending X ′ X' X ′ by ℓ i : = u \ell_i:=u ℓ i := u yields a solution to I I I , obtained in O ( n ) O(n) O ( n ) time. △ \triangle △
Claim 4.17. The statement holds if v v v is a clause vertex.
Proof of Claim 4.17. The construction for a clause vertex v = C v=C v = C is guided by a hypothetical solution X X X with C ∈ N G ( X ) C \in N_G(X) C ∈ N G ( X ) ; the properties claimed below, however, are established unconditionally. For each i ∈ [ k ] i \in[k] i ∈ [ k ] , if P i ∩ N G ( C ) ≠ ∅ P_i \cap N_G(C) \ne\varnothing P i ∩ N G ( C ) = ∅ , we consider an instance I i I_i I i covering the case that for the i i i -th literal vertex ℓ i \ell_i ℓ i of X X X we have that ℓ i ∈ N G ( C ) \ell_i \in N_G(C) ℓ i ∈ N G ( C ) . Intuitively, this case corresponds to the clause C C C being satisfied by the literal ℓ i \ell_i ℓ i . We now construct G i G_i G i from G G G as follows. Update the coloring so that the candidate sets of G i G_i G i become P ^ 1 , … , P ^ k \widehat{P}_1,\ldots,\widehat{P}_k P 1 , … , P k , where P ^ i = P i ∩ N G ( C ) \widehat{P}_i=P_i \cap N_G(C) P i = P i ∩ N G ( C ) and P ^ j = P j \widehat{P}_j=P_j P j = P j for all j ∈ [ k ] ∖ { i } j \in[k]\setminus\{i\} j ∈ [ k ] ∖ { i } . Moreover, we remove all clause vertices C ′ C' C ′ (and their incident edges) for which P ^ j ⊆ N G ( C ′ ) \widehat{P}_j \subseteq N_G(C') P j ⊆ N G ( C ′ ) for some j ∈ [ k ] j \in[k] j ∈ [ k ] ; such a clause C ′ C' C ′ is adjacent to every admissible choice of ℓ j ∈ P ^ j \ell_j \in\widehat{P}_j ℓ j ∈ P j and is thus intuitively guaranteed to be satisfied by whatever literal we end up selecting from P ^ j \widehat{P}_j P j . Note that in particular, this includes C C C itself. Towards bounding the running time of the above procedure, note that each I i I_i I i can be constructed in O ( n + m ) O(n+m) O ( n + m ) time: by (W4) applied to I I I , no clause vertex C ′ C' C ′ satisfies P j = P ^ j ⊆ N G ( C ′ ) P_j=\widehat{P}_j \subseteq N_G(C') P j = P j ⊆ N G ( C ′ ) for any j ≠ i j \ne i j = i , so only the condition P ^ i ⊆ N G ( C ′ ) \widehat{P}_i \subseteq N_G(C') P i ⊆ N G ( C ′ ) has to be tested, which can be checked for all clause vertices simultaneously in O ( n + m ) O(n+m) O ( n + m ) time.
Well-formedness. Since G i G_i G i is obtained from G G G by deleting only clause vertices and their incident edges, all literal vertices and opposite-literal edges remain, so (W1)–(W3) are inherited from G G G . Regarding (W4), each set is non-empty: P ^ i = P i ∩ N G ( C ) ≠ ∅ \widehat{P}_i=P_i\cap N_G(C)\ne\varnothing P i = P i ∩ N G ( C ) = ∅ by the branching case, and P ^ j = P j ≠ ∅ \widehat{P}_j=P_j\ne\varnothing P j = P j = ∅ for j ≠ i j\ne i j = i . Moreover, the deletion step removes exactly the clause vertices with P ^ j ⊆ N G ( C ′ ) \widehat{P}_j\subseteq N_G(C') P j ⊆ N G ( C ′ ) for some j ∈ [ k ] j\in[k] j ∈ [ k ] , so every surviving clause C ′ C' C ′ satisfies P ^ j ⊈ N G ( C ′ ) \widehat{P}_j\not\subseteq N_G(C') P j ⊆ N G ( C ′ ) for all j j j (and N G ( C ′ ) = N G i ( C ′ ) N_G(C')=N_{G_i}(C') N G ( C ′ ) = N G i ( C ′ ) , as clause vertices neighbor only literal vertices and no literal vertices are deleted). Finally, (W5) follows from the next paragraph, which bounds the S L SL S L -pattern size of G i G_i G i by s − 1 s-1 s − 1 .
Shrinkage of S L SL S L -pattern size. Let ( s 1 , … , s k ) (s_1,\ldots,s_k) ( s 1 , … , s k ) and ( s 1 ′ , … , s k ′ ) (s'_1,\ldots,s'_k) ( s 1 ′ , … , s k ′ ) be the S L SL S L -patterns of I I I and some I i I_i I i , respectively. For each j ∈ [ k ] j\in[k] j ∈ [ k ] , since G i G_i G i is an induced subgraph of G G G and P ^ j ⊆ P j \widehat{P}_j\subseteq P_j P j ⊆ P j , we have that every proper semi-ladder of G i G_i G i with literals in P ^ j \widehat{P}_j P j is also one of G G G with literals in P j P_j P j ; hence s j ′ ≤ s j s'_j\le s_j s j ′ ≤ s j . We sharpen this to s i ′ ≤ s i − 1 s'_i\le s_i-1 s i ′ ≤ s i − 1 . Fix some ℓ ∈ P i ∖ N G ( C ) \ell\in P_i\setminus N_G(C) ℓ ∈ P i ∖ N G ( C ) , which exists since P i ⊈ N G ( C ) P_i\not\subseteq N_G(C) P i ⊆ N G ( C ) by (W4), and let a 1 , … , a s i ′ , b 1 , … , b s i ′ a_1,\ldots,a_{s'_i},b_1,\ldots,b_{s'_i} a 1 , … , a s i ′ , b 1 , … , b s i ′ be a proper semi-ladder of height s i ′ s'_i s i ′ in G i G_i G i with all literals in P ^ i \widehat{P}_i P i . Appending ( ℓ , C ) (\ell,C) ( ℓ , C ) as the final ordered pair yields the sequence
a 1 , … , a s i ′ , ℓ , b 1 , … , b s i ′ , C , a_1,\ldots,a_{s'_i},\ell,\quad b_1,\ldots,b_{s'_i},C, a 1 , … , a s i ′ , ℓ , b 1 , … , b s i ′ , C ,
which is a proper semi-ladder of height s i ′ + 1 s'_i+1 s i ′ + 1 in G G G with all literals in P i P_i P i : its new horizontal pair { ℓ , C } \{\ell,C\} { ℓ , C } is a non-edge since ℓ ∉ N G ( C ) \ell\notin N_G(C) ℓ ∈ / N G ( C ) , the diagonal edges { a r , C } \{a_r,C\} { a r , C } are present for all r ∈ [ s i ′ ] r\in[s'_i] r ∈ [ s i ′ ] because a r ∈ P ^ i ⊆ N G ( C ) a_r\in\widehat{P}_i\subseteq N_G(C) a r ∈ P i ⊆ N G ( C ) , and all remaining edge and non-edge conditions are inherited. Here ℓ \ell ℓ and C C C are genuinely new vertices: ℓ ∉ { a 1 , … , a s i ′ } \ell\notin\{a_1,\ldots,a_{s'_i}\} ℓ ∈ / { a 1 , … , a s i ′ } as ℓ ∉ P ^ i \ell\notin\widehat{P}_i ℓ ∈ / P i , and C C C is not a vertex of G i G_i G i . Hence s i ≥ s i ′ + 1 s_i\ge s'_i+1 s i ≥ s i ′ + 1 , that is, s i ′ ≤ s i − 1 s'_i\le s_i-1 s i ′ ≤ s i − 1 . Summing over j j j , the SL-pattern size of I i I_i I i is at most ∑ j ≠ i s j + ( s i − 1 ) ≤ s − 1 \sum_{j\ne i}s_j+(s_i-1)\le s-1 ∑ j = i s j + ( s i − 1 ) ≤ s − 1 .
Preservation of solutions and efficient solution transfer. Assume that I I I is a yes-instance via a solution X X X with literal vertices ℓ 1 , … , ℓ k \ell_1,\ldots,\ell_k ℓ 1 , … , ℓ k and let C ∈ N G ( X ) C\in N_G(X) C ∈ N G ( X ) . Then ℓ i ∈ N G ( C ) \ell_i\in N_G(C) ℓ i ∈ N G ( C ) for some i ∈ [ k ] i\in[k] i ∈ [ k ] , so ℓ i ∈ P i ∩ N G ( C ) = P ^ i \ell_i\in P_i\cap N_G(C)=\widehat{P}_i ℓ i ∈ P i ∩ N G ( C ) = P i while ℓ j ∈ P j = P ^ j \ell_j\in P_j=\widehat{P}_j ℓ j ∈ P j = P j for all j ≠ i j\ne i j = i . We claim that X X X is a solution to I i I_i I i as well. First, each literal ℓ j \ell_j ℓ j lies in P ^ j \widehat{P}_j P j . Secondly, every clause vertex C ′ C' C ′ removed in the construction of G i G_i G i satisfies P ^ j ⊆ N G ( C ′ ) \widehat{P}_j\subseteq N_G(C') P j ⊆ N G ( C ′ ) for some j ∈ [ k ] j\in[k] j ∈ [ k ] , and as ℓ j ∈ P ^ j \ell_j\in\widehat{P}_j ℓ j ∈ P j this gives C ′ ∈ N G ( ℓ j ) ⊆ N G ( X ) C'\in N_G(\ell_j)\subseteq N_G(X) C ′ ∈ N G ( ℓ j ) ⊆ N G ( X ) . Hence all deleted vertices lie in N G [ X ] N_G[X] N G [ X ] , so G − N G [ X ] G-N_G[X] G − N G [ X ] and G i − N G i [ X ] G_i-N_{G_i}[X] G i − N G i [ X ] coincide once the P j P_j P j -colorings are forgotten; in particular their contractions (of all opposite-literal edges) ( G − N G [ X ] ) c (G-N_G[X])^c ( G − N G [ X ] ) c and ( G i − N G i [ X ] ) c (G_i-N_{G_i}[X])^c ( G i − N G i [ X ] ) c have the same treewidth and the clause vertices in G − N G [ X ] G-N_G[X] G − N G [ X ] are dominated by a non-conflicting set of literal vertices if and only if this is the case in G i − N G i [ X ] G_i-N_{G_i}[X] G i − N G i [ X ] . Thus, since X X X is a solution to I I I , it is a solution to I i I_i I i as well.
Conversely, let X X X be any solution to I i I_i I i . Its literals satisfy ℓ i ∈ P ^ i = P i ∩ N G ( C ) \ell_i\in\widehat{P}_i=P_i\cap N_G(C) ℓ i ∈ P i = P i ∩ N G ( C ) and ℓ j ∈ P ^ j = P j \ell_j\in\widehat{P}_j=P_j ℓ j ∈ P j = P j for j ≠ i j\ne i j = i , so X X X is admissible for I I I and in particular C ∈ N G ( X ) C\in N_G(X) C ∈ N G ( X ) . As above, every clause deleted in constructing G i G_i G i lies in N G [ X ] N_G[X] N G [ X ] , so G − N G [ X ] G-N_G[X] G − N G [ X ] and G i − N G i [ X ] G_i-N_{G_i}[X] G i − N G i [ X ] coincide, and the equivalences of the previous paragraph show that X X X is a solution to I I I . The solution is unchanged, so the third property holds in O ( n ) O(n) O ( n ) time. △ \triangle △
Finally, Lemma 4.4 follows directly from Claim 4.16 and Claim 4.17. □ \square □
Deriving the Main Result
We are now ready to establish our main recursion routine.
Theorem 4.1 (Main Technical Theorem). There is an algorithm A \mathcal{A} A that takes as input a well-formed instance I = ( k , s , t , G ) I=(k,s,t,G) I = ( k , s , t , G ) of Ext-WB-TW, where k ≥ 1 k\ge1 k ≥ 1 and G G G has n n n vertices and m m m edges. A \mathcal{A} A runs in time O k , s , t ( n + m ) O_{k,s,t}(n+m) O k , s , t ( n + m ) and outputs q ≤ q ( k , s , t ) q\le q(k,s,t) q ≤ q ( k , s , t ) many well-formed instances I 1 , … , I q I_1,\ldots,I_q I 1 , … , I q of Ext-WB-TW such that
I i = ( k , s − 1 , t , G i ) I_i=(k,s-1,t,G_i) I i = ( k , s − 1 , t , G i ) or I i = ( k − 1 , s , t , G i ) I_i=(k-1,s,t,G_i) I i = ( k − 1 , s , t , G i ) for some labeled graph G i G_i G i for all i ∈ [ q ] i\in[q] i ∈ [ q ] ;
I I I is a yes-instance if and only if there is at least one i ∈ [ q ] i\in[q] i ∈ [ q ] such that I i I_i I i is a yes-instance; and
given a solution to I i I_i I i for some i ∈ [ q ] i\in[q] i ∈ [ q ] , one can derive a solution to I I I in O k , s , t ( n ) O_{k,s,t}(n) O k , s , t ( n ) time.
Proof. We first describe the algorithm, and then analyze its running time and argue its correctness.
We apply the reducer (Lemma 4.2) to I I I to obtain an instance I ′ I' I ′ of size O k , s , t ( n + m ) O_{k,s,t}(n+m) O k , s , t ( n + m ) that is ready for extraction. We then use the extractor (Lemma 4.3) on I ′ I' I ′ to obtain a set V ′ V' V ′ of vertices. Then, for each v ∈ V ′ v\in V' v ∈ V ′ , we call the progressor (Lemma 4.4) on I ′ I' I ′ and v v v , each call yielding a set of at most 2 k 2k 2 k instances. We output all instances obtained across all v ∈ V ′ v\in V' v ∈ V ′ . Each of the three steps takes O k , s , t ( n + m ) \mathcal{O}_{k,s,t}(n+m) O k , s , t ( n + m ) time by the respective lemma, and hence so does the entire pipeline. We output q ≤ 2 k ⋅ ∣ V ′ ∣ q \le2k \cdot|V'| q ≤ 2 k ⋅ ∣ V ′ ∣ instances. Recall from the extractor that ∣ V ′ ∣ |V'| ∣ V ′ ∣ is bounded from above by a function of k , s , t k,s,t k , s , t only, so q q q is bounded by a similar function.
The reducer preserves the values of k k k , s s s , and t t t , while the progressor preserves t t t and, in each output instance, either decrements k k k or decrements s s s . Thus, every output instance is of the form ( k − 1 , s , t , G i ) (k-1,s,t,G_i) ( k − 1 , s , t , G i ) or ( k , s − 1 , t , G i ) (k,s-1,t,G_i) ( k , s − 1 , t , G i ) , establishing the first point. Moreover, since I I I is well-formed, the reducer returns a well-formed instance I ′ I' I ′ (Lemma 4.2), so the extractor and progressor receive a well-formed instance, and every instance produced by the progressor is well-formed (Lemma 4.4); hence all q q q output instances are well-formed.
For the second point, first suppose I I I is a yes-instance. Then by Lemma 4.2 I ′ I' I ′ is a yes-instance as well, witnessed by some solution X X X . Let G ′ G' G ′ be the graph in I ′ I' I ′ . Since I ′ I' I ′ is ready for extraction, it satisfies the condition of Lemma 4.3, so N G ′ [ X ] ∩ V ′ ≠ ∅ N_{G'}[X] \cap V' \ne\varnothing N G ′ [ X ] ∩ V ′ = ∅ ; fix some v ∈ N G ′ [ X ] ∩ V ′ v \in N_{G'}[X] \cap V' v ∈ N G ′ [ X ] ∩ V ′ . As v ∈ N G ′ [ X ] v \in N_{G'}[X] v ∈ N G ′ [ X ] , the call to the progressor (Lemma 4.4) on I ′ I' I ′ and v v v produces a yes-instance, which is among our output. Conversely, if one of the output instances is a yes-instance, then the third point (shown below) turns its solution into a solution to I I I , so I I I is a yes-instance as well. This proves the equivalence.
For the third point, consider a solution X X X to an output instance I i I_i I i . Lemma 4.4 lifts X X X to a solution X ′ X' X ′ to I ′ I' I ′ and Lemma 4.2 then lifts X ′ X' X ′ to a solution to I I I , each in O k , s , t ( n ) \mathcal{O}_{k,s,t}(n) O k , s , t ( n ) time.
Using the above, we are almost ready to establish the algorithm for solving SAT via weak backdoors (Theorem 1.1). The last ingredient we need is that the base instances of Ext-WB-TW after exhaustive application of Theorem 4.1 are easy to solve.
Lemma 4.18. There is an algorithm that takes as input a well-formed instance I = ( k , s , t , G ) I=(k,s,t,G) I = ( k , s , t , G ) of Ext-WB-TW such that G G G has n n n literal vertices and no clause vertices. In time O ( k k + 1 + k n ) \mathcal{O}(k^{k+1}+kn) O ( k k + 1 + k n ) it outputs a solution X X X to I I I or verifies that none exist.
Proof. Note that contracting all edges between opposing literals in G G G already gives a graph of treewidth 0. Thus, in order to solve an instance that is as specified by the lemma statement, it only remains to decide whether there are pair-wise non-conflicting literals ℓ 1 , … , ℓ k \ell_1,\ldots,\ell_k ℓ 1 , … , ℓ k such that ℓ i ∈ P i \ell_i \in P_i ℓ i ∈ P i for all i ∈ [ k ] i \in[k] i ∈ [ k ] . We can enumerate all candidate sets in O ( k n ) \mathcal{O}(kn) O ( k n ) time. From each candidate set P i P_i P i with ∣ P i ∣ > k |P_i| > k ∣ P i ∣ > k drop all but the k k k first entries. Then, consider all O ( k k ) \mathcal{O}(k^k) O ( k k ) possibilities to select one literal from each set. For each possibility, we can test whether it is non-conflicting in O ( k ) \mathcal{O}(k) O ( k ) time, and if so output this choice as the solution X X X . We reject the instance if the test fails for all choices.
Clearly, any output choice is indeed a valid solution. For the other direction, suppose there is a solution X X X . Consider the set of branches where for all sets P i P_i P i with size smaller than k k k , the same literals are chosen as in X X X . Among these, there is a branch that finds a solution: The literals for sets P i P_i P i with ∣ P i ∣ < k |P_i| < k ∣ P i ∣ < k are non-conflicting between each other since they appear in X X X . We then fix the choices for the sets P i P_i P i with ∣ P i ∣ ≥ k |P_i| \ge k ∣ P i ∣ ≥ k (now ∣ P i ∣ = k |P_i|=k ∣ P i ∣ = k ) one after another, at each step restricting to the subset of branches consistent with the choices made so far. When fixing such a set P i P_i P i , the at most k − 1 k-1 k − 1 literals chosen so far are opposite to at most k − 1 k-1 k − 1 elements. Since for the reduced set ∣ P i ∣ = k |P_i|=k ∣ P i ∣ = k , there is at least one branch where ℓ i \ell_i ℓ i does not conflict with any previously chosen literal. Iterating over all these sets leaves a branch whose selection is non-conflicting overall.
:::
Lemma 4.19. There is an algorithm that takes as input a well-formed instance I = ( 0 , s , t , G ) I=(0,s,t,G) I = ( 0 , s , t , G ) of Ext-WB-TW such that G G G has n n n vertices and m m m edges. In time 2 O ( t 3 ) ⋅ ( n + m ) 2^{\mathcal{O}(t^3)} \cdot(n+m) 2 O ( t 3 ) ⋅ ( n + m ) it outputs a solution X X X to I I I or verifies that none exist.
Proof. Since k = 0 k = 0 k = 0 the only possible solution is the empty set. Let G c G^{c} G c be the graph obtained from contracting all edges between pairs of literals in G G G . Note that ( 0 , s , t , G ) (0,s,t,G) ( 0 , s , t , G ) is a yes-instance (via X = ∅ X = \emptyset X = ∅ ) if and only if G c G^{c} G c has treewidth at most t t t and there is a set of non-conflicting literal vertices that dominate all clause vertices. In time 2 O ( t 3 ) ⋅ ( n + m ) 2^{O(t^{3})} \cdot(n + m) 2 O ( t 3 ) ⋅ ( n + m ) we can decide whether G c G^{c} G c has treewidth at most t t t , e.g. using Bodlaender’s algorithm [3 ] . If the treewidth of G c G^{c} G c exceeds t t t , we reject the instance. Otherwise, deciding whether there is a dominating set of non-conflicting literal vertices corresponds exactly to solving a SAT instance with incidence treewidth at most t t t . This can be done in 2 O ( t ) ⋅ ( n + m ) 2^{O(t)} \cdot(n + m) 2 O ( t ) ⋅ ( n + m ) time, e.g. by the dynamic-programming algorithm of Samer and Szeider [34 ] . □
We now proceed with the proof of Theorem 1.1. For convenience, we restate the theorem below.
Theorem 1.1. For all non-negative integers d d d , k k k , and t t t , there is a linear-time algorithm that takes as input a signed d d d -semi-ladder-free SAT instance φ \varphi φ and either:
outputs a satisfying assignment for φ \varphi φ along with a weak t t t -treewidth backdoor of size at most k k k , or
detects that φ \varphi φ contains no weak t t t -treewidth backdoor of size at most k k k .
Proof. The algorithm proceeds in three steps: it translates φ \varphi φ into an equivalent instance of Ext-WB-TW, iterates Theorem 4.1 to reduce k k k or the S L SL S L -pattern size to zero, and finally solves the resulting simple instances and backtracks a solution. Below, we describe and analyze each step individually.
Translation into Ext-WB-TW. If d = 0 d = 0 d = 0 , then no formula is signed d d d -semi-ladder-free (every graph contains the empty semi-ladder of height 0), so the statement holds vacuously; we therefore assume d ≥ 1 d \ge1 d ≥ 1 in the following, which ensures s = ( d − 1 ) k ≥ 0 s = (d - 1)k \ge0 s = ( d − 1 ) k ≥ 0 . Without loss of generality, assume that for φ = ( V a r , C l a u s e s ) \varphi= (\mathrm{Var}, \mathrm{Clauses}) φ = ( Var , Clauses ) there is no clause C ∈ C l a u s e s C \in\mathrm{Clauses} C ∈ Clauses with L ( V a r ) ⊆ C L(\mathrm{Var}) \subseteq C L ( Var ) ⊆ C , that is, no clause in φ \varphi φ contains every variable of φ \varphi φ in both polarities. Let G φ ∗ G^{*}_{\varphi} G φ ∗ be the signed incidence graph of φ \varphi φ but with the following coloring for edges and vertices: vertices are colored as literal or clause vertices depending on which they represent, respectively. Edges are colored according to (W2) in the definition of Ext-WB-TW. Every literal vertex also carries all k k k additional colors—consequently the candidate sets P 1 , … , P k P_{1},\ldots,P_{k} P 1 , … , P k each contain all literal vertices. We claim that φ \varphi φ has a weak ( k , t ) (k,t) ( k , t ) -backdoor X X X if and only if X X X , read as a set of literal vertices of G φ ∗ G^{*}_{\varphi} G φ ∗ , is a solution to the instance I d k = ( k , s = ( d − 1 ) k , t , G φ ∗ ) I_{dk} = (k,s = (d - 1)k,t,G^{*}_{\varphi}) I d k = ( k , s = ( d − 1 ) k , t , G φ ∗ ) of Ext-WB-TW. Under the identification of each literal of φ \varphi φ with the literal vertex of G φ ∗ G^{*}_{\varphi} G φ ∗ representing it, the two notions match property by property:
Because every P i P_{i} P i contains all literal vertices, the constraint ℓ i ∈ P i \ell_{i} \in P_{i} ℓ i ∈ P i is vacuous, so a solution is simply a set X X X of at most k k k literal vertices meeting the three properties below (note that the same literal can be chosen for multiple candidate sets P i P_{i} P i ).
The non-conflicting property—no opposite-literal edge joins two chosen vertices—holds if and only if X X X does not contain a variable in both polarities, i.e. if and only if the literals of X X X define a consistent partial assignment α \alpha α setting each of them to true.
Deleting N G φ ∗ [ X ] N_{G^{*}_{\varphi}}[X] N G φ ∗ [ X ] from G φ ∗ G^{*}_{\varphi} G φ ∗ removes the variables underlying X X X together with all clauses satisfied by α \alpha α , and contracting the surviving opposite-literal edges merges the two vertices of each remaining variable into a single variable vertex; the resulting graph is exactly the signed incidence graph of φ [ α ] \varphi[\alpha] φ [ α ] . Hence the bounded-treewidth property holds if and only if the signed incidence graph of φ [ α ] \varphi[\alpha] φ [ α ] has treewidth at most t t t .
Combining these equivalences, X X X is a solution to I d k I_{dk} I d k if and only if α \alpha α witnesses that X X X is a weak ( k , t ) (k,t) ( k , t ) -backdoor of φ \varphi φ , proving the claim. Here the subscript represents s + k = d k s+k=dk s + k = d k , a measure of progress towards a simple instance. Moreover, I d k I_{dk} I d k is well-formed.
This translation takes O k ( ∣ Var ∣ + ∣ Clauses ∣ + ∣ φ ∣ ) \mathcal{O}_{k}(|\operatorname{Var}|+|\operatorname{Clauses}|+|\varphi|) O k ( ∣ Var ∣ + ∣ Clauses ∣ + ∣ φ ∣ ) time. For the following, let n n n and m m m denote the number of vertices and edges in G φ ∗ G^{*}_{\varphi} G φ ∗ , respectively, and note that n = ∣ Clauses ∣ + 2 ∣ Var ∣ n=|\operatorname{Clauses}|+2|\operatorname{Var}| n = ∣ Clauses ∣ + 2∣ Var ∣ and m = ∣ φ ∣ + ∣ Var ∣ m=|\varphi|+|\operatorname{Var}| m = ∣ φ ∣ + ∣ Var ∣ , so both are linear in the encoding size of φ \varphi φ .
Translation into simple instances. Towards solving I d k I_{dk} I d k , we perform multiple iterations of Theorem 4.1, each time decrementing k k k or the bound s s s on the SL-pattern size, until we obtain a set of instances where one of the measures is 0. If this is already the case for I d k I_{dk} I d k (that is, k = 0 k=0 k = 0 , or s = 0 s=0 s = 0 as happens when d = 1 d=1 d = 1 ), we skip this step and set I 1 = { I d k } I_1=\{I_{dk}\} I 1 = { I d k } . Otherwise, let I d k = { I d k } I_{dk}=\{I_{dk}\} I d k = { I d k } . For p = d k − 1 , d k − 2 , … , 1 p=dk-1,dk-2,\ldots,1 p = d k − 1 , d k − 2 , … , 1 , compute I p I_p I p by applying Theorem 4.1 to every instance in I p + 1 I_{p+1} I p + 1 and collecting the union of all output sets in I p I_p I p .
Note that for all p ∈ [ d k ] p\in[dk] p ∈ [ d k ] , each instance I ′ I' I ′ in I p I_p I p is of the form ( k ′ , s ′ , t , G I ′ ) (k',s',t,G_{I'}) ( k ′ , s ′ , t , G I ′ ) with k ′ + s ′ = p k'+s'=p k ′ + s ′ = p for some graph G I ′ G_{I'} G I ′ , k ′ ≤ k k'\leq k k ′ ≤ k , and s ′ ≤ s s'\leq s s ′ ≤ s . If at some point we produce an instance with k ′ = 0 k'=0 k ′ = 0 or without clause vertices, we immediately put it in the set I 1 I_1 I 1 instead of adding it to the current set.
Indeed, we observe that all instances in I 1 I_1 I 1 have k ′ = 0 k'=0 k ′ = 0 or do not have clause vertices. Suppose otherwise, i.e., there is an instance I = ( k ′ , s ′ , t , G ) ∈ I 1 I=(k',s',t,G)\in I_1 I = ( k ′ , s ′ , t , G ) ∈ I 1 with k ′ > 0 k'>0 k ′ > 0 such that G G G contains at least one clause vertex C C C . Since k ′ > 0 k'>0 k ′ > 0 and due to the existence of C C C , I I I has not been placed in I 1 I_1 I 1 prematurely but rather after d k − 1 dk-1 d k − 1 iterations of Theorem 4.1. Since initially p = d k p=dk p = d k and each iteration decreases p = s ′ + k ′ p=s'+k' p = s ′ + k ′ , we have that s ′ + k ′ = 1 s'+k'=1 s ′ + k ′ = 1 after the last iteration. As k ′ > 0 k'>0 k ′ > 0 , we have s ′ = 0 s'=0 s ′ = 0 . However, we also have P 1 ⊈ N G ( C ) P_1\not\subseteq N_G(C) P 1 ⊆ N G ( C ) by (W4). Consequently, there is a literal vertex ℓ ∈ P 1 \ell\in P_1 ℓ ∈ P 1 such that ℓ ∉ N G ( C ) \ell\notin N_G(C) ℓ ∈ / N G ( C ) , so ℓ \ell ℓ and C C C form a semi-ladder of height 1 (i.e., a non-edge) in G G G . Thereby, ( k ′ , s ′ , t , G ) (k',s',t,G) ( k ′ , s ′ , t , G ) has SL-pattern size at least 1, contradicting s ′ = 0 s'=0 s ′ = 0 .
By Theorem 4.1, there is a constant q q q depending only on k k k , s s s , and t t t such that ∣ I p ∣ ≤ q ⋅ ∣ I p + 1 ∣ |I_p|\leq q\cdot|I_{p+1}| ∣ I p ∣ ≤ q ⋅ ∣ I p + 1 ∣ . Hence we construct O ( q d k ) = O d , k , t ( 1 ) \mathcal{O}(q^{dk})=\mathcal{O}_{d,k,t}(1) O ( q d k ) = O d , k , t ( 1 ) many instances in total (recall that at every point s ′ ≤ s < d k s'\leq s<dk s ′ ≤ s < d k ). Each application of Theorem 4.1 (and test for clause vertices) takes O d , k , t ( n + m ) \mathcal{O}_{d,k,t}(n+m) O d , k , t ( n + m ) time, so the total time required for this step is in O d , k , t ( n + m ) \mathcal{O}_{d,k,t}(n+m) O d , k , t ( n + m ) .
Solving the simple instances and backtracking the solution. All instances ( k ′ , s ′ , t , G ) (k',s',t,G) ( k ′ , s ′ , t , G ) in I 1 I_1 I 1 for which we have k ′ = 0 k'=0 k ′ = 0 are solved via Lemma 4.19 . All remaining instances in I 1 I_1 I 1 are solved via Lemma 4.18 since, by the argument above, they do not have clause vertices.
If there are only no-instances in I 1 I_1 I 1 , we certify that φ \varphi φ does not admit a weak ( k , t ) (k,t) ( k , t ) -backdoor as follows: suppose φ \varphi φ would admit a weak ( k , t ) (k,t) ( k , t ) -backdoor, then I d k I_{dk} I d k is a yes-instance of EXT-WB-TW. Then, every set I p I_p I p for p ∈ [ d k ] p\in[dk] p ∈ [ d k ] contains at least one yes-instance (via induction starting at I d k I_{dk} I d k and by Theorem 4.1) or at some point, a yes-instance was supposed to be placed in a set I p I_p I p with p > 1 p>1 p > 1 but instead was placed in I 1 I_1 I 1 due to not having clause vertices or k ′ = 0 k'=0 k ′ = 0 . In either case I 1 I_1 I 1 would contain a yes-instance.
Now suppose one of the instances in I 1 I_1 I 1 , say I I I , admits a solution X X X . Note that I I I was obtained from I d k I_{dk} I d k by a sequence of applications of Theorem 4.1. By reversing this sequence, Theorem 4.1 allows us to lift X X X back up to a solution X ⋆ X^{\star} X ⋆ to I d k I_{dk} I d k , which in turn is a weak ( k , t ) (k,t) ( k , t ) -backdoor to φ \varphi φ .
To obtain a corresponding satisfying assignment, it suffices to solve the satisfiability problem on the residual CNF formula φ ⋆ \varphi^\star φ ⋆ in which all variables represented in X ⋆ X^\star X ⋆ and all clauses satisfied by X ⋆ X^\star X ⋆ are removed. Since the incidence graph of this residual formula has treewidth at most t t t , any algorithm for solving SAT on instances of bounded incidence treewidth can be used, e.g. the dynamic-programming algorithm of Samer and Szeider [34 ] , which runs in time 2 O ( t ) ⋅ ( n + m ) 2^{O(t)} \cdot(n+m) 2 O ( t ) ⋅ ( n + m ) once a width-t t t tree decomposition is computed (for example via Bodlaender’s algorithm [3 ] in time 2 O ( t 3 ) ⋅ ( n + m ) 2^{O(t^3)} \cdot(n+m) 2 O ( t 3 ) ⋅ ( n + m ) ).
Solving all instances in I 1 \mathcal{I}_1 I 1 takes ∣ I 1 ∣ ⋅ O k , t ( n + m ) = O d , k , t ( n + m ) |\mathcal{I}_1| \cdot\mathcal{O}_{k,t}(n+m) = \mathcal{O}_{d,k,t}(n+m) ∣ I 1 ∣ ⋅ O k , t ( n + m ) = O d , k , t ( n + m ) time, using Lemma 4.19 for the instances with k ′ = 0 k'=0 k ′ = 0 and Lemma 4.18 for the clause-less instances. Lifting a solution through the iterations of Theorem 4.1 takes O d , k , t ( ( d k − 1 ) ⋅ n ) = O d , k , t ( n ) \mathcal{O}_{d,k,t}((dk-1)\cdot n)=\mathcal{O}_{d,k,t}(n) O d , k , t (( d k − 1 ) ⋅ n ) = O d , k , t ( n ) time.
Hardness of Finding Weak Backdoors
We accompany our algorithm by two lower bounds, which support our choice of measuring the height of semi-ladders in the signed incidence graph. Under well-established complexity-theoretic assumptions, they rule out that the same result can be achieved when measuring ladders instead of semi-ladders in the signed incidence graph, or when measuring semi-ladders in the unsigned incidence graph. Both lower bounds rely on reductions from the Red-Blue Dominating Set problem.
Red-Blue Dominating Set
Input: A graph G = ( ( R ⊎ B ) , E ) G=((R\uplus B),E) G = (( R ⊎ B ) , E ) and a natural number k k k .
Parameter: k k k
Question: Is there an S ⊆ R S\subseteq R S ⊆ R with ∣ S ∣ ≤ k |S|\leq k ∣ S ∣ ≤ k such that S S S dominates all vertices in B B B ?
Theorem 5.1. For all t ≥ 0 t\geq0 t ≥ 0 and d ≥ 18 d\geq18 d ≥ 18 , deciding whether a SAT instance φ \varphi φ with an L d L_d L d -free signed vertex incidence graph admits a weak backdoor of size k k k to treewidth t t t is W[1 ] -hard parameterized by k k k .
Proof. It has been recently proved that Dominating Set is W[1 ] -hard on L d L_d L d -free instances, for d ≥ 17 d\geq17 d ≥ 17 [10 Theorem 5] . To show this, the authors carefully inspect the standard parameterized reduction from Multicolored Independent Set to Dominating Set and argue that it gives rise to ladders of height at most 16. Their reduction is easily adapted to show that the problem Red-Blue Dominating Set is W[1 ] -hard on L d L_d L d -free instances, for d ≥ 17 d\geq17 d ≥ 17 as well: we color all original vertices red and all vertices that the reduction introduces blue. The correctness of this adaptation follows from the fact that our budget only allows for choosing original vertices to dominate others anyway.
We conclude our proof by reducing Red-Blue Dominating Set on L d L_d L d -free instances, for any t ≥ 0 t\geq0 t ≥ 0 and d ≥ 17 d\geq17 d ≥ 17 , to the problem of finding weak backdoors to treewidth t t t ; as the bounded-ladder-height argument below shows, the signed incidence graph of the resulting formula is L d + 1 L_{d+1} L d + 1 -free, which yields the theorem for all d ≥ 18 d\geq18 d ≥ 18 . In the following, we will assume that all instances of Red-Blue Dominating Set are pre-processed in a way that removes all vertices that are not adjacent to the respective other color: if there is a red vertex that is not adjacent to any blue vertex, it can be removed from the instance since it cannot cover any blue vertex; if there is a blue vertex that is not adjacent to any red vertex, then it witnesses a no-instance. Now, for a given L d L_d L d -free instance ( ( R ⊎ B ) , E , k ) ((R\uplus B),E,k) (( R ⊎ B ) , E , k ) of Red-Blue Dominating Set, we construct a formula φ \varphi φ as follows. For every red vertex r r r , we create t + 1 t+1 t + 1 Boolean variables and let ℓ 1 r , … , ℓ t + 1 r \ell^r_1,\ldots,\ell^r_{t+1} ℓ 1 r , … , ℓ t + 1 r denote their positive literals; for every blue vertex b b b , we create t + 1 t+1 t + 1 clauses C 1 b , … , C t + 1 b C^b_1,\ldots,C^b_{t+1} C 1 b , … , C t + 1 b . We distribute the literals over the clauses such that, for every r ∈ R r\in R r ∈ R , b ∈ B b\in B b ∈ B , and all i , j ∈ [ t + 1 ] i,j\in[t+1] i , j ∈ [ t + 1 ] , the literal ℓ i r \ell^r_i ℓ i r occurs in the clause C j b C^b_j C j b if and only if { r , b } ∈ E \{r,b\}\in E { r , b } ∈ E . In particular, all occurrences are positive, and { ℓ 1 r , … , ℓ t + 1 r } ⊆ C j b \{\ell^r_1,\ldots,\ell^r_{t+1}\}\subseteq C^b_j { ℓ 1 r , … , ℓ t + 1 r } ⊆ C j b holds for every j ∈ [ t + 1 ] j\in[t+1] j ∈ [ t + 1 ] exactly when { r , b } ∈ E \{r,b\}\in E { r , b } ∈ E .
Bounded ladder height. We show that any ladder in the signed incidence graph of φ \varphi φ projects to a ladder of height smaller by at most one in the Red-Blue Dominating Set instance. Consequently, if the original instance is L d L_d L d -free for some d ≥ 17 d\ge17 d ≥ 17 , then the signed incidence graph of φ \varphi φ is L d + 1 L_{d+1} L d + 1 -free.
Recall that the signed incidence graph is almost bipartite between literals and clauses, with each literal joined to every clause containing it, together with the edges { x , x ‾ } \{x,\overline{x}\} { x , x } between the two literals of each variable. In our construction every occurrence is positive, so a clause vertex is adjacent only to positive literals, a positive literal ℓ i r \ell^r_i ℓ i r is adjacent only to the clauses containing it and to its negation ℓ i r ‾ \overline{\ell^r_i} ℓ i r , and each negation ℓ i r ‾ \overline{\ell^r_i} ℓ i r has degree exactly one, its only neighbor being ℓ i r \ell^r_i ℓ i r .
Consider any ladder in the signed incidence graph, with sides a 1 , … , a h a_1,\ldots,a_h a 1 , … , a h and b 1 , … , b h b_1,\ldots,b_h b 1 , … , b h , where { a i , b j } \{a_i,b_j\} { a i , b j } is an edge if and only if i ≤ j i\le j i ≤ j .
We first claim that there is at most one index i ∈ [ h ] i\in[h] i ∈ [ h ] for which a i a_i a i and b i b_i b i both represent literals. Suppose not, and let i < j i<j i < j be two such indices. An edge between two literals must be one of the edges { x , x ‾ } \{x,\overline{x}\} { x , x } , so { a i , b i } \{a_i,b_i\} { a i , b i } forces b i = a i ‾ b_i=\overline{a_i} b i = a i . By the ladder property, { a i , b j } \{a_i,b_j\} { a i , b j } is an edge as well; since a i a_i a i and b j b_j b j are both literals, it is again of the form { x , x ‾ } \{x,\overline{x}\} { x , x } , whence b j = a i ‾ = b i b_j=\overline{a_i}=b_i b j = a i = b i . This contradicts b i ≠ b j b_i\ne b_j b i = b j and proves the claim.
Delete this (at most one) exceptional position from the ladder and reindex the remaining ones; deleting a position from a ladder again yields a ladder, so we obtain one of height h ′ ≥ h − 1 h'\ge h-1 h ′ ≥ h − 1 in which every pair { a i , b i } \{a_i,b_i\} { a i , b i } is an edge between a literal and a clause. We show that one side of this sub-ladder consists entirely of positive literals and the other entirely of clauses. Up to the symmetry that exchanges the two sides (replacing a i , b i a_i,b_i a i , b i by b h ′ + 1 − i , a h ′ + 1 − i b_{h'+1-i},a_{h'+1-i} b h ′ + 1 − i , a h ′ + 1 − i ), we may assume a 1 a_1 a 1 is a literal and b 1 b_1 b 1 a clause; being adjacent to a clause, a 1 a_1 a 1 is a positive literal. Its neighbors are clauses together with its negation a 1 ‾ \overline{a_1} a 1 , which has degree one and hence is adjacent to at most one ladder vertex; but the only b b b -side vertex adjacent to a single a a a -side vertex is b 1 b_1 b 1 , which is a clause. Thus none of b 1 , … , b h ′ b_1,\ldots,b_{h'} b 1 , … , b h ′ equals a 1 ‾ \overline{a_1} a 1 , and since a 1 a_1 a 1 is adjacent to all of them, every b i b_i b i is a clause. Each a i a_i a i is then adjacent to the clause b h ′ b_{h'} b h ′ and is therefore a positive literal.
Finally, two vertices on the same side of a ladder have distinct neighborhoods towards the other side. As the literals ℓ 1 r , … , ℓ t + 1 r \ell^r_1,\ldots,\ell^r_{t+1} ℓ 1 r , … , ℓ t + 1 r of a fixed red vertex r r r all have the same neighborhood in the incidence graph of φ \varphi φ , at most one of them occurs among the literals of the sub-ladder; symmetrically, at most one of the clauses C 1 b , … , C t + 1 b C^b_1,\ldots,C^b_{t+1} C 1 b , … , C t + 1 b of a fixed blue vertex b b b occurs. Since ℓ i r \ell^r_i ℓ i r and C j b C^b_j C j b are adjacent if and only if { r , b } ∈ E \{r,b\}\in E { r , b } ∈ E , mapping each literal to its red vertex and each clause to its blue vertex yields a ladder of height h ′ h' h ′ in the original instance. As h ′ ≥ h − 1 h'\ge h-1 h ′ ≥ h − 1 , every ladder of height h h h in the signed incidence graph projects to a ladder of height at least h − 1 h-1 h − 1 in the Red-Blue Dominating Set instance, which establishes the claimed L d + 1 L_{d+1} L d + 1 -freeness.
Correctness. First assume that in an L d L_d L d -free instance of Red-Blue Dominating Set there are k k k red vertices r 1 , … , r k r_1,\ldots,r_k r 1 , … , r k that suffice to cover all blue vertices. Then, setting the variable underlying ℓ 1 r i \ell^{r_i}_1 ℓ 1 r i to true for each i ∈ [ k ] i\in[k] i ∈ [ k ] satisfies all clauses of φ \varphi φ , hence the remaining instance (after contracting edges between opposing literals, thereby corresponding to the unsigned incidence graph) has treewidth zero. Conversely, assume that there is an assignment α \alpha α to k k k variables in φ \varphi φ such that the contracted incidence graph of the remaining instance φ [ α ] \varphi[\alpha] φ [ α ] has treewidth at most t t t . Observe that for every b ∈ B b \in B b ∈ B , the clauses C 1 b , … , C t + 1 b C^b_1,\ldots,C^b_{t+1} C 1 b , … , C t + 1 b form a biclique with the literals ℓ 1 r , … , ℓ t + 1 r \ell^r_1,\ldots,\ell^r_{t+1} ℓ 1 r , … , ℓ t + 1 r of at least one r ∈ R r \in R r ∈ R —a red neighbor of b b b , which exists by the preprocessing. This biclique is an induced K t + 1 , t + 1 K_{t+1,t+1} K t + 1 , t + 1 and hence has treewidth t + 1 t+1 t + 1 ; since φ [ α ] \varphi[\alpha] φ [ α ] has treewidth at most t < t + 1 t < t+1 t < t + 1 , at least one vertex of the biclique must be absent from φ [ α ] \varphi[\alpha] φ [ α ] . That vertex is either a literal ℓ i r \ell^r_i ℓ i r assigned by α \alpha α , or a clause C j b C^b_j C j b satisfied by α \alpha α ; in the latter case the satisfying literal is some ℓ i r ′ \ell^{r'}_i ℓ i r ′ with { r ′ , b } ∈ E \{r',b\} \in E { r ′ , b } ∈ E set to true. Either way, α \alpha α assigns the variable underlying some ℓ i r \ell^r_i ℓ i r with { r , b } ∈ E \{r,b\} \in E { r , b } ∈ E . Thus, the at most k k k red vertices corresponding to the assigned variables dominate all blue vertices in the original instance.
Theorem 5.2. For all t ≥ 0 t \ge0 t ≥ 0 and d ≥ 4 d \ge4 d ≥ 4 , deciding whether a SAT instance φ \varphi φ with an S L d SL_d S L d -free unsigned incidence graph admits a weak backdoor of size k k k to treewidth t t t is W[2 ] -hard parameterized by k k k .
Proof. We reduce from Red-Blue Dominating Set, which is W[2 ] -hard parameterized by k k k via its equivalence to Set Cover [8 Theorem 13.28] . Given an instance ( ( R ⊎ B ) , E , k ) ((R \uplus B), E, k) (( R ⊎ B ) , E , k ) , we construct the following formula φ \varphi φ . For every red vertex r r r , we create k ⋅ ( t + 1 ) k \cdot(t+1) k ⋅ ( t + 1 ) variables r i , j r_{i,j} r i , j with i ∈ [ k ] i \in[k] i ∈ [ k ] , j ∈ [ t + 1 ] j \in[t+1] j ∈ [ t + 1 ] . For every blue vertex b b b , we create t + 1 t+1 t + 1 clauses C 1 b , … , C t + 1 b C^b_1,\ldots,C^b_{t+1} C 1 b , … , C t + 1 b . We distribute the variables among the clauses as follows: for all r ∈ R r \in R r ∈ R and b ∈ B b \in B b ∈ B , we inspect their adjacency. If { r , b } ∈ E \{r,b\} \in E { r , b } ∈ E , then for each i ∈ [ k ] i \in[k] i ∈ [ k ] , j ∈ [ t + 1 ] j \in[t+1] j ∈ [ t + 1 ] , we add the positive literal r i , j r_{i,j} r i , j to each of the clauses C 1 b , … , C t + 1 b C^b_1,\ldots,C^b_{t+1} C 1 b , … , C t + 1 b . If { r , b } ∉ E \{r,b\} \notin E { r , b } ∈ / E , then for each i ∈ [ k ] i \in[k] i ∈ [ k ] , j ∈ [ t + 1 ] j \in[t+1] j ∈ [ t + 1 ] , we add the negative r ‾ i , j \overline{r}_{i,j} r i , j to each of the clauses C 1 b , … , C t + 1 b C^b_1,\ldots,C^b_{t+1} C 1 b , … , C t + 1 b . Additionally, we add k ⋅ ( t + 1 ) k \cdot(t+1) k ⋅ ( t + 1 ) special clauses C i , j C_{i,j} C i , j such that for each i ∈ [ k ] i \in[k] i ∈ [ k ] and j ∈ [ t + 1 ] j \in[t+1] j ∈ [ t + 1 ] , the clause C i , j C_{i,j} C i , j contains the positive literals r i , 1 , … , r i , t + 1 r_{i,1},\ldots,r_{i,t+1} r i , 1 , … , r i , t + 1 for all r ∈ R r \in R r ∈ R .
Bounded semi-ladder height. The unsigned incidence graph of φ \varphi φ contains no semi-ladder of height at least 4 as follows. Each clause vertex C j b C^b_j C j b originating from a blue vertex b b b is adjacent to every variable vertex, since every variable occurs either positively or negatively. Each special clause vertex C i , j C_{i,j} C i , j is adjacent to exactly the variable vertices R i = { r i , j ′ ∣ r ∈ R , j ′ ∈ [ t + 1 ] } R_i = \{r_{i,j'} \mid r \in R, j' \in[t+1]\} R i = { r i , j ′ ∣ r ∈ R , j ′ ∈ [ t + 1 ]} , note that R i ∩ R i ′ = ∅ R_i \cap R_{i'} = \varnothing R i ∩ R i ′ = ∅ for i ≠ i ′ i \ne i' i = i ′ .
Since restricting a semi-ladder to any four of its positions again yields a semi-ladder, it suffices to rule out semi-ladders of height exactly 4. Suppose, for contradiction, that a 1 , … , a 4 , b 1 , … , b 4 a_1,\ldots,a_4,b_1,\ldots,b_4 a 1 , … , a 4 , b 1 , … , b 4 is such a semi-ladder. Recall that the incidence graph is bipartite between variable and clause vertices. If a 1 a_1 a 1 were a clause vertex, then its neighbors b 2 , b 3 , b 4 b_2,b_3,b_4 b 2 , b 3 , b 4 would all be variable vertices, and passing to the mirrored semi-ladder b 4 , … , b 1 , a 4 , … , a 1 b_4,\ldots,b_1,a_4,\ldots,a_1 b 4 , … , b 1 , a 4 , … , a 1 would place a variable vertex in the first position; we may therefore assume that a 1 a_1 a 1 is a variable vertex.
As a 1 a_1 a 1 is a variable vertex adjacent to b 2 , b 3 , b 4 b_2,b_3,b_4 b 2 , b 3 , b 4 , these three are clause vertices; in turn, a 1 , a 2 , a 3 a_1,a_2,a_3 a 1 , a 2 , a 3 are adjacent to the clause vertex b 4 b_4 b 4 and hence are variable vertices. Consider now b 2 b_2 b 2 and b 3 b_3 b 3 , whose diagonal partners a 2 a_2 a 2 and a 3 a_3 a 3 are variable vertices with { a 2 , b 2 } ∉ E \{a_2,b_2\} \notin E { a 2 , b 2 } ∈ / E and { a 3 , b 3 } ∉ E \{a_3,b_3\} \notin E { a 3 , b 3 } ∈ / E . As blue clause vertices are adjacent to all variable vertices, both b 2 b_2 b 2 and b 3 b_3 b 3 must be special clause vertices, say with first indices i 2 i_2 i 2 and i 3 i_3 i 3 . Then, by its adjacency, a 1 ∈ R i 2 ∩ R i 3 a_1 \in R_{i_2} \cap R_{i_3} a 1 ∈ R i 2 ∩ R i 3 . As the sets R i R_i R i are pairwise disjoint, this forces i 2 = i 3 i_2=i_3 i 2 = i 3 and thus R i 2 = R i 3 R_{i_2}=R_{i_3} R i 2 = R i 3 . But a 2 a_2 a 2 is adjacent to b 3 b_3 b 3 and not to b 2 b_2 b 2 , so a 2 ∈ R i 3 ∖ R i 2 = ∅ a_2 \in R_{i_3} \setminus R_{i_2} = \varnothing a 2 ∈ R i 3 ∖ R i 2 = ∅ , a contradiction.
Correctness. First suppose that for a given instance of Red-Blue Dominating Set there are at most k k k red vertices r ( 1 ) , … , r ( k ) r^{(1)},\ldots,r^{(k)} r ( 1 ) , … , r ( k ) that together cover all blue vertices. Then assigning r i , 1 ( i ) r^{(i)}_{i,1} r i , 1 ( i ) to true for each i ∈ [ k ] i \in[k] i ∈ [ k ] will satisfy all clauses in φ \varphi φ that originated from blue vertices. Furthermore, each special clause C i , j C_{i,j} C i , j is satisfied by r i , 1 ( i ) r^{(i)}_{i,1} r i , 1 ( i ) . Thus, since all clauses are satisfied, the remaining instance has treewidth zero.
For the converse direction, assume that there is an assignment α \alpha α that assigns k k k variables S S S in φ \varphi φ such that the incidence graph of φ [ α ] \varphi[\alpha] φ [ α ] has treewidth at most t t t . First, observe that for each i ∈ [ k ] i \in[k] i ∈ [ k ] , the clause vertices C i , 1 , … , C i , t + 1 C_{i,1}, \ldots, C_{i,t+1} C i , 1 , … , C i , t + 1 form a biclique with R i R_i R i and have no further neighbors. By assumption, φ [ α ] \varphi[\alpha] φ [ α ] has treewidth at most t t t , which implies that for all i ∈ [ k ] i \in[k] i ∈ [ k ] , either (1) at least ∣ R ∣ ⋅ ( t + 1 ) − t |R| \cdot(t+1) - t ∣ R ∣ ⋅ ( t + 1 ) − t variables from R i R_i R i need to be assigned by α \alpha α or (2) at least one of the variables in R i R_i R i must have been assigned by α \alpha α in such a way that it satisfies one of the clauses C i , 1 , … , C i , t + 1 C_{i,1}, \ldots, C_{i,t+1} C i , 1 , … , C i , t + 1 . Without loss of generality we can assume ∣ R ∣ > k |R| > k ∣ R ∣ > k (otherwise the original instance of Red-Blue Dominating Set would have been trivial). Then option (1) would require assigning at least ∣ R ∣ ⋅ ( t + 1 ) − t ≥ ∣ R ∣ > k |R| \cdot(t+1) - t \geq|R| > k ∣ R ∣ ⋅ ( t + 1 ) − t ≥ ∣ R ∣ > k variables for a single i i i alone, exceeding the budget; hence option (2) must be the case for all i ∈ [ k ] i \in[k] i ∈ [ k ] . Moreover, since for all i ∈ [ k ] i \in[k] i ∈ [ k ] , the clauses C i , 1 , … , C i , t + 1 C_{i,1}, \ldots, C_{i,t+1} C i , 1 , … , C i , t + 1 contain only positive literals, we can strengthen the previous insight by remarking that for each i ∈ [ k ] i \in[k] i ∈ [ k ] , one of the variables in R i R_i R i must have been assigned positively by α \alpha α , which—recalling the pairwise disjointness of the R i R_i R i —already requires us to set k k k variables, thereby exhausting our entire budget; in particular, α \alpha α assigns no variable negatively.
Analogously, note that for each b ∈ B b \in B b ∈ B , the clause vertices C 1 b , … , C t + 1 b C^b_1, \ldots, C^b_{t+1} C 1 b , … , C t + 1 b form a biclique with the set of all variable vertices, i.e. { r i , j ∣ i ∈ [ k ] , j ∈ [ t + 1 ] , r ∈ R } \{r_{i,j} \mid i \in[k], j \in[t+1], r \in R\} { r i , j ∣ i ∈ [ k ] , j ∈ [ t + 1 ] , r ∈ R } . Hence, for each b ∈ B b \in B b ∈ B , at least one of the clauses C 1 b , … , C t + 1 b C^b_1, \ldots, C^b_{t+1} C 1 b , … , C t + 1 b must be satisfied by α \alpha α . Since α \alpha α assigns variables only positively, we can conclude that for any variable r i , j r_{i,j} r i , j that satisfies C 1 b , … , C t + 1 b C^b_1, \ldots, C^b_{t+1} C 1 b , … , C t + 1 b , we must have that { r , b } ∈ E \{r,b\} \in E { r , b } ∈ E holds in the original instance of Red-Blue Dominating Set. Therefore, the set { r ∈ R ∣ r i , j ∈ S } \{r \in R \mid r_{i,j} \in S\} { r ∈ R ∣ r i , j ∈ S } , which has size at most k k k , dominates all blue vertices. □
Concluding Remarks
For all fixed integers d d d , k k k , and t t t , we give a linear-time algorithm for detecting weak t t t -treewidth backdoors of size at most k k k on SAT instances whose signed incidence graphs exclude semi-ladders of height d d d . Our result strictly generalizes previous algorithms for bounded-clause-width SAT [17 ] and for K d , d K_{d,d} K d , d -free SAT [28 ] to a much richer family of dense instances. By complementing our algorithmic contribution with matching lower bounds on (a) signed ladder-free and (b) unsigned semi-ladder-free instances, we demonstrate that signed semi-ladder-freeness is an appropriate structural notion for tackling dense SAT instances.
A natural direction for future work is to situate the tractability of detection of a weak t t t -treewidth backdoor within the landscape of dense graph classes obtained as transductions of sparse classes, as surveyed in [33 ] (see e.g. [33 Figure 1] ). We highlight two especially relevant dense structural notions here: monadically stable and bounded twin-width graph classes, both of which have seen considerable algorithmic success and mark independent tractability frontiers for FO model checking in the dense regime [9 , 6 ] . Monadically stable graph classes are exactly those that do not transduce the class of all half-graphs (ladders). One of our hardness results shows that just excluding large ladders is not enough for tractability, but excluding the presence of large ladders as transductions—which leads to monadically stable graph classes—may lead to tractability. Similarly, our lower bounds do not rule out efficient weak backdoor detection on instances of bounded twin-width.
On a more technical note, we remark that our current algorithmic write-up expects a bound on the signed semi-ladder height of an instance to be provided as part of the input. Determining a tight upper bound for this height is non-trivial and, to the best of our knowledge, there is no such algorithm achieving this in linear time. Nevertheless, our algorithm can be adjusted such that, given integers d d d , k k k , t t t and a SAT instance φ \varphi φ , it correctly outputs one of the following: (a) a satisfying assignment, (b) a semi-ladder of height d d d , or (c) a guarantee that there is no weak ( k , t ) (k,t) ( k , t ) backdoor. In particular, it may provide a witnessing semi-ladder for cases where the algorithm fails due to d d d not being an upper bound on the semi-ladder height.
Acknowledgments. This research was funded in whole or in part by the Austrian Science Fund (FWF), projects 10.55776/COE12 and 10.55776/Y1329 and by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation), project 563448077. Roohani Sharma acknowledges the support of the Young Scientist Fellowship of the Institute for Basic Science (IBS-R029-Y8).
Declaration on the use of AI tools. The authors used Claude Opus 4.7 and 4.8 as well as Claude Fable 5 (Anthropic) and Codex with GPT-5.5 (OpenAI) in the following ways. (i) To assist in the proofreading and polishing of our proofs and prose. (ii) To assist in producing figures and visualizations in tikz. The authors assume responsibility for all content.
W[1]-hardness of Minimum Weight SAT on K 2 , 2 K_{2,2} K 2 , 2 -free instances
Multicolored Clique
Input: A graph G G G , a natural number k k k and a partition of V ( G ) V(G) V ( G ) into k k k independent sets V 1 , … , V k V_1,\ldots,V_k V 1 , … , V k called the color classes.
Parameter: k k k
Question: Does there exist u i ∈ V i u_i \in V_i u i ∈ V i , for each i ∈ [ k ] i \in[k] i ∈ [ k ] , such that G [ { u 1 , … , u k } ] G[\{u_1,\ldots,u_k\}] G [{ u 1 , … , u k }] is a clique?
Minimum Weight SAT
Input: A CNF-SAT formula φ \varphi φ and a natural number k k k
Parameter: k k k
Question: Does there exist a satisfying assignment of φ \varphi φ that assigns at most k k k variables the value 1?
Lemma A.1. Minimum Weight SAT is W[1 ] -hard on K 2 , 2 K_{2,2} K 2 , 2 -free instances.
Proof. We give a parameter-preserving reduction from Multicolored Clique. Towards this, let ( G = ( V 1 , … , V k ) , k ) (G=(V_1,\ldots,V_k), k) ( G = ( V 1 , … , V k ) , k ) be an instance of Multicolored Clique, where V 1 , … , V k V_1,\ldots,V_k V 1 , … , V k are the color classes. We create a SAT formula, whose variable set is the same as the set of vertices of G G G , that is ⋃ i = 1 k V i \bigcup_{i=1}^{k} V_i ⋃ i = 1 k V i . The clause set is defined as follows: for each i ∈ { 1 , … , k } i \in\{1,\ldots,k\} i ∈ { 1 , … , k } , create a clause containing a positive literal corresponding to each vertex in V i V_i V i . Such clauses are called color-class-clauses. Further for each u ∈ V i u \in V_i u ∈ V i and v ∈ V j v \in V_j v ∈ V j , such that { u , v } ∉ E ( G ) \{u,v\} \notin E(G) { u , v } ∈ / E ( G ) , create a clause containing a negative literal of u u u and a negative literal of v v v . Such clauses are called non-adjacency-clauses. Then ( φ , k ) (\varphi,k) ( φ , k ) is an instance of Minimum Weight SAT, where φ \varphi φ is the formula as created above.
For the correctness, if { u 1 , … , u k } \{u_1,\ldots,u_k\} { u 1 , … , u k } is a clique in G G G , where i ∈ { 1 , … , k } i \in\{1,\ldots,k\} i ∈ { 1 , … , k } , then consider an assignment of φ \varphi φ where all variables corresponding to the vertices of { u 1 , … , u k } \{u_1,\ldots,u_k\} { u 1 , … , u k } are assigned 1 and all other vertices are assigned 0. This assignment satisfies all color-class-clauses because there is one vertex from each color class whose variable is assigned 1. Secondly, for each non-adjacent pair of vertices of G G G , both the end-points are not chosen to be in the clique { u 1 , … , u k } \{u_1,\ldots,u_k\} { u 1 , … , u k } , such the variables corresponding to these end-points are not both set to 1, thus the non-adjacency-clauses are satisfied.
The other direction works similarly. Consider a satisfying assignment α \alpha α for the formula φ \varphi φ which has at most k k k ones. We claim that the vertices of G G G corresponding to the variables of φ \varphi φ that α \alpha α assigns to 1, induce a clique of size k k k in G G G , each of whose vertex belongs to a different color class. Indeed, since α \alpha α satisfies the color-class-clauses, it sets exactly one variable from each color class vertex 1. Let u i , u j u_i,u_j u i , u j be vertices corresponding to two variables that are set to 1 by α \alpha α . Then { u i , u j } ∈ E ( G ) \{u_i,u_j\} \in E(G) { u i , u j } ∈ E ( G ) because otherwise it would contradict a non-adjacency-clauses.