Manuscript Offprint
arXiv:2611.12321Strong Backdoor to Forests is FPT: Tight Linear-Time FPT for Essentially General SAT
Abstract
The Boolean Satisfiability (SAT) problem is NP-complete, yet practical SAT solvers work exceptionally well in practice. Williams, Gomes, and Selman [IJCAI 2003] introduced backdoors to help explain this gap. Backdoors are small sets of variables whose assignment results in a formula in some fixed tractable class. We study the problem of finding strong backdoors to formulas whose incidence graphs have treewidth at most a prescribed bound : find a small set of variables such that every assignment to this set of variables results in a formula whose incidence graph has treewidth bounded by .
In a seminal work, Gaspers and Szeider [FOCS 2013] gave a fixed-parameter tractable (FPT) approximate algorithm for finding a strong backdoor of size at most to incidence treewidth at most , for a given CNF-formula . In particular, their algorithm runs in time, and finds a strong backdoor to treewidth at most , of , of size at most whenever there exists one of size at most . Determining whether the detection of strong backdoors to bounded incidence treewidth is FPT parameterized by was left open in their work and this has been repeatedly posed as an open question by Gaspers and Szeider, for example in [The Multivariate Algorithmic Revolution and Beyond 2012] and more recently in [Computer Science Reviews 2025], even for incidence forests and when the input is a 3-CNF formula. We answer this question affirmatively.
There are several interesting features of our result, beyond resolving the open question of Gaspers and Szeider. First, Lokshtanov, Panolan, and Ramanujan [ICALP 2022] proved W[2]-hardness of finding strong backdoors even when the target class is the class of forests, for arbitrary CNF formulas. We observe that their hardness construction crucially relies on using tautological clauses in the formula, that is clauses containing a variable and its negation, and does not establish hardness when such clauses are excluded. For the purposes of solving SAT, such tautological clauses in the input instance are meaningless.
We show that strong backdoors to forests can be found in linear-FPT time on arbitrary non-tautological CNF formulas (not just on 3-CNF formulas). Given such a formula and a budget , our algorithm finds a strong backdoor to the class of forests, of size at most , or correctly reports that none exists, in time. Moreover, we show that our result is as tight as it can get. First, we show that finding strong backdoors to treewidth for any is W[1]-hard, even on non-tautological 3-CNF formulas. Second, the running time of our algorithm is tight: it is linear in the input size and a better than double-exponential dependence on in the running time would imply a -time algorithm for solving 3-SAT on variables, which would beat even the very recently claimed sub-exponential algorithm for solving 3-SAT by OpenAI and Anthropic.
*Supported by the Young Scientist Fellowship (YSF) of the Institute for Basic Science (IBS-R029-Y8).
1 Introduction
The Boolean Satisfiability (SAT) problem is a cornerstone of computational complexity and a central tool for solving search and reasoning problems. Although SAT is NP-complete, modern SAT solvers routinely handle large instances arising in applications. Understanding which properties of these instances make this possible has motivated extensive research into determining tractable fragments of SAT and ways of exposing them inside more general formulas. Williams, Gomes, and Selman [WGS03] introduced backdoors as one explanation for this phenomenon: assigning a small set of key variables can reduce a large formula to an instance of a tractable class. A small backdoor can therefore reveal tractability that is not apparent from the formula as a whole.
The choice of the tractable target class gives rise to two broad directions, both of which are very well explored [NRS04, GMO+17, GS12a, GS13, FLM+15, LPR22] (see related work paragraph). Syntactic classes of formulas restrict the structure of the clauses. Standard examples include Horn formulas, in which each clause has at most one positive literal, and 2-CNF formulas, in which each clause has at most two literals. On the other hand structural classes restrict the interactions between variables and clauses, typically through a graph representation of the formula. A fundamental example is the notion of (bounded) incidence treewidth of a formula. The incidence graph of a CNF formula has one vertex for each variable and each clause, with an edge joining a variable to every clause in which it occurs (positively or negatively). For every fixed , SAT is solvable in linear time on formulas whose incidence graphs have treewidth at most [SS10].
There are two standard notions of backdoors to a target class . A set of variables is a weak backdoor if some assignment to leaves a satisfiable formula . It is a strong backdoor if for every assignment to . Here, is obtained by deleting satisfied clauses and removing falsified literals, with identical resulting clauses merged. Given a strong backdoor of size for a formula , one can decide satisfiability of by solving the resulting formulas obtained by fixing an assignment to the strong backdoor variables, each of which belongs to a structured target class of choice. Consequently, a small strong backdoor to bounded incidence treewidth permits efficient SAT solving even when the original incidence graph has unbounded treewidth.
To exploit this approach towards solving SAT, however, one must first find such a backdoor. This leads to the central algorithmic question of (strong/weak) backdoor detection: given a formula and an integer , can we find a (strong/weak) backdoor of size at most , or correctly determine that none exists, in time for a computable function ? Such an algorithm is fixed-parameter tractable (FPT) with respect to . For bounded-treewidth target class, one may also include the target width in the parameter and ask for an algorithm with running time . Backdoor detection and its parameterized complexity have become a substantial research program, see for example the surveys of Gaspers and Szeider [GS12b, GS26], one of which is as recent as from last year and the other one is from more than a decade ago.
In this work we focus on finding strong backdoors to bounded incidence treewidth. Gaspers and Szeider [GS12a] first obtained an FPT-approximation algorithm for strong backdoors to the class of forests (treewidth 1). They subsequently, in a seminal work, extended this result to the case when the target class has arbitrary bounded incidence treewidth [GS13]. Their result showed that given a CNF formula and integers , there is an algorithm that runs in time, for some computable function , that either finds a strong backdoor to incidence treewidth at most of size at most , or correctly reports that no such backdoor of size at most exists. Such an FPT-approximation algorithm suffices to establish fixed-parameter tractability of SAT parameterized by the size of a smallest strong backdoor to the target class of incidence treewidth at most .
The work of Gaspers and Szeider [GS13] leaves open a fundamental research question:
Is finding strong backdoors to treewidth-t FPT parameterized by ?
That is, is there an algorithm that runs in time and either reports a strong backdoor to treewidth at most of size at most , or correctly concludes that none exists?
Weak backdoors. For weak backdoor detection, even when the target class is the class of forests (that is when the incidence treewidth is 1) the problem is hard. In particular, Gaspers and Szeider [GS12a] proved that finding a weak backdoor to forests is W[2]-hard (on unrestricted CNF formulas), parameterized by . In fact, unlike the strong backdoors case, unless FPT = W[1], the problem admits no FPT-approximation whose approximation factor is bounded by any computable function of , even when the target class is that of forests.¹ Positive FPT results for the question of finding weak backdoors to bounded incidence treewidth classes, have thereafter focused on restrictions on the structure of the input formula. Fomin, Lokshtanov, Misra, Ramanujan, and Saurabh [FLM⁺15] obtained a linear-time FPT algorithm for solving -SAT via backdoors to bounded treewidth, and established FPT-time detection of weak backdoors when the input formula is a -SAT formula for a fixed constant . Later, Lokshtanov, Panolan, and Ramanujan [LPR22] extended the FPT algorithm for weak-backdoor detection to bounded incidence treewidth class, when the input formula's incidence graph exclude a fixed biclique as a subgraph. Their result applies, in particular, when the incidence graph of the input formula belongs to the class of nowhere-dense graphs. More recently, Dreier, Ganian, Gründel, Sharma and Wietheger [DGG⁺26] obtained a linear-time FPT algorithm for finding a weak backdoor to incidence treewidth , when the signed incidence graph of the input formula is semi-ladder-free. This extends tractability to classes of input formulas whose signed incidence graphs belongs to an appropriate dense graph class. The results mentioned in this paragraph concern finding weak backdoors in FPT time. The result of Fomin, Lokshtanov, Misra, Ramanujan, and Saurabh [FLM⁺15] also deals with strong backdoors but essentially gives an FPT-approximation like Gaspers and Szeider [GS13] for strong backdoors, but for -SAT formulas in linear FPT time.
Strong backdoors. Coming back to the topic of finding strong backdoors to incidence treewidth , which is the topic of this work, unlike for finding weak backdoors, the existence of an exact FPT algorithm has remained open, even for 3-CNF formulas, and even when the target class is the class of incidence treewidth 1 (that is forests). Asked more than a decade ago [GS13, GS12b], this specific question was reiterated in the recent survey of Gaspers and Szeider [GS12b, GS26], which we resolve in positive in this work.
Is finding a strong backdoor to the class of forests, given a 3-CNF formula, FPT?
Lokshtanov, Panolan and Ramanujan [LPR22] proved W[2]-hardness of finding strong backdoors to incidence treewidth , for every fixed (that is, including the case when the target class is that of forests), on arbitrary CNF formulas. There is, however, a crucial feature of their construction that is worth making a note of. The constructed hard instance relies on having tautological clauses, that is clauses that contain both a variable and its negation and therefore are satisfied under every assignment. Though such tautological clauses can non-trivially affect the problem of finding (strong) backdoors, for the purposes of understanding SAT, which is the eventual goal of studying backdoors at the first place, such clauses are useless as almost any pre-processing algorithm for SAT will first
¹The reduction of Gaspers and Szeider [GS12a] from HITTING SET preserves the optimum solution size. Composing it with the standard optimum-preserving reduction from DOMINATING SET to HITTING SET, and applying the FPT-inapproximability result of Karthik, Laekhanukit, and Manurangsi [KLM19], yields the claim.
get rid of these clauses before doing anything non-trivial on the instance. Thus, despite the hardness result of Lokshtanov, Panolan, and Ramanujan [LPR22], the following question still remained widely open.
Is finding a strong backdoor to the class of incidence treewidth , given a non-tautological CNF formula, FPT?
Our results. We resolve this question positively for and negatively for any . More formally, for every fixed integer , we consider the following problem.
STRONG BACKDOOR TO TREEWIDTH- Parameter: Input: A non-tautological CNF formula and an integer . Question: Does have a strong backdoor to treewidth- of size at most ?
For , we call this problem STRONG BACKDOOR TO FOREST.
Theorem 1.1. STRONG BACKDOOR TO FOREST can be solved in time.
Theorem 1.1, in particular resolves the open question posed by Gaspers and Szeider [GS12b, GS26] about finding strong backdoors to forests on 3-CNF formulas, and goes much beyond its resolution. When the input formula is a 3-CNF formula, the non-tautological assumption can be dropped; see Appendix A after reading Sections 2 and 4. Thus our result also answers the question for 3-SAT [GS12b, GS26] without excluding tautological clauses.
Interestingly, we show that instead the hard obstacle lies in generalizing the treewidth of the target class (and not really in generalizing the structure of the input instance).
Theorem 1.2. For every fixed integer , STRONG BACKDOOR TO TREEWIDTH- is W[1]-hard parameterized by , even on non-tautological 3-CNF formulas.
Together with the FPT-approximation of Gaspers and Szeider [GS13], Theorem 1.2 separates the exact detection of strong backdoors to incidence treewidth , from FPT-approximation for every .
To prove Theorem 1.2 we first show that the graph problem SIMULTANEOUS TREEWIDTH- DELETION is W[1]-hard whenever . Interestingly, this problem was shown to be FPT when in [ALMS18].
SIMULTANEOUS TREEWIDTH- DELETION Parameter: Input: Graphs on the same vertex set , and a nonnegative integer . Question: Does there exist with such that for every ?
Lemma 1.3 (Hardness of SIMULTANEOUS TREEWIDTH- DELETION). For every fixed integer , SIMULTANEOUS TREEWIDTH- DELETION is W[1]-hard parameterized by .
Finally, we first observe that the running time of Theorem 1.1 is linear in the size of the input, which is already optimum, and at same time we show that the double-exponential dependence on in the running time is “unavoidable”, as a better than double-exponential dependence on for STRONG BACKDOOR TO FOREST would solve 3-SAT on variables in time. This would have refuted the Exponential Time Hypothesis (ETH). But already a few days ago, OpenAI [Ope26] and Anthropic [Cla26] announced that the Exponential Time Hypothesis (ETH) is false, by giving an algorithm that solve 3-SAT in time. Our “lower bound” now implies that a better than double-exponential dependence in in the algorithm of Theorem 1.1 would give an even faster algorithm for 3-SAT than what is currently claimed by OpenAI and Anthropic.
Theorem 1.4. Unless 3-SAT on variables can be solved in time, STRONG BACKDOOR TO FOREST cannot be solved in time, even on non-tautological 3-CNF formulas.
Related work. Finding backdoors in FPT time has been an active research direction for over two decades, with continuing work on tractable target classes and the complexity of detecting backdoors into them. The surveys of Gaspers and Szeider [GS12b, GS26] give comprehensive accounts of this development and the parameterized complexity of backdoor detection.
Beyond the bounded-treewidth target classes discussed in this work, syntactic targets have received extensive attention. Nishimura, Ragde, and Szeider [NRS04] proved that strong-backdoor detection into Horn and 2-CNF is FPT, whereas weak detection is W[2]-hard. Misra, Ordyniak, Raman, and Szeider [MORS13] obtained single-exponential algorithms for weak detection on 3-CNF formulas. Gaspers, Ordyniak, Ramanujan, Saurabh, and Szeider [GOR+16] proved that detecting weak or strong backdoors to -Horn is W[2]-hard and gave an FPT-approximation algorithm for finding deletion backdoors to -Horn. Ramanujan and Saurabh [RS14] gave an exact FPT algorithm for deletion-backdoor detection with linear dependence on the input size. Gaspers, Misra, Ordyniak, Szeider, and Živný [GMO+17] classified strong backdoor detection to classes of formulas that are unions of Schaefer classes. For example, Horn 2-CNF admits FPT detection, whereas Horn dual Horn is W[2]-hard.
Gaspers and Szeider [GS12c] obtained an FPT-approximation for strong backdoor detection into nested formulas. Ordyniak, Paulusma, and Szeider [OPS13] proved polynomial-time solvability of SAT on -acyclic formulas, but W[2]-hardness of strong-backdoor detection into this class. Here acyclicity is defined on the formula's hypergraph, giving a target class more general than incidence forests.
Related work also studies parameters that can remain bounded when minimum backdoor size is unbounded. Ganian, Ramanujan, and Szeider [GRS17a, GRS17b] obtained FPT detection and evaluation algorithms using the torso treewidth of a backdoor into suitable SAT and CSP targets. Mählmann, Siebertz, and Vigny [MSV21] introduced recursive backdoor depth, which permits independent processing of components created by assignments and parallels recursive elimination in treedepth. Dreier, Ordyniak, and Szeider [DOS24, DOS23] developed this approach for syntactic SAT targets and CSP, including FPT-approximation of depth and linear-time SAT solving for bounded depth into Horn, dual Horn, and 2-CNF. Adaptive backdoor trees [SS08] and backdoor DNFs [OSS24] provide further detection problems parameterized by the number of leaves or terms. These directions vary the parameter or certificate; our work concerns exact detection of small backdoors into a structural target class.
Graph notation. For a graph , write and for its vertex and edge sets, respectively. We write for the degree of a vertex and for the treewidth of . A graph has treewidth at most one if and only if it is a forest.
For an integer , a graph is -degenerate if every nonempty subgraph of contains a vertex of degree at most . The degeneracy of is the smallest such integer .
A deletion-backdoor is one where deleting all literals of this set from all clauses results in the mentioned tractable class.
The 2-core of , denoted by , is the unique maximal induced subgraph in which every vertex has degree at least two. It can be computed in linear time by repeatedly deleting vertices of degree at most one. The resulting graph is independent of the deletion order and may be empty. Every cycle of lies in .
Definition 2.1 (Cyclomatic number). Let denote the number of connected components of a graph . The cyclomatic number of is
Equivalently, is the minimum number of edges whose deletion makes G a forest. In particular, if and only if G is a forest. Deleting a vertex of degree a decreases the cyclomatic number by at most . Deleting a vertex of degree at most one leaves the cyclomatic number unchanged; consequently,
Lemma 2.2. Let be an integer and let be a graph with . Then contains at most distinct simple cycles.
Proof. Let be a spanning forest of and put . Then . Every cycle contains an edge of . Distinct simple cycles have distinct intersections with : otherwise, their symmetric difference would be an even-degree subgraph of the forest and would therefore be empty. Thus the cycles of inject into the nonempty subsets of , giving at most cycles. The same bound holds for .
CNF formulas and incidence graphs. A literal is a Boolean variable or its negation . These are called positive and negative literals, respectively.
A clause is a finite set of literals, interpreted as their disjunction. A CNF formula is a finite set of distinct clauses, interpreted as their conjunction. The empty clause is false, and the empty formula is true.
A clause is tautological if it contains both and for some variable . A formula is non-tautological if none of its clauses is tautological.
For a clause , let denote its set of variables. For a formula , put
We may regard as a formula over any variable set ; variables of need not occur in .
The incidence graph is the bipartite graph whose two parts consist of the variable vertices and the clause vertices of . A variable vertex is adjacent to a clause vertex if and only if . We denote the set of clause vertices by and identify each clause vertex with its clause when convenient. The incidence edge , where is a variable vertex and is a clause vertex, is labelled positive if and negative if . For a non-tautological formula, every incidence has exactly one sign.
We measure the size of a formula by
where is the number of literals in C.
Assignments and reducts. Let be a formula over a variable set . An assignment to is a function . For , the literal is true under if , and is true if . A clause is satisfied by if it contains a literal that is true under . Assignments to variables absent from have no effect on .
The semi-reduct is obtained by deleting every clause satisfied by and removing all literals on variables of from the remaining clauses, without merging clauses that become identical. Each retained clause keeps its original identity. In particular, clauses that become empty are retained.
The graph has one clause vertex for each retained clause and one variable vertex for each variable in , including isolated variable vertices. Thus is a subgraph of . An empty clause corresponds to an isolated clause vertex.
The reduct is the CNF formula obtained from by merging identical clauses. When and , we also write . For consistent assignments and , .
Strong backdoors. Let be a CNF formula over , and let be an integer. A set is a strong backdoor to treewidth- of if for every assignment . When , we call a strong forest backdoor.
Convention on reducts. Two distinct clauses of a CNF-formula can become identical after a partial assignment has been fixed. The semi-reduct keeps a separate copy for each surviving original clause, and hence would keep multiple copies for clauses that become identical after fixing the assignment . Since we represent a CNF formula as a set of clauses, we form the reduct by merging identical copies.
The two representations (reducts and semi-reducts) describe the same Boolean function, but they can give different incidence graphs. For example, setting in leaves two copies of in the semi-reduct. The two clause vertices, together with and , form a four-cycle. In the reduct, the copies merge into a single clause vertex, and the incidence graph is a path.
Gaspers and Szeider formulate the open question of exact strong forest backdoor detection using reducts in both their original survey and its follow-up [GS12b, GS26]. That is, they ask whether there is a set of variables such that for every assignment to , the incidence graph of the resulting reduct has treewidth at most . This is the version that we address in this paper. Though the formulation underlying their FOCS 2013 FPT-approximation algorithm [GS13] uses semi-reducts: they require the treewidth of the incidence graph of to have treewidth at most . We note that working with reducts instead of semi-reducts, only adds more complications to be handled in the proof: a cycle can disappear even if the assignment fixes none of its variables and satisfies none of its clauses, in the reduct notation. We remark that our proof can be traced to also give the same result if working with semi-reducts instead of reducts.
Representation and running times. Running times are measured in the word-RAM model. Variables, literals, and graph vertices are represented by integer indices. Graphs and formulas are stored using adjacency and literal-occurrence lists.
Integer sorting. We use counting sort to sort records whose integer keys belong to , in time [CLRS01]. Counting sort preserves the relative input order of records with the same key.
For records with two keys , both in , first sort by and then by using counting sort. The second sorting step preserves the ordering by among records with the same . Thus records with identical pairs of keys occur consecutively, and the total time is . More generally, records with keys, each in , can be sorted by processing the keys from last to first, in time.
3 Technical overview
We begin with a technical overview of the proof of Theorem 1.1, which gives an algorithm for finding a strong forest backdoor of size at most in a non-tautological CNF formula in time. We first recall how the FPT-approximation result of Gaspers and Szeider [GS13] is obtained. Given , and a target treewidth , their algorithm runs in time and either returns a strong backdoor to incidence treewidth at most of size at most , or correctly reports that none of size at most exists.
The need to solve a “simultaneous” version. To capture what makes dealing with strong backdoors tricky, suppose that an algorithm somehow finds a variable that is guaranteed to be in the sought strong backdoor solution. How can one get rid of such a variable? For many problems having an element of the solution at hand lets us delete this element from the instance, put it in the solution, decrease the solution budget by 1 and recurse on the resulting instance with a smaller solution budget. For the strong backdoor detection problem, this almost standard step does not work. Indeed, if is in the solution, to get rid of it, we need to remember that in the resulting instance there is a set of strong backdoor variables in the formula (obtained by setting in ) and in the formula (obtained by setting in ), simultaneously.
The reason the algorithm of Gaspers and Szeider [GS13] introduces approximation, is that they deal with the above scenario by looking at the two formulas and independently. They recursively solve the problem with new parameter now in instance and independently in , and return the union of these two solutions along with .
To avoid getting the approximation, our strategy is to solve the “simultaneous” version of the problem, where one is given a set of formulas on the same variable set, where at any point is bounded by , and the goal is to find a set of at most variables that is simultaneously a strong backdoor for each formula .
The treewidth-based win/win strategy of Gaspers and Szeider. To get a variable that is guaranteed to be in a sought solution, Gaspers and Szeider [GS13] use the machinery from Graph Minors [RS86]. The approach involving graph minors is a usual treewidth-based win/win approach: if the treewidth of the (incidence graph) of the formula is large, then they find a bounded set of variables that is guaranteed to intersect every solution, in which case one can branch on this set to get the desired variable . Otherwise, the treewidth of the formula is small, in which case the application of Courcelle's theorem [ALS91] solves the problem completely in one shot.
Since we settled to solve the simultaneous version of the problem, to avoid the approximation factor, the treewidth-based win/win approach of Gaspers and Szeider [GS13] stalls for us. Recall we now have an instance . Even if one of the formulas have large treewidth, we can use the graph minors approach of Gaspers and Szeider [GS13] to find a small set of variables that is supposed to intersect every solution of and therefore in particular, every solution of the simultaneous instance . Interestingly, the problem lies in the other direction: when the treewidth of each individual formula is bounded, one cannot rely on Courcelle's theorem. And that is not because the simultaneous version is not expressible in CMSO-logic, but that's because even though the treewidth of each formula is bounded, the treewidth of the entire instance
containing some formulas may not be bounded. This is easy to observe: let and be two graphs on the same vertex set where each of them is a disjoint union of several paths. Then each has treewidth 1 but the union of and can have unbounded treewidth as the union can be a grid if these disjoint paths are chosen appropriately: the set of paths in going from “left-to-right” and the ones in going from “top-to-bottom”.
In this work we completely avoid the use of the Graph Minors machinery. As our lower bound of Theorem 1.2 suggests that the approximation factor cannot be removed for the case when the target class has treewidth , we are in a nicer landscape of where we only care about case. Since we already settled to solve the simultaneous version of the problem, it is enough to find procedures that guarantee to find small sets that are guaranteed to contain a solution variable, in which case we can guess a solution variable and create a new instance where the number of simultaneous formulas we need to solve double up: by setting in each of the input formulas, and setting in each of the input formulas. Since we are looking for a solution of size at most , the number of formulas in a simultaneous instance at any point is bounded by .
Internal and external cycle killers. Coming to our methods for the proof of Theorem 1.1, as we mentioned earlier we will solve the more general simultaneous version of the problem where the instance contains many formulas.
We say that a variable kills a cycle internally if its variable vertex lies on . It kills externally if it lies outside and occurs positively in one clause of and negatively in another. In either case, assigning either value to deletes a vertex of in the reduct.
With this observation, one is tempted to conclude that our problem reduces to finding a set of at most variables that kills every cycle in each input incidence graph, either internally or externally. But this is incorrect in general as an assignment can make two clauses identical, causing their clause vertices to be merged. Together with clause satisfaction, this can destroy a cycle under every assignment to the chosen variables, even though none of them kills that cycle internally or externally.
The role of a four-cycle . To resolve the concern above, we first identify when clause merging can actually destroy a cycle. For this to happen, this requires a four-cycle in the original incidence graph. Indeed, suppose two distinct clauses become identical after an assignment and still contain two distinct variables and . Both original clauses must contain and , so their clause vertices together with form a four-cycle. Thus, if the incidence graph is -free, only clause vertices of degree at most one can be merged. Such merging does not affect acyclicity.
Consequently, when all input incidence graphs are -free, our cycle-killing viewpoint is exact: we seek at most variables that collectively kill every cycle in every input incidence graph, internally or externally. Thus, our first objective is to get rid of cycles of length four in each incidence graph.
Eliminating . Eliminating a four-cycle when all clause-lengths is bounded (like when the input formulas are -CNF SAT formulas, for a fixed ) is straightforward. Consider a four-cycle in one of the input incidence graphs, where are distinct variable vertices and are distinct clause vertices representing different sets of literals. Every simultaneous strong forest backdoor must contain a variable from . Otherwise, assigning the backdoor variables leaves both clauses unchanged and distinct, so the four-cycle survives. If every clause has at most literals for a fixed constant , this gives at most possible variables to choose. One can then branch on choosing a variable .
For general CNF formulas, however, can be arbitrarily large, so branching on all its variables no longer gives an FPT algorithm. In order to proceed, we first identify the ways in which a four-cycle can disappear. Since and are distinct sets of literals, . Choose a literal and let be its variable. We branch on including , or in the solution. If none is chosen, both cycle variables and the literal distinguishing the clauses remain. A strong forest backdoor must then contain a variable occurring with opposite signs in and . Otherwise, an assignment falsifying all chosen-variable occurrences in these clauses would preserve the four-cycle. Such an opposite-sign variable satisfies one of under either truth value.
There may be arbitrarily many such variables. So instead of branching on such variables, we instead maintain sets of variables, alongside our simultaneous instance, that we call candidate sets. The idea is to think of the solution strong backdoor as a -sized ordered set whose first vertex comes from , second vertex comes from and so on. Initially, each contains all the variables.
Coming back to the branching strategy, in order to ensure that some variable of the clause or is picked by the solution, instead of branching on these variables, we guess whether this variable is the 1st solution variable, 2nd one and so on: choices. In the -th branch, to incorporate this choice we update the -th candidate set or , depending on guessing whether the solution intersects the clause or , where denote the set of variables of clause . The introduction of these candidate sets, useful for controlling such branching leads to defining a more general problem which we call SIMULTANEOUS COLORED STRONG FOREST BACKDOOR.
These restrictions record that a chosen variable occurs in a clause, but do not yet allow us to delete that clause: whether it is satisfied depends on the value assigned to the chosen variable. We therefore refine the branching rule to account for these values.
For each input formula, we maintain a labelled copy for every . The coordinate specifies the value assigned to the variable eventually chosen from . Consider a four-cycle in a copy labelled . For each position and clause , create a branch in which
Discard the branch if this set is empty. Otherwise, delete E from that labelled copy, leaving every other copy unchanged. This refines the membership restriction described above and gives only 2k branches.
To see why deleting is safe, consider any eventual choices and any assignment to their variables. The matching label is given by for every . In this copy, the restriction on guarantees that is satisfied and would disappear in the reduct anyway. Thus, for every choice and assignment, a matching copy continues to represent the correct reduct of each input formula. Since all copies are obtained only by deleting clauses, the construction preserves the validity of every retained choice.
It remains to bound the number of clause deletions before a variable is chosen. For this, we prove that every yes-instance has incidence graphs of degeneracy at most (we explain this later). We reject if any incidence graph exceeds this bound. Otherwise, each deleted clause contains the entire candidate set restricted in that branch. As candidate sets only shrink, this containment continues to hold at subsequent steps.
While a candidate set has at least variables, at most clauses of any original formula can contain it. Otherwise, these clauses and of those variables form a , contradicting -degeneracy. Consequently, for each labelled copy and candidate-set index, only boundedly many deleted clauses can be counted in this way. Every deletion adds a new contribution, so the number of deletion steps along a branch is parameter-bounded.
When some candidate set has at most variables, we branch on its possible choices, include the chosen variable in the solution, decrease the budget, and retain both reduced formulas of every formula. Thus the procedure either reaches instances whose incidence graphs are all -free or makes progress by choosing a solution variable. This allows us to continue with the “cycle-killer” approach.
Win/win based on cyclomatic number. After eliminating the four-cycles, we know that the solutions to our problem are precisely the “cycle-killers” and vice-versa. Our strategy going further is a win/win strategy based on the cyclomatic number of the instances in the simultaneous problem. The cyclomatic number of a graph , denoted , is the minimum number of edges whose deletion results in a forest (note that this is not the feedback vertex set number, but the feedback edge set number). Thus for a connected graph, its cyclomatic number is the number of edges of the graph minus the number of its vertices plus one. In general, for any graph , , where denotes the number of connected components of . A feature of graphs with low cyclomatic number is that they don’t have unbounded number of distinct cycles. In particular, if a graph has cyclomatic number at most , then the number of distinct cycles it has is at most (see Lemma 2.2 for the proof).
Let be an instance of SIMULTANEOUS COLORED STRONG FOREST BACKDOOR problem, where is the common variable set of all formulas in and are the candidate sets which we mentioned earlier while eliminating four-cycles.
Small cyclomatic number. Suppose for every . Incidence graph of each formula in the instance then contains at most simple cycles. Thus, across all formulas, there are cycles, and as we noted earlier.
We regard these cycles as the elements of a SET COVER instance. Each variable provides a set consisting of all cycles it kills, internally or externally. Since the incidence graphs are -free, covering every cycle is equivalent to choosing a simultaneous strong forest backdoor. The candidate-set constraints require us to choose one variable from each .
Without the annotated constraints put by the candidate sets, this is really now just an instance of the SET COVER problem which can be solved in time , where is the universe of the SET COVER instance [FKW04]. Since in our case the universe is the set of all distinct cycles, we can solve such a SET COVER instance and thus our problem, in time . Thus this gives us an FPT algorithm, except that the running time does not match the one promised in Theorem 1.1. Before moving forward, note that even with the annotated constraints posed by the candidate sets, one can still mimic the dynamic programming algorithm that solves SET COVER in time that incorporates these constraints and therefore one can actually solve the full problem in time.
To obtain the claimed dependence on in the running time, we avoid enumerating all cycles. Instead, we first partition the variables of each formula into equivalence classes whose members kill exactly the same cycles (see the proof for the details of how to get this partition). We combine these partitions, across all formulas, by placing two variables in the same class if and only if they belong to the same class in the partition for every input formula (that is, we refine these partitions to get one partition for the instance). Since each formula contributes at most classes, the resulting partition has at most classes.
Thus, variables in the same class kill exactly the same cycles in every input incidence graph. For each candidate set , we retain one arbitrary representative from its intersection with each class. It therefore suffices to try every combination of one retained representative from each candidate set. There are at most such combinations. Since , this gives the desired double-exponential bound.
Large cyclomatic number. When the cyclomatic number of the incidence graph of some formula is large, we identify a bounded set of variables around the highest-degree vertices that every solution must intersect. Consider the 2-core of , which is the graph obtained from by repeatedly deleting vertices of degree at most 1. Choose its highest-degree vertices. Let contain the chosen variable vertices and all variables adjacent to at least two chosen clause vertices. The first group contains at most variables. Since the incidence graph is -free, each pair of chosen clause vertices has at most one common variable neighbor. Hence .
We claim that every strong backdoor, in this case a “cycle-killer” must intersect (in which case one can branch on ). Suppose a strong forest backdoor of size at most avoids . Then contains no chosen vertex, and each variable of is adjacent to at most one chosen clause vertex. Thus these high-degree vertices are largely protected from the variables in . Moreover, every variable in has degree at most that of every chosen vertex. Counting edges using the requirement that every assignment to leaves a forest then bounds the cyclomatic number by . Above this threshold, avoiding is therefore impossible.
Large degeneracy implies a no-instance. We show that every non-tautological CNF formula admitting a strong forest backdoor of size at most has incidence degeneracy at most , which is needed to bound the measure of the branching algorithm while eliminating .
Fix a strong forest backdoor of size at most . Each clause has one of at most signed patterns on : each variable occurs positively, negatively, or not at all. For each pattern, there is an assignment to that falsifies all its literals, preserving every clause with that pattern. These clauses remain distinct after their literals on are removed. Their incidences with the remaining variables must therefore form a forest. Counting edges across these pattern classes yields the degeneracy bound.
This is in sharp contrast to weak backdoors: even a weak forest backdoor of size one places no bound on the degeneracy of the incidence graph. Indeed, a variable occurring positively in every clause satisfies the entire formula when set to true, while the original incidence graph can have arbitrarily large degeneracy. For a strong backdoor, we must also account for the assignment setting that variable to false.
The role of non-tautologicality. The non-tautological assumption is essential to the degeneracy argument. It ensures that the literals of a clause on the backdoor variables can all be falsified by a suitable assignment. A tautological clause containing both and cannot be preserved in this way.
Indeed, allowing tautological clauses permits strong forest backdoors of size one even when the incidence degeneracy is arbitrarily large. For example, consider
Assigning either value to satisfies every clause, so is a strong forest backdoor. However, the clause vertices and the variables induce a , so the incidence degeneracy is at least .
3.1 Lower bounds
The double-exponential dependence. We first reduce a 3-SAT instance on variables to SET COVER. Partition the variables into blocks of size at most . The universe has one element per clause and one per block. Each assignment to a block gives a set containing that block's element and the elements of the clauses it satisfies. A cover of size at most must choose exactly one assignment per block. These assignments combine into a satisfying assignment precisely when their sets cover all clause elements.
We then introduce one variable per set and one incidence cycle per universe element. The cycle for an element contains the variables of all sets that cover it. Since these cycles can share variables, we use selector variables to expose one element cycle at a time. When the selector assignment encodes an element, the clauses along its cycle reduce to binary clauses and the cycle survives. On every other cycle, the assignment deletes a clause on each path between consecutive set variables. The resulting pieces are trees that meet the rest of the incidence graph in at most one vertex each.
Private cycles force every strong backdoor within the budget to contain all selectors. The remaining variables must hit each element cycle under the assignment that exposes it. A chosen set variable contributes its corresponding set to the cover, and a chosen variable private to an element cycle can be replaced by any set covering that element. Conversely, the selectors together with the variables of a set cover form a strong forest backdoor, since the chosen set variables break the exposed cycle under every selector assignment that exposes one.
There are at most sets and the universe has polynomial size in , so we need only selectors. The resulting formula has size and backdoor budget . For with any fixed positive integer , a -time backdoor algorithm would decide the original 3-SAT instance in time , where is independent of . Indeed, for fixed , we have , so the inner exponential is .
We interleave the runs for and return the first answer, since every run decides the same instance. For each fixed , its run is included for all sufficiently large . Since can be made arbitrarily small and the interleaving adds only a polynomial overhead, this gives a single -time algorithm for 3-SAT.
Hardness for target treewidth at least two. The reduction proceeds in two steps. We first reduce PAIRED CUT into SIMULTANEOUS TREEWIDTH- DELETION. We then reduce SIMULTANEOUS TREEWIDTH- DELETION to STRONG BACKDOOR TO TREEWIDTH-, for .
We start from the PAIRED CUT problem, defined below, which is W[1]-hard parameterized by , even when the two input graphs have treewidth two. In this problem, there are two graphs, each with two designated terminals, and a list of selectable pairs of edges, each consisting of one edge from each graph. The goal is to choose at most pairs whose deletion disconnects the terminals in both graphs. We subdivide the two edges of each pair with a common vertex, so deleting that vertex implements the paired choice. We make copies of each input graph. Each copy is a separate graph in the family. The choice vertex for a given edge pair has the same label in every copy, whereas every private vertex has a label unique to its copy. We add missing labels as isolated vertices so that all graphs have the same vertex set. A deletion set of size at most therefore leaves at least one copy of each input graph in which it deletes no private vertex.
At the terminals of each copy, we attach a with the edge between the terminals missing. If a path between the terminals survives in the network, contracting all but one of its edges yields a minor, so the resulting graph has treewidth greater than . If the terminals are separated in the remaining network, each component of that network meets the added gadget in at most one vertex. The input networks have treewidth at most two and the added graph has treewidth
, so the resulting graph has treewidth at most for . Thus the PAIRED CUT instance has a solution of size at most if and only if one set of at most vertices reduces the treewidth of every graph in the constructed family to at most . Write for the resulting graphs, where . This proves -hardness of SIMULTANEOUS TREEWIDTH- DELETION parameterized by the deletion budget plus the number of graphs.
We then reduce SIMULTANEOUS TREEWIDTH- DELETION to STRONG BACKDOOR TO FOREST by encoding the graphs , where , in a single non-tautological 3-CNF formula using shared selector variables. Each edge is represented by a chain of clauses joining its endpoint variables. For each , assigning the selectors according to the -bit binary representation of preserves the chains for as incidence paths. Every other chain breaks into pieces, each containing at most one of its original endpoints. The edge encoding therefore leaves a subdivision of together with trees that meet it in at most one vertex each.
The backdoor budget is . If is a common vertex-deletion set of size at most , then together with the selectors forms a strong backdoor. Under the selector assignment for , the reduct's incidence graph consists of a subdivision of and trees that meet it in at most one vertex each. An unused selector assignment leaves a forest.
Conversely, let be a strong backdoor of size at most . The private gadgets force to contain all selectors. From the remaining variables, construct by retaining each chosen graph vertex and replacing each chosen internal chain variable by one endpoint of its edge. Then . For each , every edge of has an incidence path that survives in the reduct under the selector assignment for , since neither endpoint nor any internal variable of that chain belongs to . Thus is a minor of the reduct's incidence graph and has treewidth at most .
Since , the backdoor budget depends only on . This establishes -hardness of strong backdoor detection for every fixed , even on non-tautological 3-CNF formulas.
4 Strong Backdoor to Forests is FPT
In this section, we prove Theorem 1.1.
Theorem 1.1. STRONG BACKDOOR TO FOREST can be solved in time.
To prove Theorem 1.1 we solve a more general problem that asks to find a strong forest backdoor for a given set of formulas simultaneously, and where the choice of each strong backdoor variable is restricted to come from a specified set of variables. We define this more general problem next.
SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS Parameter:
Input: A tuple of non-tautological CNF formulas over a common variable set , and possibly overlapping sets , where .
Question: Does there exist , , such that is a strong forest backdoor for every , ?
The sets are called the candidate sets. For an instance of SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS, define the size of its instance as
Lemma 4.1 (Bounded degeneracy). Let be a non-tautological CNF formula and let be an integer. If has a strong forest backdoor of size at most , then is -degenerate.
Proof. Let be a strong forest backdoor with . It suffices to show that every non-empty induced subgraph of contains a vertex of degree at most . Put and . If , then has no edges. Hence assume .
For each , define its signed pattern as
This is well-defined because is non-tautological. Group the clauses of by their signed patterns. Write for the nonempty groups and for their respective patterns. Then .
For each , choose an assignment to that falsifies every literal specified by . No clause of is satisfied by . Moreover, distinct clauses in remain distinct after their literals on are removed: otherwise, their identical signed patterns would imply that the original clauses were identical. Thus every cycle of would survive in , contradicting that is a strong forest backdoor. Hence is a forest and . Summing over gives .
If then . Some therefore has at most neighbors in , which are all its neighbors in . Thus .
Otherwise, , and . Some clause vertex therefore has at most neighbors in . Every other neighbor of in belongs to , so degree of in is at most . This proves the lemma.
Theorem 4.2. Let be an integer and let be an instance of SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS. If is -degenerate for every , then can be solved in time.
We first derive Theorem 1.1 from Theorem 4.2, whose proof occupies the remainder of this section.
Proof of Theorem 1.1. Let be an instance of STRONG BACKDOOR TO FORESTS. If is a forest, we report a yes-instance. Otherwise, if , we return a no-instance. These cases can be handled in time. Hence assume and that contains a cycle.
Set . By Lemma 4.1, if is a yes-instance then the degeneracy of is at most . Using the algorithm of Matula and Beck [MB83], we compute the degeneracy of in time and return no if it exceeds .
Otherwise, construct the instance of SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS by setting , , and for every . Since contains a cycle, every strong forest backdoor of is nonempty. Thus any such backdoor of size at most can be represented by choices from , allowing repetitions. Conversely, every solution to gives a strong forest backdoor of of size at most . The two instances are therefore equivalent. Also . Applying Theorem 4.2, we solve in
time. The degeneracy test and construction of fit within the same bound, proving the theorem.
In the remaining section we prove Theorem 4.2.
4.1 The -free case
Cycle killers.
Definition 4.3 (Cycle killer). Let be a non-tautological CNF formula, and let be a simple cycle of . A variable is an internal killer of if its variable vertex belongs to . A variable outside is an external killer of if it occurs positively in one clause vertex of and negatively in another. Let denote the set of all internal and external killers of .
The following lemma characterizes strong forest backdoors by the cycles they kill.
Lemma 4.4 (Cycle-killer characterization). Let be a non-tautological CNF formula whose incidence graph is -free. Then is a strong forest backdoor of if and only if for every simple cycle of .
Proof. First, observe that merging identical clauses preserves the cyclomatic number, under the stated assumptions. Indeed, two distinct clauses cannot yield identical clauses in a reduct containing two variables: their original clause vertices would have two common variable neighbors, forming a . Thus only isolated clause vertices or clause leaves with the same variable neighbor can be merged. These identifications, and the removal of isolated variable vertices, preserve the cyclomatic number. Consequently, for every assignment to , .
Fix a simple cycle of . If contains an internal killer of , that variable vertex is deleted under every assignment. If contains an external killer, every assignment satisfies at least one clause of . In either case, survives no assignment to .
Conversely, suppose . No variable vertex of belongs to . Moreover, every variable of occurring among the clauses of occurs there with only one polarity (either only positively or only negatively), because there are no tautological clauses, and there is an absence of an external killer in . Assign these variables to falsify their occurrences in those clauses, and assign the remaining variables of arbitrarily. Every vertex and edge of then survives in the semi-reduct.
Since every semi-reduct incidence graph is a subgraph of , it is a forest under every assignment if and only if intersects the killer set of every simple cycle. A graph is a forest if and only if its cyclomatic number is zero. By the equality above, for each assignment to , the incidence graph of the semi-reduct is a forest if and only if the incidence graph of the reduct is a forest. Thus is a strong forest backdoor of if and only if it intersects the killer set of every simple cycle.
Note that the -free assumption is necessary for Lemma 4.4. For , both reducts and consist of the single clause . Thus is a strong forest backdoor. However, the four-cycle through the two clause vertices and has killer set . Clause merging can therefore destroy a cycle without choosing one of its killers.
Restricting backdoors to the 2-core.
Lemma 4.5 (Restricting backdoors to the 2-core). Let be a non-tautological CNF formula whose incidence graph is -free, and put . For every , is a strong forest backdoor of if and only if is a strong forest backdoor of .
Proof. For every simple cycle of , each variable in belongs to the 2-core of . An internal killer lies on the cycle. An external killer has two distinct clause neighbors on the cycle; a path between them along the cycle, together with their edges to the variable, forms a cycle containing that variable. Thus every cycle-killer set is contained in . The equivalence follows from Lemma 4.4.
Lemma 4.6 (-free case). Let be an instance of SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS, where contains formulas. If is -free for every , then can be solved in time.
We prove Lemma 4.6 in two cases based on the cyclomatic number of the input formulas. These two cases are resolved by Lemma 4.7 and Lemma 4.8 whose proofs appear in Subsection 4.1.1 and Subsection 4.1.2.
Lemma 4.7 (Small cyclomatic number). Let be an integer and let be an instance of SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS, where contains formulas. If is -free and for every , then can be solved in time.
Lemma 4.8 (Large cyclomatic number). For any , let . Let be an instance of SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS such that is -free for every . If there exists such that , then one can compute, in time, a set of size at most that intersects every strong forest backdoor of of size at most .
Proof of Lemma 4.6. We give a branching algorithm using Lemma 4.7 as the base case and the set received from Lemma 4.8 as a set to branch on.
Let be the instance during a recursive call, where , and has formulas. If there exists such that , then report no. If , report yes if and only if the incidence graph for every formula in is a forest. Otherwise, if for every , we apply Lemma 4.7 and return its answer.
In the remaining case, choose with . By Lemma 4.8, we compute in time a set of size at most intersecting every strong forest backdoor of of size at most . For every and with , branch on choosing from . In this branch, remove and replace every formula by both formulas and . Keep all other candidate sets unchanged. The algorithm reports a yes instance if and only if some branch reports a yes instance. Note that, each resulting formula is non-tautological and -free, because these properties are preserved under taking reducts, so both Lemma 4.7 Lemma 4.8 remain applicable to the recursive instances.
For correctness, every solution of is a strong forest backdoor of of size at most , and therefore intersects from Lemma 4.8. Thus some branch fixes one of its choices. Conversely, choices solving a child instance, together with the fixed choice , solve the parent instance, since the remaining choices work for both assignments to . This remains valid when is also chosen from another candidate set, since is absent from both reducts. Together with the base cases, correctness follows by induction on .
Each branching step creates at most children and decreases the number of candidate sets by one. Thus the search tree has depth at most and nodes. At depth , there are at most formulas, and the instance size is . Processing an internal node, including constructing its children, takes time. Each leaf handled by Lemma 4.7 takes time, since , , and . The remaining base cases take linear time in the current instance size. Summing over all nodes gives the claimed running time .
4.1.1 Small cyclomatic number
Here we prove Lemma 4.7. By Lemma 2.2, the 2-core of each incidence graph contains at most distinct simple cycles. We partition the variables of the instance into classes such that variables in the same class kill exactly the same set of cycles of the instance. We then retain one representative of each such class inside each candidate set and enumerate the remaining choices.
Lemma 4.7 (Small cyclomatic number). Let be an integer and let be an instance of SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS, where contains formulas. If is -free and for every , then can be solved in time.
Proof. If there exists such that , then report a no-instance. If , and for each , is a forest, report a yes-instance. Hence assume .
We first partition into classes such that variables in the same class kill exactly the same cycles of , for a fixed formula .
Let . Recall that for a cycle in , the set consists of the variables in and the variables occurring with both polarities (negatively and positively) among the clauses of .
- Put all variables of V that are not in H in one class.
Note that every variable that kills a cycle belongs to . Indeed, an internal killer lies on the cycle. An external killer has two distinct clause neighbors on the cycle; a path between these neighbors along the cycle, together with their edges to , forms a cycle containing .
- Let be the set of degree at least three vertices of . That is . Let be the number of connected components of . Since has minimum degree at least two,
Let Z consist of the variable vertices of H that either have degree at least three or have degree two and both clause neighbors of degree at least three. That is,
Since is -free, two degree-two variables in cannot have the same pair of neighbors. Therefore, .
Put each variable of Z in its own class.
- Every remaining variable has degree two in and has a clause neighbor of degree two in . Such a variable cannot kill a cycle externally: otherwise both its clause neighbors would lie on that cycle and have degree at least three in . Thus kills precisely the cycles containing it. We partition these variables according to the cycles containing them, as follows.
Choose a spanning forest of , and write where . For each , let be the unique cycle in . Every simple cycle of satisfies
where denotes symmetric difference. Indeed, the symmetric difference of the two sides is an even-degree subgraph of the forest , and is therefore empty.
For each remaining variable , choose an incident edge and define . Since has degree two in , a cycle contains if and only if it contains . Put variables and in the same class if . Then and belong to exactly the same cycles and, by Equation (1), to exactly the same simple cycles of . Since and have degree two, they therefore belong to, and kill, exactly the same cycles. There are at most such classes.
Thus the total number of classes in which we partition the variable set is at most
The 2-core can be computed in linear time [BZ11]. A spanning forest can then be computed by depth-first search in linear time [CLRS01, Section 22.3]. For each edge outside the spanning forest, we use depth-first search in the forest to find the unique path between its endpoints and add the edge to form its fundamental cycle. Each search takes time, so constructing all fundamental cycles takes time. The binary vectors have at most coordinates. Using the integer sorting procedure in Section 2, we group the variables by their vectors in time. Two variables are in the same group exactly when their vectors agree in every coordinate. Thus, for the fixed formula , we can partition in time so that any two variables in the same class kill exactly the same cycles of .
For each , compute the partition of described above. Let denote the class of for , and define the joint signature
There are at most joint signatures. For each , retain a set containing one representative of every joint signature occurring in . Enumerate all tuples
and accept if their chosen variables form a strong forest backdoor for every formula in .
For correctness, since each is -free, Lemma 4.4 implies that is a strong forest backdoor of if and only if for every simple cycle of . Replacing any chosen variable by another variable with the same joint signature preserves all these intersections in every formula. Every feasible tuple can therefore be replaced by a tuple from . Conversely, every accepted tuple chooses its th variable from and is a solution to . Conversely, every accepted tuple chooses its th variable from and is a solution to .
There are at most tuples to test. For each tuple, let be its set of chosen variables. Consider all assignments to and test whether is a forest for every . These tests take time per tuple. For these tests, clause vertices need not be merged:
-freeness ensures that distinct clauses can become identical only when they contain at most one variable in the reduct, and merging such clause vertices preserves acyclicity.
Assign the classes of each formula's partition integer labels in . The joint signatures have coordinates, so the integer sorting procedure in Section 2 groups them in time. Assign the resulting classes integer labels in ; write for the label of the class belongs to.
For a fixed , to obtain the representative sets , create a record for each . Sort these records by their first two coordinate using the same integer sorting procedure in Section 2; and then retain one variable per distinct pair to construct . The total time over all this takes is .
Together with constructing the individual partitions, constructing the representative sets takes time. Combining this construction time with the tuples and the time per tuple gives total running time .
4.1.2 Large cyclomatic number
Here we prove Lemma 4.8. Our goal is to compute a small set that intersects every strong forest backdoor of of size at most , regardless of the additional constraints of the simultaneous colored problem. The proof has three steps.
First, let and choose the highest-degree vertices of , with degrees measured in . These may be variable vertices or clause vertices. Put into all chosen variable vertices and every variable adjacent to at least two chosen clause vertices. By -freeness, each pair of chosen clause vertices has at most one common variable neighbor, so .
Second, suppose that a strong forest backdoor of size at most avoids . We show that every vertex outside the chosen vertices has degree at most in . This is the main technical step. Deleting and all its neighboring clause vertices leaves a forest containing at least of the chosen vertices: no chosen variable is deleted, and each variable of has at most one chosen clause neighbor. If the remaining chosen vertices had very large degrees in , this forest would have too many edges leading to the deleted clauses. We obtain a matching upper bound on these edges by grouping the deleted clauses so that all clauses in each group can survive together under an assignment to . Comparing the bounds gives the required degree bound.
Finally, we use this degree bound to bound . Since each variable of X has at most one chosen clause neighbor, non-tautologicality lets us assign X so that every chosen clause survives. Thus the assignment deletes only variable and clause vertices outside the chosen set, whose degrees are bounded by 3k. We bound the decrease in cyclomatic number caused by these deletions. Since the resulting graph is a forest, this gives , contrary to the hypothesis. Consequently, every strong forest backdoor of size at most k intersects S.
Lemma 4.8 (Large cyclomatic number). For any , let . Let be an instance of SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS such that is -free for every . If there exists such that , then one can compute, in time, a set of size at most that intersects every strong forest backdoor of of size at most .
Proof. Put and . Let and . Then . In particular, is nonempty and has minimum degree at least two. Set and recall that .
Constructing the branching set. We first observe that . Indeed, as otherwise, since is a bipartite graph, , which is a contradiction.
Let consist of the highest-degree vertices of , breaking ties arbitrarily, and define , , and .
By -freeness, each pair of clause vertices has at most one common variable neighbor. Associating each variable of with any pair of its neighbors in therefore gives .
The degrees in are at most . Using counting sort as described in Section 2, we construct by selecting the highest-degree vertices in time. Constructing then requires only a scan of the adjacency lists. Thus is computable in time.
Suppose, for a contradiction, that has a strong forest backdoor of size at most with . By Lemma 4.5, we may replace by and hence assume .
Bounding the degrees outside . Put . Since , every variable of lies outside and has at most one neighbor in . Thus for every .
For every assignment to , the graph is a forest. Indeed, is a strong forest backdoor, and -freeness ensures that only clause vertices containing at most one variable can be merged.
Define and . Every vertex and edge of survives every assignment to , so is a forest. No vertex of is deleted, and at most vertices of are deleted. Hence contains at least vertices of .
Let be the union of the components of that contain a vertex of . Write , and let be the number of components of . Then and .
For disjoint vertex sets for the set of edges of between them. Every edge leaving ends in . The vertices of have degree at least in , and every other vertex of has degree at least two. Therefore,
(2)
We next obtain an upper bound on the same quantity. For each clause , choose a literal whose variable belongs to . Group these clauses according to the chosen literal, obtaining nonempty groups , where .
Fix a group , whose chosen literal is on a variable . By -freeness, any two clauses of share no variable other than . We can therefore assign so that every clause of survives: falsify and every occurrence of a variable of in these clauses. This is consistent because each such variable occurs in at most one clause of , and non-tautologicality ensures that it occurs there with only one polarity (either only positively or only negatively).
Under this assignment, all vertices and edges of also survive. Consequently, the graph with vertex set and edge set is a forest. Counting its edges and vertices gives , and hence . Since , summing over the groups yields
Combining (2) and (3), we obtain , where the last inequality uses . Since , .
Bounding the cyclomatic number. Choose an assignment that falsifies every occurrence of a variable of in a clause of . Such an assignment exists because each variable of has at most one neighbor in , and non-tautologicality ensures that it occurs there with only one polarity (either only positively or only negatively). Thus no clause of is satisfied by .
Deleting a vertex of degree decreases the cyclomatic number by at most . First delete the variable vertices of from . Their degrees are at most , so these deletions decrease the cyclomatic number by at most .
Let consist of the clauses satisfied by . Each such clause is adjacent to and lies outside , so , . Every vertex of lies outside and hence has degree at most in . It also loses at least one neighbor when is deleted. Its remaining degree is therefore at most , so deleting it decreases the cyclomatic number by at most . Here , since has minimum degree at least two.
The graph remaining after deleting and is a subgraph of and is therefore a forest. Consequently,
where the last inequality uses . This contradicts .
Thus every strong forest backdoor of of size at most intersects . The set has size at most and is computable in time.
4.2 Dealing with
In this subsection, we reduce the problem to instances whose formulas have -free incidence graphs. The main difficulty is that a four-cycle can disappear not only through deleting a variable or satisfying a clause, but also through merging two clauses that become identical after an assignment.
Consider a four-cycle in a current formula. Since and are distinct, choose a literal in and let be its variable. We branch on choosing , or from a candidate set. If none is chosen, both cycle variables and a literal distinguishing the clauses remain. Consequently, a strong forest backdoor must contain a variable occurring with opposite signs in and . Under any assignment, this variable satisfies one of the two clauses.
To preserve the requirement that every assignment to the backdoor variables leaves a forest incidence graph for every formula, we maintain copies of the formulas labelled by Boolean values for the candidate-set indices. For a labelled copy, we branch on which candidate set provides a variable satisfying or , restrict that candidate set accordingly, and delete the satisfied clause from that copy. The labels allow us to maintain a copy giving the correct reduct of each original formula under every assignment to the chosen variables.
Finally, we use -degeneracy to bound the number of clause-deletion steps along any branch. Each deletion restricts a candidate set to variables of the deleted clause. While every candidate set has at least variables, only boundedly many deleted clauses can contain an entire candidate set. Since candidate sets only shrink, these contributions accumulate throughout the branch. The procedure stops when all incidence graphs are -free or outputs instances with a singleton candidate set.
Finding a four-cycle. While proving Lemma 4.10, we use the following lemma to find a in linear time in a graph with bounded degeneracy.
Lemma 4.9 (Finding ). Let be an integer and let be a -degenerate graph. In time, one can find a copy of in or correctly report that is -free.
Proof. Let . Using the algorithm of Matula and Beck [MB83], compute in time an ordering in which each vertex has at most neighbors that occur after it. For each , store these neighbors of in the list . For , the vertices and are adjacent if and only if . Since , scanning tests adjacency in time.
For every and every pair with , create the triple . There are triples. We group the triples by to detect two distinct vertices sharing the later neighbors . Use the integer sorting procedure described in Section 2, with keys . Since there are triples, this takes time.
If a group contains distinct triples and , return the copy of with bipartition . These four vertices are distinct because .
Otherwise, for each triple , examine every . If is adjacent to , return the copy of with bipartition . Here is adjacent to by its membership in . The four vertices are distinct because appears later than , while , and . If no copy is found, report that is -free.
To prove correctness, suppose contains a cycle of length four, where is its earliest vertex. Interchange and if necessary so that . The triple is created. If , then is also created, and the grouping step finds a copy of . Otherwise, , so and is adjacent to . The second step therefore finds a copy.
Each triple requires examining at most vertices, with an adjacency test for each. The second step takes time. Together with constructing the ordering and grouping the triples, the total running time is .
Lemma 4.10 (Eliminating ). Let be an integer and let be an instance of SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS. Suppose that is -degenerate for every . In time, one can either
-
correctly decide I, or
-
construct a family of at most instances of the same problem such that:
(i) I is a yes-instance if and only if at least one , , is a yes-instance.
(ii) For every , has candidate sets, at most formulas, and .
(iii) The incidence graph of every formula in each is d-degenerate. Moreover, for each , either
• the incidence graph of every formula in is -free, or
- has a singleton candidate set ; in this case, the algorithm also returns , which belongs to every solution of .
(iv) Each output instance has the form , where for every . For every choice , the set is a strong forest backdoor of every formula in if and only if it is a strong forest backdoor of every formula in .
All output instances use the original variable set V.
Proof. We give a recursive procedure. For the proof, write the input instance as . The parameters and the variable set V remain fixed throughout the procedure.
Instance. Every recursive instance has the form , where for every . The tuple contains formulas , indexed by and . Initially, for each and for each and . The number (of candidate sets) and the variable set remain unchanged in every recursive call.
Invariants. In every recursive instance, we maintain the following invariants:
-
For every and , is a subformula of , that is, as sets of clauses.
-
For every choice and every assignment , define for . Then, for every ,
Base cases.
-
If for some , reject the branch.
-
If for some , choose one such index and output, for every , the instance
Return v with the corresponding output instance and terminate the branch.
- If every incidence graph of a formula in is -free, output and terminate the branch.
Therefore we can now assume that for every , and some formula in has an incidence graph containing a .
Branching. If none of the base cases apply, then there exists a formula, say , such that contains a , that is a cycle on 4 vertices. Using Lemma 4.9, find a four-cycle in some . Searching through all formula entries takes time. Here and are the (distinct) clauses in . Since are distinct sets of literals, choose and let be its underlying variable.
Create the following branches:
- Choose . For every with , create the child
- Choose . For every with , create the child
- Choose . For every with , create the child
- Satisfy or under the label . The set may be large, so we do not branch on its individual variables. Instead, we guess which candidate set supplies a variable and which clause is satisfied by setting that variable to the value given by .
For every and , put
If , create the child
where is obtained by deleting from , the formula containing the chosen four-cycle. All other labelled formulas remain unchanged, even if they also contain .
There are at most children. If no child is created, reject the branch. Otherwise, recursively process the children and collect their output instances.
Correctness. We show that, whenever a recursive call creates child instances, its input has a solution if and only if at least one of those children has a solution. The base cases are immediate: an empty candidate set admits no solution, and the small-sized candidate set case exhaustively considers all choices from a fixed .
Invariants. We first prove that both invariants are maintained. Both hold initially. Restricting candidate sets preserves them for all choices still allowed. Deleting clauses preserves the first property. For the second property, consider a deletion of from in the fourth branching rule. For every retained choice, . If , then , so is satisfied by . Hence would be deleted in the reduct anyway, and deleting it early does not change that reduct. If , the matching labelled formula is unchanged. All other original indices are unaffected. Thus both invariants are maintained.
Backdoor property. The invariants imply that, for any current choice , the set is a common strong forest backdoor of if and only if it is a common strong forest backdoor of . Indeed, if is a common strong forest backdoor of , every reduct of a current formula is a subformula of the corresponding original reduct, by the first property, and therefore its incidence graph is a forest. Conversely, suppose that is a common strong forest backdoor of , and let be any assignment. Consider its matching label . Since is a strong forest backdoor of every formula in , the graph is a forest for every . By the second invariant, , so is also a forest for every . Since was arbitrary, is a common strong forest backdoor of .
We have shown that changing the formulas preserves whether any fixed choice , , gives a set that is a strong forest backdoor of every formula. We now show that, when the candidate sets are restricted, every solution to the current instance remains a solution to at least one child or output instance.
Exhaustive. The small-candidate-set case considers every possible choice from the selected , while the -free base case outputs the current instance unchanged.
For four-cycle branching, consider a solution with , and put . If for some , the corresponding branch among the first three kinds fixes and retains the entire tuple.
Otherwise, . We claim that some variable of occurs with opposite signs in and . If not, non-tautologicality of allows an assignment that falsifies every occurrence of a variable from in or . Neither clause is satisfied, and both residual clauses still contain . Since , the literal remains in exactly one of the two reduct clauses. Thus these clauses remain distinct after duplicate clauses are merged. They therefore form a four-cycle with in , contradicting that is a strong forest backdoor of .
Choose such that occurs with opposite signs in . Setting satisfies exactly one of these clauses, say . Thus , and the corresponding fourth branch retains the entire tuple.
Conversely, every solution of a child is an allowed choice in its parent, because candidate sets only shrink. By the invariants, its variable set is a common strong forest backdoor of and therefore also of the parent's formulas. Hence a branching instance has a solution if and only if at least one of its children has a solution. In particular, if no child is created, the current instance has no solution, which justifies rejecting the branch.
Overall. Together with termination, proved below, branching equivalence shows that is a yes-instance if and only if at least one output instance is a yes-instance. If no instance is output, report no.
Every output instance has the form , with for every . By the backdoor property proved above, every choice gives a strong forest backdoor of every formula in if and only if it gives one for every formula in . This establishes item (iv).
By the base cases, every output instance either has only -free incidence graphs or has a specified singleton candidate set . In the latter case, every solution contains .
Measure and depth. Consider the recursion tree, whose nodes correspond to recursive instances and whose edges correspond to recursive calls. A node is a leaf if the procedure stops at that instance, either because a base case applies or because no child is created. All other nodes are internal nodes.
Put . For an instance at an internal node, define
At every internal node, all candidate sets have size greater than . For fixed , at most clauses of can contain all variables of . Otherwise, since , the graph contains a , contradicting -degeneracy. There are triples , so .
Every edge between two internal nodes corresponds to the fourth branching rule, since the first three rules create singleton candidate sets. Along such an edge, previously counted clauses remain counted because candidate sets only shrink. The newly deleted clause contributes an additional term for the selected label and candidate-set index. Thus increases by at least one.
Since at every internal node, a root-to-leaf path contains at most edges between internal nodes and at most one final edge to a leaf. Its length is therefore at most .
Running time and output guarantees. Each internal node has at most children, and each leaf outputs at most instances. Thus the number of nodes and output instances is at most . There are formula entries, each a subformula of an original formula, and candidate sets only shrink. Hence every recursive and output instance has size at most . All incidence graphs remain -degenerate because they are obtained by deleting clause vertices from the original incidence graphs.
Using the -time algorithm of Lemma 4.9 for finding a , processing each node, including the construction of its children or outputs, takes time. Multiplying by the number of nodes gives the claimed total running time.
Every output instance retains the original variable set , has candidate sets and at most formulas. By the base cases, either all its incidence graphs are -free, or it has a specified singleton candidate set . In the latter case, every solution contains . Together with the correctness argument, this proves all the required properties.
In the remaining section we prove Theorem 4.2 by combining Lemma 4.10 with Lemma 4.6.
Theorem 4.2. Let be an integer and let be an instance of SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS. If is -degenerate for every , then can be solved in time.
Proof of Theorem 4.2. If , every input incidence graph is a forest, so the instance is a yes-instance if and only if every candidate set is nonempty. This takes time. Hence assume .
We give a recursive algorithm. Let where , be the instance at a recursive call. If some is empty, return no. If , return yes if and only if every is a forest.
Otherwise, apply Lemma 4.10 to . If it decides , return its answer. Otherwise, write its output family as for . Process each as follows.
-
If every formula in has a -free incidence graph, solve using Lemma 4.6.
-
Otherwise, by item (iii) of Lemma 4.10, the output instance has a singleton candidate set. Choose an index with . Put
and recursively solve
The reducts are taken from the input tuple , not the output tuple . All other candidate sets remain unchanged.
For each , scan the formulas to construct their semi-reducts under . To merge identical clauses, initially put all surviving clause occurrences of each formula into one group. For each literal , build its occurrence list by storing a pointer to every surviving clause occurrence that contains , across all formulas.
Process the literals one at a time. For each literal , scan its occurrence list. In each group reached by this scan, move the clauses containing into a new group. The other clauses stay in their current group. With linked lists for the groups and a pointer from each clause to its current group, this takes constant time per literal occurrence.
At the end, two clauses of the same formula belong to the same group exactly when they contain the same literals. Retain one clause from each nonempty group. Initializing the occurrence lists and groups takes time, and the remaining work is linear in the total size of the input formulas. Thus constructing both reducts of all formulas takes time.
Return yes if and only if at least one of these computations returns yes.
Correctness. The base cases are immediate. By Lemma 4.10 (i), is a yes-instance if and only if some is a yes-instance. The first case is handled correctly by Lemma 4.6.
For the second case, item (iv) of Lemma 4.10 permits replacing by without changing the validity of any choice from the candidate sets of . Every such choice selects from . Let be the set of variables chosen from the remaining candidate sets. Then is a strong forest backdoor of every formula in if and only if is a strong forest backdoor of every formula in , since both assignments to are considered. This remains valid when , because is absent from every formula in . Thus and are equivalent. Each recursive call removes one candidate set, so correctness follows by induction on .
Running time. Taking reducts preserves non-tautologicality and -degeneracy. Each recursive step removes one candidate set and doubles the number of formulas. Consequently, at depth , , and . The recursion therefore has depth at most .
At each call, preprocessing takes time and produces at most output instances. Each output has at most formulas and size at most . Hence solving any -free output using Lemma 4.6 takes time.
There is therefore a constant such that, with , every call creates at most recursive children and performs at most work, including preprocessing, constructing children, and solving all its -free outputs. The recursion tree has at most nodes. Thus the total running time is at most , as required.
Returning a backdoor. The algorithms also return a witnessing tuple whenever they report yes. Retain the successful choices at enumeration leaves and insert each fixed variable into its removed candidate-set position when returning from recursion. Choices obtained from a preprocessing output remain valid for its input by item (iv) of Lemma 4.10. These operations preserve the stated running time.
5 The tightness of the double-exponential factor
In this section, we prove Theorem 1.4.
Theorem 1.4. Unless 3-SAT on variables can be solved in time, STRONG BACKDOOR TO FOREST cannot be solved in time, even on non-tautological 3-CNF formulas.
Recall that a Boolean assignment satisfies a CNF formula if every clause contains a literal that is true under the assignment. A 3-CNF formula has at most three literals per clause.
We begin by defining the 3-SAT and SET COVER problems which are used to give the reduction that proves Theorem 1.4.
3-SAT Input: A 3-CNF formula Question: Does admit a satisfying Boolean assignment?
SET COVER Parameter: Input: A universe , a family of subsets of , and a positive integer . Question: Does there exist with such that ?
Without loss of generality assume that , every set in is nonempty, every element of belongs to some set in , and . In this section we prove Lemma 5.1.
The proof of Theorem 1.4 composes two reductions. First, we transform a SET COVER instance into an equivalent instance of STRONG BACKDOOR TO FOREST, where . Second, we group the variables of an -variable 3-CNF formula into blocks to obtain a SET COVER instance with budget , a universe of polynomial size, and explicit encoding size . For each fixed positive integer , choosing gives a backdoor budget . We show that a -time algorithm for STRONG BACKDOOR TO FOREST, combined with these reductions and a dovetailing argument [Sip97] over the choices of , would solve 3-SAT in time.
Lemma 5.1 (Reduction from Set Cover). Given a SET COVER instance , one can construct in polynomial time a non-tautological 3-CNF formula and an integer such that is a yes-instance of SET COVER if and only if is a yes-instance of STRONG BACKDOOR TO FOREST.
Proof. Let be a SET COVER instance. Without loss of generality, let . Set .
For each , introduce a Boolean variable . Choosing as a backdoor variable corresponds to choosing for the set cover. Also introduce selector variables . For each , let be the unique -bit binary representation of . For any , denotes the -th position of the bit-string code. For every , define literal
Thus all literals are false under an assignment if and only if for every .
Element cycles. For each , let . Introduce a fresh Boolean variable . Construct a simple cycle whose distinguished vertices are and the variables in , in any fixed order. Between every two successive distinguished vertices, place fresh subdivision vertices, so that they are separated by edges. Every subdivision vertex is also a Boolean variable. The variable and all subdivision variables are private to ; only the variables are shared between element cycles. Thus has exactly vertices and the same number of edges. Since and , the construction produces a simple cycle even when .
Choose a direction around . Between each pair of successive distinguished vertices, label the edges, in that direction, by . For every edge of , add the clause
Let be the assignment defined by for every . Under this assignment, every literal is false. For every edge , the clause reduces to under . Indeed, a binary clause remains unchanged, while a ternary clause loses its false selector literal. Hence the incidence graph formed by these residual clauses is a subdivision of . If an assignment differs from at some position , then is true under . Every segment of between successive distinguished vertices contains an edge labelled . The clause corresponding to that edge is therefore satisfied and deleted, breaking every such segment.
Selector-forcing gadgets. For every and , introduce two fresh private variables and add the clauses .
Let consist of all clauses constructed above. Observe that every clause is non-tautological and has size at most three. Also . Therefore the construction has polynomial size and can be carried out in polynomial time.
Claim 5.2. Every strong forest backdoor of with contains .
Proof. Recall that . For the sake of contradiction suppose that for some . Since the pairs , , are pairwise disjoint and , there exists such that .
Since , the three clauses (corresponding to the selector-forcing gadget) survive unchanged under every assignment to . Their incidence graph is a cycle of length six, contradicting that is a strong forest backdoor.
Claim 5.3. Let be an assignment. Suppose that, for some , for every . Then, for every and every assignment , is a forest if and only if .
If no such element exists, then is a forest for every such and .
Proof. Fix an assignment . Observe that every non-selector variable occurs only positively in , and every clause of size three contains a selector literal. Hence every clause surviving in is positive and has size at most two.
Let be the graph whose vertices are the non-selector variables and for every binary clause of , add the edge to .
We show that is a forest if matches no element code, and otherwise has exactly one cycle, namely for the unique element whose code matches .
Suppose that there exists such that for every . Since the element codes are distinct, such an element is unique. Every literal is false under . Thus, for every , the clause reduces to , and is a subgraph of .
Consider any element . There exists such that . By the definition of , this literal is true under . On every subpath of between successive distinguished vertices, there is an edge labelled . The clause corresponding to this edge is satisfied and deleted. Consequently, the surviving edges of form a forest in which each component contains at most one distinguished vertex, and hence at most one shared variable .
By construction, and the subdivision variables of occur in no other element cycle. Hence, for distinct , . As shown above, each component formed by the surviving edges of a cycle with contains at most one variable of the form . Joining these components at shared variables therefore produces a forest, each component of which meets in at most one vertex. Consequently, adding these components to creates no additional cycle. It follows that the element clauses contribute exactly one cycle to , namely . If no element has code matching , the same argument applies to every element cycle, and their surviving edges form a forest.
For every and , the clause survives unchanged in , since neither of its variables belongs to . The other two clauses are either deleted or become unit clauses, depending on . Since these private variables occur nowhere else, these clauses contribute only separate tree components. Thus is a forest when matches no element code; otherwise, its unique cycle is .
Now fix and an assignment . A binary clause of remains binary after applying if and only if . Every other surviving clause is unit or empty. Hence the binary clauses of correspond exactly to the edges of . For each edge of , the corresponding binary clause gives the path in the incidence graph. Thus each edge is replaced by a path of length two, which preserves the existence of cycles. Unit clauses contribute only leaves to the incidence graph, and empty clauses contribute isolated vertices. Therefore, is a forest if and only if is a forest. If matches the code of , that is if for every , the graph has the unique cycle , so this condition holds precisely when . If matches no element code, is already a forest, and the condition holds for every and .
Correctness. For the forward direction, let be a set cover of of size at most . Set . Then . We claim that is a strong forest backdoor for the formula . Fix any assignment to , and let . If there is no element such that for every , then Claim 5.3 implies that is a forest. Otherwise, there exists a unique such that for every . Since covers , some contains . By construction, and . Hence . Applying Claim 5.3 with and shows that is a forest. Since was an arbitrary assignment to , the set is a strong forest backdoor of size at most .
For the backward direction, let be a strong forest backdoor of of size at most . From Claim 5.2, . Put , and note that . We claim that, for every , the set contains at least one variable corresponding to a vertex of the cycle . Fix and let be defined by for every . Choose any assignment . Since is a strong forest backdoor, is a forest. Claim 5.3 therefore implies that . Thus contains at least one variable corresponding to a vertex of . Since was arbitrary, this holds for every element.
We now construct a family from . For every variable , include in . For every variable in that is private to an element cycle , include an arbitrary set of containing . Such a set exists because every element of belongs to at least one set in . Each variable contributes at most one set, so, after discarding repetitions, .
To see that covers , fix . As proved above, contains a variable corresponding to a vertex of . If this variable is , then by construction, and . Otherwise, the variable is private to , and the construction of includes a set containing . Thus every element of is covered by . Hence is a yes-instance of SET COVER.
Proof of Theorem 1.4. We give a reduction from 3-SAT to STRONG BACKDOOR TO FOREST. Let be a 3-CNF formula on variables. Without loss of generality, we can assume that has no tautological clauses and all clauses of are distinct. If not, then tautological and repeated clauses can be deleted without loss of generality for solving the 3-SAT problem. Thus we may assume that has clauses. Set . We handle formulas containing an empty clause and the finitely many small values of directly. Hence assume that every clause is nonempty and that .
For any integer with , partition the variables into nonempty blocks , each of size at most . Since , we have .
Construct a SET COVER instance as follows. The universe contains a distinct element for each block , , and an element for each clause of . That is is a clause of .
For every and assignment , introduce the set
Let consist of these sets , and set . Note that and . The instance can therefore be constructed in time .
We now claim that is satisfiable if and only if is a yes-instance of SET COVER. Let be a satisfying assignment for . For each , let be the assignment restricted to the variables of the block . Then observe that is a set cover of the instance of size .
For the backward direction let be a set cover of of size . Since only sets associated with block contain , covering all block elements with at most sets requires to contain exactly one set associated with each block. Let . The assignments have pairwise disjoint domains and therefore combine into an assignment to all variables of . This assignment satisfies all clauses of because every clause element is covered by .
From Lemma 5.1, given this SET COVER instance , we can construct, in time polynomial in the instance , an instance of STRONG BACKDOOR TO FOREST, where is a non-tautological 3-CNF formula and .
Combining both reductions, we conclude that given an instance of 3-SAT on variables, we can construct an instance of STRONG BACKDOOR TO FOREST in time , of size , where , such that is satisfiable if and only if is a yes-instance of STRONG BACKDOOR TO FOREST. Moreover, is non-tautological.
Suppose that STRONG BACKDOOR TO FOREST admits an algorithm running in time , where . For each integer , apply the preceding construction with and run the assumed algorithm on the resulting instance. Fix any positive integer . For each , we run computations with block counts . For any fixed positive integer , the block count appears in this list whenever , which holds for all sufficiently large . The constructed instance has . Since is fixed and , we obtain
Including the construction time, the running time of this computation is at most
where C is a constant independent of c.
We dovetail (see for example [Sip97]) the computations for , each consisting of constructing its instance and running the assumed algorithm on that instance. In each round, perform one step of each computation, and stop when the first computation finishes. Every computation correctly decides whether is satisfiable. The interleaving increases the running time by only a polynomial factor in .
For every , choose a fixed positive integer such that . For all sufficiently large , this computation is included and the total running time is at most . Thus the resulting single algorithm solves 3-SAT in time, contradicting the assumption of the theorem.
Dovetailing interleaves the computations, performing one step of each per round and stopping when the first finishes. For a standard example of this simulation, see [Sip97, Proof of Theorem 4.22]. Here we use it to obtain a single algorithm without choosing c in advance. Every fixed c is eventually included among the simulated computations, allowing the constant C/c in the exponent to become arbitrarily small. Interleaving the L computations incurs only polynomial overhead.
6 Extension to treewidth 2 or more is impossible under FPT≠W[1]
In this section, we prove Theorem 1.2.
Theorem 1.2. For every fixed integer , STRONG BACKDOOR TO TREEWIDTH- is W[1]-hard parameterized by , even on non-tautological 3-CNF formulas.
To prove Theorem 1.2 we first prove that SIMULTANEOUS TREEWIDTH- DELETION, which is defined below, is W[1]-hard.
| SIMULTANEOUS TREEWIDTH- DELETION | Parameter: |
|---|---|
| Input: Graphs on the same vertex set , and a nonnegative integer . | |
| Question: Does there exist with such that for every ? | |
SIMULTANEOUS TREEWIDTH- DELETION was shown to be FPT when in [ALMS18]. Here we show that the problem becomes W[1]-hard for any . This is then used as a source problem to prove the W[1]-hardness result in Theorem 1.2.
Lemma 1.3 (Hardness of SIMULTANEOUS TREEWIDTH- DELETION). For every fixed integer , SIMULTANEOUS TREEWIDTH- DELETION is W[1]-hard parameterized by .
To prove Lemma 1.3 we give a parameterized reduction from PAIRED CUT, defined below.
| PAIRED CUT | Parameter: |
|---|---|
| Input: Two undirected graphs , distinct terminals for each , a family of edge pairs in which each edge occurs in at most one pair, and a nonnegative integer . | |
| Question: Does there exist with such that, for each , deleting the edges of belonging to pairs in separates from ? | |
Without loss of generality assume that . Dabrowski, Jonsson, Ordyniak, Osipov, Pilipczuk and Sharma [DJO+23, Lemma 17] showed that PAIRED CUT is W[1]-hard. We observe that their hardness reduction actually shows hardness even when both and are simple graphs and have treewidth two. This is captured in Lemma 6.2.
Definition 6.1 (Series-parallel graphs). A two-terminal graph is a graph with two distinct specified vertices, called its terminals. A two-terminal graph is series-parallel if it can be obtained from a single edge, whose endpoints are the terminals, by repeatedly applying the following operations to vertex-disjoint two-terminal graphs with terminal pairs and :
-
Series composition: identify with , and take as the terminals of the resulting graph.
-
Parallel composition: identify with and with , and take the two identified vertices as the terminals.
Parallel edges are allowed in this definition.
Every series-parallel graph has treewidth at most two [BK08, Section 2.2].
Lemma 6.2 ([DJO+23]). PAIRED CUT is W[1]-hard parameterized by , even when both input graphs are simple (that is without parallel edges) and series-parallel. In particular, the hardness holds when both input graphs have treewidth two.
Proof Sketch. Dabrowski et al. [DJO 23, Lemma 17] prove W[1]-hardness of PAIRED CUT. We observe that the graphs produced by their reduction are series-parallel.
The construction in Section 6.1 of [DJO 23] first defines two directed graphs, whose underlying undirected graphs form the input to PAIRED CUT. Each directed graph is a union of subgraphs that share only the two terminals. Within each such subgraph, the construction places internally disjoint paths between consecutive vertices. The union of paths with the same endpoints is a parallel composition. Joining these subgraphs at consecutive vertices is a series composition. Finally, these subgraphs share only the two terminals, so their union is a parallel composition. Since every path is a series composition of edges, both constructed graphs are series-parallel and therefore have treewidth at most two.
Our subsequent reduction uses simple input graphs. However, the construction above may produce parallel edges, which cannot simply be merged: they represent distinct edges in the pairing, and merging them could change the feasible cuts. We therefore subdivide every edge once, using a fresh vertex for each edge.
For every original paired edge, designate one of its two replacement edges. Replace each original pair by the pair of designated replacement edges, leaving the other replacement edges unpaired. Selecting a pair therefore breaks exactly the two paths corresponding to its original edges. Consequently, the feasible paired cuts and the budget are preserved. The resulting graphs are simple and remain two-terminal series-parallel.
Composing their reduction with this subdivision step establishes W[1]-hardness even when both input graphs are simple and two-terminal series-parallel. □
Proof of Lemma 1.3. To prove the lemma, we give a parameter-preserving reduction from PAIRED CUT to SIMULTANEOUS TREEWIDTH-t DELETION. From Lemma 6.2 we can assume that the input graphs in the PAIRED CUT instance both have treewidth two.
Construction. Let be an instance of PAIRED CUT, where both and are series-parallel graphs.
We reduce from the restriction of PAIRED CUT in which both input graphs are two-terminal simple series-parallel networks with their designated terminals.
For every pair , introduce a vertex , which we call a choice vertex. For every and , let and let , be sets of fresh vertices, all distinct from one another and from the choice vertices. (All these sets and the choice vertices are pairwise disjoint.) Define the common vertex set
For each and , construct a graph on as follows. First, place a copy of on , that is for every edge , add the edge in . Then, for each pair , replace the copy of by the path , , . Denote by the graph obtained from the copy of on after these subdivisions. Its terminals are and , the copies of and , respectively. Next, make a clique and join every vertex of to both terminals. Thus the added edges form a copy of on . All vertices outside this network and are isolated in .
Finally, set . The output consists of the graphs on common vertex set , with deletion budget . For each , every vertex of is isolated in all graphs other than . The choice vertices , however, occur in the subdivided network of every graph.
Claim 6.3. For every , , and , if and only if contains no path between and .
Proof. Fix , , and . Let denote the added copy of on . Since consists only of choice vertices, no vertex of belongs to .
Suppose first that contains an path . The internal vertices of lie outside . Consequently, is a subdivision of : the path replaces its missing terminal edge. Thus contains as a minor, and .
Conversely, suppose that contains no path between and . Since is a subdivision of a series-parallel graph, every component of has treewidth at most two. Moreover, each such component contains at most one terminal and therefore intersects in at most one vertex. The graph has a tree decomposition of width consisting of the two adjacent bags and . For each component containing a terminal , take a tree decomposition of of width at most two. Choose a bag containing and connect its node by an edge to the node with bag in the decomposition of . For each component containing neither terminal, take a tree decomposition of width at most two and connect any node of its decomposition tree to any node of the decomposition of . This preserves the tree decomposition properties because the component is disjoint from and all other components.
Include each remaining isolated vertex of in a singleton bag, attached to any node of the decomposition tree. Every bag has size at most , since . Hence .
Correctness. The forward direction is easy. Indeed, let is a solution to PAIRED CUT with . Let . By construction, contains a path between and if and only if contains a path between and . Thus, for every and , contains no path between and . From Claim 6.3 we conclude that . Since , the set is a solution for the instance of SIMULTANEOUS TREEWIDTH-t DELETION.
For the backward direction, let be a solution for the instance of SIMULTANEOUS TREEWIDTH-t DELETION, of size at most . Let and . Fix . For each , the sets , are pairwise disjoint. Since , there exists such that . As contains no choice vertex, every vertex of is therefore isolated in . Hence differs from only in isolated vertices, and . By Claim 6.3, contains no path between and . By construction, deleting from the edges belonging to pairs in therefore leaves no path between and . For each , the graph contains no path between and . Moreover, . Thus is a solution to PAIRED CUT.
For fixed , the construction has polynomial size and takes polynomial time. Finally, the parameter of the new instance is which depends only on the parameter of the source problem. This proves the lemma.
Proof of Theorem 1.2. Fix . We give a parameterized reduction from SIMULTANEOUS TREEWIDTH-t DELETION to STRONG BACKDOOR TO TREEWIDTH-t. Let be an instance of SIMULTANEOUS TREEWIDTH-t DELETION, where all graphs have common vertex set . By Lemma 1.3, SIMULTANEOUS TREEWIDTH-t DELETION is -hard parameterized by . We restrict to the instances produced by the reduction in the proof of Lemma 1.3. That reduction gives
and . These instances also satisfy . Set and . Since , we have .
For every vertex , introduce a Boolean variable, also denoted by , and introduce selector variables .
For each , let be the -bit binary representation of . For every , define
Thus all literals are false under an assignment if and only if for every .
Encoding the graph edges. For every and edge , choose an arbitrary orientation from to and introduce fresh variables , private to this edge occurrence. For every , add the clause . Also add the clauses and . We call these clauses the edge chain for in . The variables are fresh for each pair with and . Let consist of all these clauses.
Forcing the selectors. For every and , introduce fresh variables . Add the clause for every and the clause for every . These clauses correspond to all edges of a complete graph on . Let be the union of and these clauses.
Observe that every clause is non-tautological and has size at most three. Since is fixed, , and with , the number of variables and clauses is polynomial in the input size. The construction can therefore be carried out in polynomial time.
Claim 6.4. Every strong treewidth-t backdoor of of size at most contains .
Proof. Let be such a backdoor and suppose that for some . For each , define . Since these sets are pairwise disjoint and , there exists such that . Thus .
Fix an assignment . All clauses corresponding to the edges of the complete graph on survive unchanged in . These clauses remain pairwise distinct, so contains a subdivision of . Consequently, , contradicting that is a strong treewidth- backdoor. Hence .
Claim 6.5. Let , and let and be assignments. If there exists such that for every , then if and only if .
If no such index a exists, then is a forest.
Proof. Fix , , and as in the statement of the claim. Since assigns only selector variables and assigns only variables corresponding to vertices in , all chain variables remain unassigned. Every clause of or therefore contains a literal on a chain variable. Each chain variable occurs positively in exactly one clause of and negatively in exactly one other clause. Thus each literal on a chain variable occurs in exactly one clause of . Consequently, distinct clauses of that are not deleted yield distinct clauses in each of these reducts.
Suppose first that there exists such that for every . This index is unique because the binary strings are pairwise distinct. By definition, every literal is false under . Hence the clauses introduced for each edge of become binary in .
For an edge , let denote the vertices corresponding to these binary clauses. The vertices and the vertices labelled form the path in . If , none of the variables is assigned by . Thus this path is also present in . If , the clause is deleted in when and becomes the unit clause when . In either case, the vertex labelled is absent from . The same argument applies to and the clause . Consequently, every edge of gives a path between its endpoints in . For every other edge of , the remaining vertices and edges corresponding to its chain form paths, each containing at most one vertex labelled by an element of .
For every , there exists such that . Hence is true under . For each edge , the clause containing is therefore satisfied by and deleted in . The vertex corresponding to that clause is absent from . The remaining clause vertices of this chain, their neighbors, and their incident edges therefore form disjoint paths, each containing at most one of the endpoint vertices .
The paths corresponding to edges of have pairwise disjoint internal vertices. Every other remaining path contains at most one vertex labelled by an element of , and all its other vertices occur in no other path. Thus each connected component formed by these other paths is a tree containing at most one vertex labelled by an element of . It can intersect the paths corresponding to only at that vertex. Replacing edges by paths and attaching trees at single vertices preserve whether treewidth is at most , since . Hence if and only if .
Finally, suppose that no index satisfies for every . Then, for each , some literal is true under . Every edge chain therefore has a clause deleted in . As above, the remaining clause vertices, their neighbors, and their incident edges form paths, each containing at most one vertex labelled by an element of . By the preceding argument, these paths form tree components. Hence is a forest.
Correctness. For the forward direction, let satisfy and for every . We may assume that contains no vertex isolated in every input graph, since removing such vertices from preserves for every . Set (recall is the set of selector variables). Then .
Fix an arbitrary assignment , and put and . If there exists such that for every , then Claim 6.5 gives , since . If no such index exists, the same claim shows that is a forest and therefore has treewidth at most one. Since , we again obtain .
Consider the clauses introduced for a fixed and in the selector-forcing construction. Their variables other than remain unassigned by . Among these clauses, those containing are deleted when and become unit clauses when . The clauses on pairs of the other variables remain unchanged. In , the corresponding clause vertices and their neighbors therefore form a subdivision of , with possible leaves corresponding to unit clauses. This graph has treewidth . The sets are pairwise disjoint over all . None of these variables occurs in . Consequently, each such graph is a separate component of . Since and every additional component has treewidth at most , we obtain . Since was arbitrary, is a strong treewidth- backdoor of size at most .
For the backward direction, let be a strong treewidth- backdoor of of size at most . By Claim 6.4, . Let , therefore .
Construct as follows. For every , include in if its corresponding variable belongs to . For every chain variable in , choose one endpoint of the edge for which that variable was introduced and include that endpoint in . Variables introduced in the selector-forcing construction contribute no vertices to . Each variable of contributes at most one vertex, so .
Fix and choose an assignment satisfying for every . Consider an edge . Neither of the variables belongs to , by the construction of . No chain variable introduced for this edge belongs to either, since otherwise an endpoint of would belong to . Thus the clauses introduced for this edge become binary in , and their corresponding clause vertices and neighboring vertices form a path from to in .
Each of these binary clauses contains a literal on an unassigned chain variable, where occurs in exactly one clause of . Consequently, these clauses remain distinct in . Since different edge chains use distinct chain variables, the resulting paths have pairwise disjoint internal vertices. Each connected component of containing an edge is therefore a minor of . Since is a strong backdoor, , and hence . As was arbitrary, is a simultaneous deletion set of size at most . This proves the equivalence.
Parameter and running time. Observe that the construction takes polynomial time and produces a non-tautological 3-CNF formula. Its backdoor budget satisfies . Thus the target parameter is bounded by the source parameter . The reduction therefore establishes W[1]-hardness of STRONG BACKDOOR TO TREEWIDTH-t parameterized by k.
7 Conclusion
We determine the parameterized complexity of finding a set of at most variables of a non-tautological CNF formula such that every assignment to these variables leaves a formula whose incidence graph has treewidth at most . When , so that every residual incidence graph must be a forest, we give an algorithm running in time. For every fixed , finding such a set is W[1]-hard parameterized by , even on non-tautological 3-CNF formulas. Thus, allowing the residual incidence graphs to have treewidth two instead of one changes the detection problem from FPT to W[1]-hard.
For the target class of incidence forests, we also relate the dependence on backdoor size in the running time to the complexity of satisfiability. An algorithm finding a strong backdoor of size at most in time would yield an algorithm solving 3-SAT on variables in time, which would mean an even faster algorithm for solving 3-SAT than what is currently claimed by OpenAI [Ope26] and Anthropic [Cla26], in the result where they claim to refute ETH. This way we state the consequence of improving our parameter dependence directly, without relying on ETH.
For every fixed target treewidth , the FPT-approximation algorithm of Gaspers and Szeider [GS13] finds a strong backdoor of size at most whenever one of size at most exists. Such a backdoor suffices to solve SAT in FPT time, even though its size may be exponentially larger than the requested bound. For these larger target treewidth, a natural next question is whether better FPT-approximations are possible. In particular, can an FPT in algorithm find a strong backdoor of size at most or even whenever a strong backdoor of size at most k exists, on arbitrary non-tautological CNF formulas, when the target class has treewidth t?
AI disclosure. AI was used only for editing and polishing the proofs after having the preliminary proofs written by the authors. The authors take full responsibility for the content of this work.
References
[ALMS18] Akanksha Agrawal, Daniel Lokshtanov, Amer E. Mouawad, and Saket Saurabh. Simultaneous feedback vertex set: A parameterized perspective. ACM Trans. Comput. Theory, 10(4):18:1–18:25, 2018.
[ALS91] Stefan Arnborg, Jens Lagergren, and Detlef Seese. Easy problems for tree-decomposable graphs. Journal of Algorithms, 12(2):308–340, 1991.
[BK08] Hans L. Bodlaender and Arie M. C. A. Koster. Combinatorial optimization on graphs of bounded treewidth. Comput. J., 51(3):255–269, 2008.
[BZ11] Vladimir Batagelj and Matjaz Zaversnik. Fast algorithms for determining (generalized) core groups in social networks. Adv. Data Anal. Classif., 5(2):129–145, 2011.
[Cla26] Claude (Anthropic). A time algorithm for 3-SAT, 2026. Preprint.
[CLRS01] Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. Introduction to Algorithms, Second Edition. The MIT Press and McGraw-Hill Book Company, 2001.
[DGG 26] Jan Dreier, Robert Ganian, Marlene Gründel, Roohani Sharma, and Simon Wietheger. Solving sat via treewidth backdoors in linear time: Beyond sparsity, 2026.
[DJO 23] Konrad K. Dabrowski, Peter Jonsson, Sebastian Ordyniak, George Osipov, Marcin Pilipczuk, and Roohani Sharma. Parameterized complexity classification for interval constraints. In Neeldhara Misra and Magnus Wahlström, editors, 18th International Symposium on Parameterized and Exact Computation, IPEC 2023, Amsterdam, The Netherlands, September 6-8, 2023, volume 285 of LIPIcs, pages 11:1–11:19. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023.
[DOS23] Jan Dreier, Sebastian Ordyniak, and Stefan Szeider. CSP beyond tractable constraint languages. Constraints An Int. J., 28(3):450–471, 2023.
[DOS24] Jan Dreier, Sebastian Ordyniak, and Stefan Szeider. SAT backdoors: Depth beats size. J. Comput. Syst. Sci., 142:103520, 2024.
[FKW04] Fedor V. Fomin, Dieter Kratsch, and Gerhard J. Woeginger. Exact (exponential) algorithms for the dominating set problem. In Graph-Theoretic Concepts in Computer Science (WG 2004), volume 3353 of Lecture Notes in Computer Science, pages 245–256. Springer, 2004.
[FLM 15] Fedor V. Fomin, Daniel Lokshtanov, Neeldhara Misra, M. S. Ramanujan, and Saket Saurabh. Solving d-sat via backdoors to small treewidth. In Piotr Indyk, editor, Proceedings of the Twenty-Sixth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2015, San Diego, CA, USA, January 4-6, 2015, pages 630–641. SIAM, 2015.
[GMO 17] Serge Gaspers, Neeldhara Misra, Sebastian Ordyniak, Stefan Szeider, and Stanislav Zivný. Backdoors into heterogeneous classes of SAT and CSP. J. Comput. Syst. Sci., 85:38–56, 2017.
[GOR 16] Serge Gaspers, Sebastian Ordyniak, M. S. Ramanujan, Saket Saurabh, and Stefan Szeider. Backdoors to q-horn. Algorithmica, 74(1):540–557, 2016.
[GRS17a] Robert Ganian, M. S. Ramanujan, and Stefan Szeider. Backdoor treewidth for SAT. In Serge Gaspers and Toby Walsh, editors, Theory and Applications of Satisfiability Testing - SAT 2017 - 20th International Conference, Melbourne, VIC, Australia, August 28 - September 1, 2017, Proceedings, volume 10491 of Lecture Notes in Computer Science, pages 20-37. Springer, 2017.
[GRS17b] Robert Ganian, M. S. Ramanujan, and Stefan Szeider. Combining treewidth and backdoors for CSP. In Heribert Vollmer and Brigitte Vallée, editors, 34th Symposium on Theoretical Aspects of Computer Science, STACS 2017, Hannover, Germany, March 8-11, 2017, volume 66 of LIPIcs, pages 36:1-36:17. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2017.
[GS12a] Serge Gaspers and Stefan Szeider. Backdoors to acyclic SAT. In Artur Czumaj, Kurt Mehlhorn, Andrew M. Pitts, and Roger Wattenhofer, editors, Automata, Languages, and Programming - 39th International Colloquium, ICALP 2012, Warwick, UK, July 9-13, 2012, Proceedings, Part I, volume 7391 of Lecture Notes in Computer Science, pages 363-374. Springer, 2012.
[GS12b] Serge Gaspers and Stefan Szeider. Backdoors to satisfaction. In Hans L. Bodlaender, Rod Downey, Fedor V. Fomin, and Dániel Marx, editors, The Multivariate Algorithmic Revolution and Beyond - Essays Dedicated to Michael R. Fellows on the Occasion of His 60th Birthday, volume 7370 of Lecture Notes in Computer Science, pages 287-317. Springer, 2012.
[GS12c] Serge Gaspers and Stefan Szeider. Strong backdoors to nested satisfiability. In Alessandro Cimatti and Roberto Sebastiani, editors, Theory and Applications of Satisfiability Testing - SAT 2012 - 15th International Conference, Trento, Italy, June 17-20, 2012. Proceedings, volume 7317 of Lecture Notes in Computer Science, pages 72-85. Springer, 2012.
[GS13] Serge Gaspers and Stefan Szeider. Strong backdoors to bounded treewidth SAT. In 54th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2013, Berkeley, CA, USA, October, 26-29, 2013, pages 489-498. IEEE Computer Society, 2013.
[GS26] Serge Gaspers and Stefan Szeider. Backdoors to satisfaction continued. Comput. Sci. Rev., 60:100868, 2026.
[KLM19] Karthik C. S., Bundit Laekhanukit, and Pasin Manurangsi. On the parameterized complexity of approximating dominating set. J. ACM, 66(5):33:1-33:38, 2019.
[LPR22] Daniel Lokshtanov, Fahad Panolan, and M. S. Ramanujan. Backdoor sets on nowhere dense SAT. In Mikolaj Bojanczyk, Emanuela Merelli, and David P. Woodruff, editors, 49th International Colloquium on Automata, Languages, and Programming, ICALP 2022, Paris, France, July 4-8, 2022, volume 229 of LIPIcs, pages 91:1-91:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2022.
[MB83] David W. Matula and Leland L. Beck. Smallest-last ordering and clustering and graph coloring algorithms. J. ACM, 30(3):417-427, 1983.
[MORS13] Neeldhara Misra, Sebastian Ordyniak, Venkatesh Raman, and Stefan Szeider. Upper and lower bounds for weak backdoor set detection. In Matti Järvisalo and Allen Van Gelder, editors, Theory and Applications of Satisfiability Testing - SAT 2013 - 16th
International Conference, Helsinki, Finland, July 8-12, 2013. Proceedings, volume 7962 of Lecture Notes in Computer Science, pages 394–402. Springer, 2013.
[MSV21] Nikolas Mählmann, Sebastian Siebertz, and Alexandre Vigny. Recursive backdoors for SAT. In Filippo Bonchi and Simon J. Puglisi, editors, 46th International Symposium on Mathematical Foundations of Computer Science, MFCS 2021, Tallinn, Estonia, August 23-27, 2021, volume 202 of LIPIcs, pages 73:1–73:18. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021.
[NRS04] Naomi Nishimura, Prabhakar Ragde, and Stefan Szeider. Detecting backdoor sets with respect to horn and binary clauses. In SAT 2004 - The Seventh International Conference on Theory and Applications of Satisfiability Testing, 10-13 May 2004, Vancouver, BC, Canada, Online Proceedings, 2004.
[Ope26] OpenAI. The exponential time hypothesis is false, 2026. Preprint, October 25, 2026.
[OPS13] Sebastian Ordyniak, Daniël Paulusma, and Stefan Szeider. Satisfiability of acyclic and almost acyclic CNF formulas. Theor. Comput. Sci., 481:85–99, 2013.
[OSS24] Sebastian Ordyniak, André Schidler, and Stefan Szeider. Backdoor dnfs. J. Comput. Syst. Sci., 144:103547, 2024.
[RS86] Neil Robertson and Paul D. Seymour. Graph minors. V. excluding a planar graph. Journal of Combinatorial Theory, Series B, 41(1):92–114, 1986.
[RS14] M. S. Ramanujan and Saket Saurabh. Linear time parameterized algorithms via skew-symmetric multicuts. In Chandra Chekuri, editor, Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2014, Portland, Oregon, USA, January 5-7, 2014, pages 1739–1748. SIAM, 2014.
[Sip97] Michael Sipser. Introduction to the theory of computation. PWS Publishing Company, 1997.
[SS08] Marko Samer and Stefan Szeider. Backdoor trees. In Dieter Fox and Carla P. Gomes, editors, Proceedings of the Twenty-Third AAAI Conference on Artificial Intelligence, AAAI 2008, Chicago, Illinois, USA, July 13-17, 2008, pages 363–368. AAAI Press, 2008.
[SS10] Marko Samer and Stefan Szeider. Algorithms for propositional model counting. J. Discrete Algorithms, 8(1):50–64, 2010.
[WGS03] Ryan Williams, Carla P. Gomes, and Bart Selman. Backdoors to typical case complexity. In Georg Gottlob and Toby Walsh, editors, IJCAI-03, Proceedings of the Eighteenth International Joint Conference on Artificial Intelligence, Acapulco, Mexico, August 9-15, 2003, pages 1173–1178. Morgan Kaufmann, 2003.
A Allowing tautological clauses in 3-CNF formulas
We consider SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS, now allowing tautological clauses. Recall an instance of this problem is , where is a collection of 3-CNF formulas over . The goal is to find , with repetitions allowed, such that is a strong forest backdoor of every formula in .
Theorem A.1. Let be an instance of SIMULTANEOUS COLORED STRONG BACKDOOR TO FORESTS, where contains 3-CNF formulas, possibly with tautological clauses. Then can be solved in time.
Proof. We first show how to replace tautological clauses by non-tautological clauses once the incidence graphs are -free. We then give a bounded branching procedure for reaching this case.
The -free case. Let be a 3-CNF formula whose incidence graph is -free. Every tautological clause contains at most two distinct variables. Obtain by deleting one of the two complementary literals from each tautological clause and merging identical clauses. The formula is non-tautological, and each modified clause retains its original variable set. Only unit clauses can newly coincide: otherwise, two original clauses would share two distinct variables, contradicting -freeness. Thus is also -free. This transformation takes linear time.
We claim that every is a strong forest backdoor of if and only if it is one of . Fix an assignment to and consider an original tautological clause . If , both and its modified clause survive with the same variable neighbors. Otherwise, at most one variable of remains unassigned. In this case, the corresponding clause vertex in either semi-reduct is absent or has degree at most one. All non-tautological clauses are treated identically. Consequently, the two semi-reduct incidence graphs are acyclic simultaneously.
Moreover, in either formula, clauses that become identical after an assignment can contain at most one distinct variable, by -freeness. Merging their clause vertices therefore preserves acyclicity. Hence
This proves the claim.
Apply this transformation separately to every input formula, keeping V and all candidate sets unchanged. The validity of every choice from the candidate sets is preserved. We may therefore apply Lemma 4.6 directly to the resulting non-tautological instance.
Eliminating four-cycles. At each recursive call, reject if a candidate set is empty. If no candidate sets remain, accept precisely when every incidence graph is a forest. If all incidence graphs are -free, use the procedure established above.
Otherwise, find a four-cycle, using Lemma 4.9, through two distinct clauses . Every solution intersects . Indeed, a choice avoiding these variables leaves both clauses unchanged and distinct under every assignment, so the four-cycle survives. Since each clause contains at most three literals, this union has at most six variables.
For every and every remaining candidate set containing , create a branch choosing from . Remove and replace every current formula by both and . All other candidate sets unchanged. The remaining choices must work for both assignments to , so this branching is sound and complete. This also permits to be chosen from another candidate set, since it is absent from both reducts.
Each branch removes one candidate set. The search tree therefore has depth at most , at most children per node, and nodes. At depth , there are at most formulas, at most candidate sets, and the instance size is . Every incidence graph is 3-degenerate, so Lemma 4.9 finds a four-cycle, if one exists, in linear time. Constructing the reducts also takes linear time in the current instance size.
At a -free leaf, first replace each tautological clause by a non-tautological clause as described above, and then apply Lemma 4.6. The running time is at most
Summing over the search tree gives the claimed running time. Successful choices are recovered from the leaf algorithm and the variables fixed along its branch.
For a single input formula , first handle or an already acyclic incidence graph directly. Otherwise, set , , and for every . As in the proof of Theorem 1.1, repeated choices represent every nonempty backdoor of size at most . The resulting running time is . Thus Theorem 1.1 also holds for 3-CNF formulas that may contain tautological clauses.