Exact Algorithms and Hardness Result for the Boolean Connectivity Problem of -Horn Formulas
Abstract
The Boolean connectivity problem asks whether the set of satisfying assignments of a given Boolean formula forms a connected subgraph in the -dimensional hypercube. This problem is known to be -complete, even when restricted to -Horn formulas for , as shown by Makino, Tamaki, and Yamamoto. In this paper, we further investigate the complexity of the Boolean connectivity problem for -Horn formulas, referred to as Conn -Horn. We first present an exact exponential-time algorithm for Conn -Horn without any structural restrictions. Our algorithm builds on the deterministic PPZ algorithm proposed by Paturi, PudlΓ‘k, and Zane. It runs in time, achieving an exponential improvement over the previously known algorithm for the Boolean connectivity problem of -CNF formulas, shown by Makino, Tamaki, and Yamamoto. We then examine both algorithmic and hardness results for Conn -Horn under bounded variable occurrences. On the algorithmic side, we propose a polynomial-time algorithm for Conn -Horn when each clause contains exactly three literals and each variable appears at most three times. This result generalizes to Conn -Horn under the same structural constraints, in which each clause contains exactly literals and each variable appears at most times. On the hardness side, we prove that Conn -Horn remains -complete even when restricted to instances in which each variable appears exactly four times.
Keywords and phrases:
-Horn, Boolean connectivity, bounded variable occurrence, hardness, exact algorithm, satisfiabilityFunding:
Takashi Horiyama: JSPS KAKENHI Grant Number 20H05964 and 23K24806Copyright and License:
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithmsEditors:
Akanksha Agrawal and Erik Jan van LeeuwenSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik
1 Introduction
The Boolean connectivity problem asks whether the satisfying assignments of a given Boolean formula are connected over the -dimensional hypercube. The structure and connectivity of the satisfying assignments are related to analyzing the satisfiability algorithm and the threshold of satisfiability. The satisfiability problem is characterized by the famous Schaefer dichotomy theorem [12]. Schaeferβs class denotes the class of formulas, e.g., -CNF, (dual) Horn, and affine formulas. Ekin, Hammer, and Kogan [5] showed that the Boolean connectivity of DNF is solvable in time linear in the size of DNF, while determining the connectivity of falsifying assignments of DNF is -hard, i.e., the Boolean connectivity of CNF is -hard. Gopalan, Kolaitis, Maneva, and Papadimitriou [6] deeply investigated the computational complexity of the Boolean connectivity problem. They showed that it is either -complete or -complete for non-Schaeferβs class, and in for Schaeferβs class. They also conjectured that it is solvable in polynomial time for Schaeferβs class. Makino, Tamaki, and Yamamoto [7] and Schwerdtfeger [15] gave a negative answer by proving the -completeness of the Boolean connectivity problem for -Horn and other related formulas.
Although the trichotomy theorem of the Boolean connectivity problem has been fully established, only a few algorithms are known for instances beyond . For the connectivity of -CNF formulas (Conn -CNF), it is solvable in polynomial time when [6]. Makino et al. [8] presented a moderately exponential-time algorithm for Conn -CNF () over variables and clauses which is -complete. Their algorithm constructs the solution graph over partial satisfying assignments and then determines the connectivity of the graph. It runs in time and exponential space, where and is the largest positive real number that satisfies . The notation suppresses polynomial factors in and . Throughout this paper, the base of the logarithm is 2. Note that .
In this paper, we deeply investigate the complexity of the Boolean connectivity of -Horn formulas (Conn -Horn). We first consider an exact algorithm for Conn -Horn without any structural restrictions. The algorithm of Makino et al. can also solve Conn -Horn in the same running time since -Horn formulas are subsets of -CNF formulas. Hence, it is a natural question whether there exists a faster algorithm for Conn -Horn. Makino et al. [7] presented an exact algorithm in polynomial time in terms of the number of variables and the size of the characteristic set of a given Horn formula. Unfortunately, the efficiency of finding the characteristic set of a given Horn formula is not yet well-known. We give an affirmative answer by utilizing the deterministic PPZ algorithm for -SAT shown by Paturi, PudlΓ‘k, and Zane [10]. The deterministic PPZ algorithm can find not only a satisfiability assignment but also all locally minimal satisfying assignments. Moreover, Conn -Horn can be solved to find a locally minimal satisfying assignment with Hamming weight at least one [6]. These help us solve Conn -Horn exponentially faster than the algorithm of Conn -CNF.
Theorem 1.
Given a -Horn formula over variables, there exists a deterministic time and polynomial-space algorithm for Conn -Horn.
The slightly modified algorithm above can count the number of connected components in the solution graph of a given -Horn formula.
Corollary 2.
Counting the number of connected components in the solution graph of a given -Horn formula over variables can be done in deterministic time and space.
We next consider Conn -Horn with a bounded number of occurrences of each variable. We present both algorithmic and hardness results.
Theorem 3.
Conn -Horn is solvable in polynomial time when each clause has length exactly three and each variable appears at most three times.
The key idea of our algorithm is based on the relationship between the solution graph of a Horn formula and a non-empty maximal self-implicating set, as shown in [15]. Any variable in a self-implicating set is forced to be true when all the other variables in the set are true. The solution graph is disconnected if and only if there exists a non-empty maximal self-implicating set and no clauses with only negative literals of these variables. We show that such a set can be found in polynomial time.
Theorem 4.
Conn -Horn is -complete even when each variable appears exactly four times.
We first prove the complement of Conn -Horn remains -complete even if each variable appears at most four times by a polynomial-time reduction from Monotone Not-All-Equal 3-SAT with each variable appearing exactly four times. This problem is known to be -complete [3]. We next show Theorem 4 by providing a polynomial-time reduction from the above problem.
Related Work
The connectivity problem between two satisfying assignments (st-Conn) has also been extensively studied. Gopalan et al. [6] showed that st-Conn is solvable in polynomial time for Schaeferβs and a part of non-Schaeferβs class and is -complete otherwise. Scharpfenecker [13] proved that the complexity of SAT is equivalent to that of st-Conn in Schaeferβs class. This implies that st-Conn is -complete for Horn formulas and is -complete for 2-CNFs. Cardinal, Demaine, Eppstein, Hearn, and Winslow [2] showed that st-Conn of Planar Monotone Not-All-Equal 3-SAT is -complete.
The problem of finding the shortest path in the solution graph of Boolean formulas has also been investigated. Mouawad, Nishimura, Pathak, and Raman [9] investigated the complexity of this problem. They established a trichotomy theorem stating that the problem is either in , -complete, or -complete. They also showed that some classes of Boolean formulas exist where the shortest path can be found in polynomial time, even though its length is not equal to the symmetric difference of the values of each variable in and . Bonsma, Mouawad, Nishimura, and Raman [1] showed the problem is W[1]-hard when parameterized by the path length from to .
The complexity of the isomorphism of two solution graphs was studied in [14]. This problem is -hard and lies in for general formulas, and is -complete for -CNF. The class is a subclass of and is defined in terms of exact counting.
2 Preliminaries
Let be a Boolean variable that takes true (1) or false (0). A literal is a Boolean variable (positive literal) or its negation (negative literal). A clause is a disjunction of literals. The length of clause is defined as the number of literals in . A unit clause is a clause of length one. A conjunctive normal form (CNF) formula is a conjunction of clauses, and a -CNF formula is a CNF formula if the length of each clause is at most . A CNF formula is monotone if all clauses in the formula consist of only positive (or negative) literals. In this paper, we use Monotone CNF as CNF formulas with all positive literals unless otherwise stated. A Horn clause is a clause including at most one positive literal. A Horn formula is a CNF formula whose all clauses are Horn, and a -Horn formula is a -CNF formula and a Horn formula. Let be a set of Boolean variables. An assignment of a Boolean formula over is such that for all . A partial assignment of a Boolean formula over is such that for all . A partial assignment with means variable is not assigned a 0/1 value. For a variable and an assignment , we denote by the value of under an assignment . We can simplify a Boolean formula by a partial assignment in a natural way, and the resulting formula is denoted by . An (partial) assignment is a (partial) satisfying assignment of a Boolean formula if is true. The satisfiability problem is to determine whether there exists a satisfying assignment of a given Boolean formula .
Many excellent exponential-time algorithms for the satisfiability problem of -CNF formulas (-CNF SAT) are known. One of the famous algorithms is shown by Paturi, PudlΓ‘k, and Zane [10].
Theorem 5 ([10]).
There exists an algorithm that can solve -CNF SAT over variables in a deterministic time and polynomial space.
For an assignment , the Hamming weight of is . For two assignments , the Hamming distance between and , denoted by , is . We define the solution graph of a Boolean formula as , where is a set of all satisfying assignments of , that is, , and .
Definition 6.
The Boolean connectivity problem (Conn) is to ask whether the solution graph of a given Boolean formula over variables is connected.
Makino, Tamaki, and Yamamoto [7] showed that Conn -Horn is -complete, thus the following lemma holds.
Lemma 7 ([7]).
Conn -Horn is -complete when .
Given two assignments , we denote as the coordinate-wise partial order if for each . A satisfying assignment for a given formula is locally minimal if has no neighboring satisfying assignment with and . For , a monotone path from to is a path in , such that . Gopalan, Kolaitis, Maneva, and Papadimitriou [6] showed a notable connection between locally minimal satisfying assignments and the connectivity of Horn formulas.
Lemma 8 ([6]).
Given a Horn formula , every connected component of has a unique locally minimal satisfying assignment. Moreover, there exists a monotone path from the locally minimal satisfying assignment to each satisfying assignment in the same connected component.
The following corollary follows from that any Horn formula without unit clauses over variables has an all-zero satisfying assignment () and Lemma 8.
Corollary 9 ([7]).
Given a Horn formula without unit clauses, the solution graph is connected if and only if no locally minimal non-zero satisfying assignment exists.
Let (resp. ) denote the set of variables that appear in positive (resp. negative) literals in a clause of . Makino et al. [7] introduced the following Boolean formula .
| (1) | ||||
For example, given a Horn formula
then
Note that each is either a unit clause with a negative literal or a conjunction of one negative literal and disjunctions of positive literals. The satisfiability of is strongly related to the connectivity of the solution graph of a Horn formula because a satisfying assignment of is a locally minimal satisfying assignment of .
Lemma 10 ([7]).
Given a Horn formula without unit clauses over variables, the solution graph is disconnected if and only if has a non-zero satisfying assignment.
A restraint clause is a clause with only negative literals, and a restraint set is a set of variables included in restraint clauses. An implication clause is a clause that has one positive literal and one or more negative literals. A Boolean variable is said to be implied by a set of variables if setting all variables in to true forces to be true. A self-implicating set is a set of variables, where every is implied by . We also say that is a maximal self-implicating set if is a set of all variables implied by . For maximal self-implicating sets, there exists a relation between locally minimal satisfying assignments and maximal self-implicating sets.
Lemma 11 ([15]).
For every Horn formula without positive unit clauses, there is a bijection correlating each connected component with a maximal self-implicating set containing no restraint set, i.e., consists of the variables assigned true in the minimum assignment of (the βlowestβ component is correlated with the empty set).
Corollary 12 ([15]).
The solution graph of a Horn formula without positive unit clauses is disconnected if and only if has a non-empty maximal self-implicating set containing no restraint set.
3 Exact Algorithm for the Boolean Connectivity of -Horn formulas based on the deterministic PPZ Algorithm
In this section, we present a faster algorithm for Conn -Horn based on the deterministic PPZ algorithm [10]. Before presenting our new algorithm, we describe the notations and behaviors of the deterministic PPZ algorithm, referred to as DetPPZ. Let be a -CNF formula with variables and clauses, and let be a satisfying assignment. A clause is a critical clause for the variable at the solution if is to be false by flipping . A variable is a critical variable if there exists a critical clause . The DetPPZ first checks whether there exists a satisfying assignment of to check all assignments with Hamming weight at most where . If there is no such satisfying assignment, the DetPPZ tries to find a locally minimal satisfying assignment with Hamming weight at least . Note that is falsified by any assignment obtained by flipping any 1 in to 0. Thus, must have at least critical variables. Let be a permutation of . The DetPPZ picks up a permutation in a βgoodβ small sample space and branches by assigning a 0/1 value to according to the order in . If any critical variable appears last among the variables in the corresponding critical clause, then it can be assigned correctly. It helps to reduce the number of branches in the algorithm. Modifying the DetPPZ such that it does not halt even if it finds a satisfying assignment with Hamming weight at most , the DetPPZ can find all locally minimal satisfying assignments. From Corollary 9, Conn -Horn can be solved by checking whether there exists some locally minimal satisfying assignment except for assignment. Thus, by combining the (modified) DetPPZ and the procedure checking locally minimality, we solve Conn -Horn in the same running time as the DetPPZ. We describe our algorithm, PPZ-Conn-Horn, in Algorithm 1.
The following βgoodβ sample space of permutations using -wise independent variables is useful.
Lemma 13 ([10]).
One can construct the set of permutations of size that satisfies the following condition: for any set of up to variables, any variable , and for a randomly chosen permutation from , the probability that appears last among the variables in is at least .
The following lemma immediately follows from the proof of correctness of the deterministic PPZ algorithm shown in [10]. We provide almost the same proof for self-containedness in this paper.
Lemma 14.
Let be the set of permutations constructed by Lemma 13. Let be an arbitrary satisfying assignment with at least critical clauses. There exists a permutation in that produces .
Proof.
Let be a satisfying assignment with at least critical clauses. We now choose a permutation from at random. For each critical clause at , the probability that the critical variable appears last in among the variables in the clause is at least by Lemma 13. Since the number of critical clauses is at least , the expected number of times this event appears is at least , and there exists some in that achieves at least the expectation. With respect to such , we assign at most variables to satisfy . Thus, by checking all strings of bits, the permutation can produce a satisfying assignment .
We next show that the locally minimality of satisfying assignments can be efficiently checked.
Lemma 15.
Let be a satisfying assignment of with Hamming weight . One can check whether is locally minimal in time.
Proof.
From the definition of locally minimality, if any satisfying assignment of is locally minimal, then any assignment obtained by flipping any 1βs bit is not a satisfying assignment of . It can be done by checking whether satisfies . Since the Hamming weight of is , we can check the locally minimality of in time.
We present the main lemma, which establishes the correctness of our algorithm.
Lemma 16.
The deterministic PPZ algorithm can find all locally minimal satisfying assignments of .
Proof.
The deterministic PPZ algorithm first checks all assignments with Hamming weight at most . Hence, any satisfying assignment with Hamming weight at most can be found. We can check whether is locally minimal from Lemma 15.
We next consider that any locally minimal satisfying assignment has Hamming weight at least . Since is a locally minimal satisfying assignment and has at least 1βs, there exists at least critical clauses at . From Lemma 14, must be produced by some permutation in the sample space constructed in the algorithm. The algorithm checks all permutations in , then it can find . We can check whether is truly locally minimal from Lemma 15.
Proof.
We can solve Conn -Horn by checking whether there exists some locally minimal non-zero satisfying assignment from Corollary 9. Lemma 16 shows that the deterministic PPZ algorithm can find all locally minimal satisfying assignments. Thus, PPZ-Conn-Horn in Algorithm 1 solves Conn -Horn correctly. The deterministic PPZ algorithm runs in time and polynomial space. Checking locally minimality can be done time for each satisfying assignment from Lemma 15. Thus, our algorithm runs in time and polynomial space.
By adding the procedure of counting the number of distinct locally minimal satisfying assignments (see Algorithm 2), we obtain the following Corollary. See 2
4 Complexity on the Boolean Connectivity of 3-Horn Formulas with Bounded Variable Occurrence
In this section, we consider the Boolean connectivity of -Horn, whose variable occurrence is bounded. Section 4.1 presents a deterministic polynomial-time algorithm for Conn 3-Horn with each clause of length exactly three and each variable appearing at most three times (Conn E3-Horn-3). Section 4.2 shows the -complete of Conn 3-Horn where each variable appears exactly four times (Conn 3-Horn-E4).
4.1 Polynomial-time Algorithm
We present a deterministic polynomial-time algorithm for Conn E3-Horn-3. Our algorithm can solve the connectivity of -Horn formulas with the length of each clause exactly and each variable appearing at most (Conn E-Horn-). For a set of variables and a CNF formula , we denote by the set of all clauses in that consist of only variables in .
Lemma 17.
Let be an instance of Conn E3-Horn-3 over . The solution graph is disconnected if and only if there exists a partition of the set into two sets and and a partition of the set of clauses of into two sets and such that is a non-empty set of variables which appear once as a positive literal.
Proof.
We first prove the if-part, and assume that a variable set satisfies the if-condition. We show that is a non-empty maximal self-implicating set containing no restraint set, then is disconnected from Corollary 12. The number of implication clauses in is since each variable in appears once as a positive literal. These implication clauses have literals since the length of each clause in is three, and then the total number of literals of clauses in is at least . However, the total number of occurrences of variables in is at most since each variable appears at most three times. These lead to the total number of literals in being exactly . Thus, all literals in appear in implication clauses in , i.e., there is no restraint set in . For any implication clause , the positive literal in is assigned true when the other negative literal(s) are assigned false. This implies that every is implied by . In addition, any variable in any clause in cannot be implied by since . Hence, is a non-empty maximal self-implicating set and contains no restraint set. This concludes the proof of the if-part.
We next prove the only-if part. Assume that is disconnected. From Corollary 12, has a non-empty maximal self-implicating set containing no restraint set. This implies that every variable in appears as a positive literal at least once. We claim that the number of implication clauses with only variables in is . There exists at least implication clauses in since is a self-implicating set, i.e., there exists a clause for every . Since the total number of occurrences of variables in is at most and the length of each clause is three, there exist at most implication clauses with only variables in . If the number of such implication clauses with only variables in is at most , there exists some appearing in an implication clause as positive literals with at least one variable in . We denote as such a clause. In this case, is implied by and . This contradicts the fact that is a maximal self-implicating set. Thus, the number of implication clauses with only variables in is , and this implies that every variable in appears as a positive literal only once. The number of literals of these clauses is , and it equals the maximum total number of occurrences of variables in . This implies that the pair (, ) is a partition of , and the pair of , is a partition of . This concludes the proof of the only-if part.
Now, we present a polynomial-time algorithm based on Lemma 17.
Theorem 3. [Restated, see original statement.]
Conn -Horn is solvable in polynomial time when each clause has length exactly three and each variable appears at most three times.
Proof.
A given 3-Horn formula over has at most literals and clauses since the length of each clause is three and each variable appears at most three times. We find a non-empty variable set that satisfies Lemma 17 to determine the connectivity of the solution graph of .
We first enumerate the non-empty variable set such that and as follows. We construct the graph , where . It is easy to see that the variable set corresponding to the vertices in any connected component of constructs . Thus, we can enumerate the non-empty variable sets to enumerate the connected components of . We use the depth-first search for to enumerate all the connected components. It remains to check whether each is a set of variables that appear once as a positive literal. If at least one such exists, the solution graph is disconnected. Otherwise, the solution graph is connected, as shown in Lemma 17.
We now estimate the running time of this algorithm. Constructing the graph can be done in time since the number of edges is at most . Enumerating the non-empty variable set can be done in time by the depth-first search. Note that the number of non-empty variable sets is . We can check whether each is a set of variables that appear once as a positive literal in by checking the clauses. Hence, our algorithm runs in time .
Corollary 18.
Let be an instance of Conn E-Horn- over . The solution graph is disconnected if and only if there exists a partition of the set into two sets and and a partition of the set of clauses of into two sets and such that is a non-empty set of variables which appear once as a positive literal.
Gopalan et al. [6] showed that Conn 2-CNF is solvable in polynomial time with no bounded variable occurrence. The proof of Theorem 3 also holds for from Corollary 18. Therefore, we can show Corollary 19.
Corollary 19.
For , Conn E-Horn- is solvable in polynomial time.
We can show the following corollary from Corollary 18.
Corollary 20.
For , given a -Horn formula , where each clause length and each variable occurrence are exactly , the number of connected components in the solution graph of is at most .
Proof.
Let be an instance of Conn -Horn with each clause length exactly and each variable occurrence exactly , where the solution graph of is disconnected. A variable set of is denoted by . Then, there exists at least one variable set such that and partition and is a non-empty set of variables that appear once as a positive literal. Now, we assume that has variable sets and a variable set such that and , and for any , where is a non-empty set of variables which appear once as a positive literal. Then, we can construct all locally minimal satisfying assignments by setting the value 0 or 1 to all variables for each and setting the value 0 to all variables in from Lemma 11. Therefore, there exist locally minimal satisfying assignments of . Moreover, is a multiple of since the length of each clause and the number of occurrences of each variable are exactly . Hence, the maximum value of is .
4.2 Hardness
We prove the -completeness of Conn 3-Horn where each variable appears at most four times (Conn 3-Horn-4), then we prove the -completeness of Conn 3-Horn-E4 by a polynomial-time reduction from it. Instead of proving the -completeness of Conn 3-Horn-4, we show the -completeness of the complement problem of Conn 3-Horn-4 (DisConn 3-Horn-4) that asks whether the solution graph of a given 3-Horn formula with each variable appearing at most four times is disconnected. The proof is based on a polynomial-time reduction from Monotone Not-All-Equal E3-SAT-E4 (for short, Monotone NAE E3-SAT-E4) by utilizing the framework of Makino et al. [7]. An NAE-satisfying assignment is a satisfying assignment in which each clause has at least one literal assigned false and at least one literal assigned true. Given a Monotone 3-CNF formula with variables and clauses in which each clause has exactly three literals and each variable appears exactly four times, Monotone NAE E3-SAT-E4 asks whether there exists an NAE-satisfying assignment of . It is known that this problem is -complete [3].
We first show the construction of a 3-Horn formula from an instance of Monotone NAE E3-SAT-E4. Let be a set of variables. Let be an instance of Monotone NAE E3-SAT-E4 over with clauses. Let be the set of clauses of the formula . For simplicity, if the variable appears in the clause , we write . We first replace the -th occurrence of with a new variable and we denote by the set of new variables created from . Let , and . We construct the formula over from as follows.
Each clause in has three negative literals since each clause has three positive literals. Other clauses in have at most one positive literal and at most two negative literals. Hence, is a 3-Horn formula. The number of occurrences of each variable and is exactly four, and each variable appears exactly three times. Also, each variable and appears exactly twice. Therefore, is an instance of DisConn 3-Horn-4.
We show the following claim about the satisfying assignment of .
Claim 21.
Let be an arbitrary NAE-satisfying assignment of , and let be a satisfying assignment of such that for all , then assigns
-
(a)
the value 1 to all the variables ,
-
(b)
the value 1 to all the variables and the variable ,
-
(c)
the same value to all the variables and the variable .
Proof.
From and assigns 1 to at least one variable in each , must assign 1 to all the variables . In this case, the second line of forces all the values of and to be assigned 1 for satisfying . Furthermore, forces the values of all variables to be the same from the last two lines of .
For simplicity of proving the correctness of our reduction, we further transform to as follows, recalling Equation (1):
We need two auxiliary lemmas to prove the -hardness of DisConn 3-Horn-4.
Lemma 22.
has a non-zero satisfying assignment if has an NAE-satisfying assignment.
Proof.
Let be an NAE-satisfying assignment of , and let us construct a satisfying assignment of from . For each , we set the value of each variable in to the value of in . Since is an NAE-satisfying assignment of monotone formulas, there exists at least one variable assigned 1. Thus, , and are also assigned 1. This implies , and must be 1 from the third line of . From Claim 21, all the variables except for must be assigned 1 in . Clearly, is a non-zero assignment and satisfies .
Lemma 23.
has an NAE-satisfying assignment if has a non-zero satisfying assignment.
Proof.
Let be an arbitrary non-zero satisfying assignment of . We consider two cases for assigning to the variable .
-
(a)
In the case , we show that cannot have any non-zero satisfying assignments. We consider the formula by removing the formula from . From the clauses in and , all variable must be assigned 0 under . Then, the formula is simplified as follows.
To satisfy this formula, assigns
-
(1)
the value 0 to all variables from ,
-
(2)
the value 0 to all variables from ,
-
(3)
the value 0 to all variables from ,
-
(4)
the value 0 to from
Hence, must be the all-zero satisfying assignment. Therefore, cannot have any non-zero satisfying assignment.
-
(1)
-
(b)
In the case , from the clauses in and , all variables and must be assigned 1 under . Then, is simplified to . To satisfy these clauses, the values of all variables and are forced to 1 under . Then, the formula is simplified as follows:
Using , then the above formula is
To satisfy this formula, each variable must be assigned the same value from . We now construct an assignment by setting to the value of in . The first line of the above formula assures that the assignment assigns 0 to at least one variable and 1 to at least one variable in each clause . Thus, is an NAE-satisfying assignment of .
From the above argument, this lemma holds.
We are ready to prove the following Theorem.
Theorem 24.
DisConn 3-Horn-4 is -complete.
Proof.
Let be an instance of Monotone NAE E3-SAT-E4. Let be a 3-Horn formula constructed from , and be the formula constructed from . From Lemma 10, if has a non-zero satisfying assignment, the solution graph is disconnected. Thus, DisConn 3-Horn-4 belongs to . Lemma 22 and Lemma 23 imply that DisConn 3-Horn-4 is -hard. Therefore, DisConn 3-Horn-4 is -complete.
Proof.
We prove the -hardness of Conn 3-Horn-E4 by a polynomial-time reduction from Conn 3-Horn-4. We first show the construction of a 3-Horn formula with each variable appearing exactly four times from an instance of Conn 3-Horn-4. Let be an instance of Conn 3-Horn-4. Then, for every variable which appears three times, we introduce new variables and add four clauses . For every variable that appears at most twice, we repeat the same operation until each variable appears four times. Thus, we obtain an instance of Conn 3-Horn-E4. Then, we transform and to and , respectively, for simplicity of proving the correctness of our reduction. From the above construction, has unit clauses with negative literals of all added variables. Therefore, is equivalent to by assigning 0 to all added variables of . It means that has a non-zero satisfying assignment if and only if has a non-zero satisfying assignment, and by Lemma 10 this completes the proof.
By duality, -completeness of the Boolean connectivity for dual-Horn formulas with the same restrictions follows from the same discussion.
5 Conclusion
We proved that Conn -Horn remains -complete even when the length of each clause is at most three and each variable appears exactly four times. Furthermore, we provided a polynomial-time algorithm for Conn -Horn with each variable appearing at most three times and the length of each clause exactly three. These results seem to give a borderline between and -complete. However, it remains the complexity of two cases of Conn 3-Horn:(a) the length of each clause is exactly three and each variable appears exactly or at most four times; (b) the length of each clause is at most three and each variable appears exactly or at most three times. The complexity of Monotone NAE 3-SAT might be closely related to that of Conn 3-Horn for the following reasons. Monotone NAE -SAT is polynomial-time solvable when the length of each clause is exactly three and each variable appears at most three times in [11]. Monotone NAE 3-SAT remains -complete even when the length of each clause is at most three and each variable appears exactly four times. These complexities are equivalent to those of DisConn 3-Horn with the same restrictions. Furthermore, Monotone NAE 3-SAT is -complete even when the length of each clause is at most three and each variable appears exactly three times [4]. It also remains -complete even when the length of each clause is exactly three and each variable appears exactly four times [3]. Thus, we conjecture that cases (a) and (b) are -complete.
References
- [1] Paul S. Bonsma, Amer E. Mouawad, Naomi Nishimura, and Venkatesh Raman. The Complexity of Bounded Length Graph Recoloring and CSP Reconfiguration. In Proceedings of the 9th International Symposium on Parameterized and Exact Computation (IPEC 2014), volume 8894 of Lecture Notes in Computer Science, pages 110β121. Springer, 2014. doi:10.1007/978-3-319-13524-3_10.
- [2] Jean Cardinal, Erik D. Demaine, David Eppstein, Robert A. Hearn, and Andrew Winslow. Reconfiguration of Satisfying Assignments and Subset Sums: Easy to Find, Hard to Connect. In Proceedings of 24th International Computing and Combinatorics Conference (COCOON 2018), volume 10976 of Lecture Notes in Computer Science, pages 365β377. Springer, 2018. doi:10.1007/978-3-319-94776-1_31.
- [3] Andreas Darmann and Janosch DΓΆcker. On a simple hard variant of Not-All-Equal 3-Sat. Theoretical Compututer Science, 815:147β152, 2020. doi:10.1016/J.TCS.2020.02.010.
- [4] Ali Dehghan, Mohammad-Reza Sadeghi, and Arash Ahadi. On the Complexity of Deciding Whether the Regular Number is at Most Two. Graphs and Combinatorics, 31(5):1359β1365, 2015. doi:10.1007/S00373-014-1446-9.
- [5] Oya Ekin, Peter L. Hammer, and Alexander Kogan. On Connected Boolean Functions. Discrete Applied Mathematics, 96-97:337β362, 1999. doi:10.1016/S0166-218X(99)00098-0.
- [6] Parikshit Gopalan, Phokion G. Kolaitis, Elitza N. Maneva, and Christos H. Papadimitriou. The Connectivity of Boolean Satisfiability: Computational and Structural Dichotomies. SIAM Journal on Computing, 38(6):2330β2355, 2009. doi:10.1137/07070440X.
- [7] Kazuhisa Makino, Suguru Tamaki, and Masaki Yamamoto. On the Boolean connectivity problem for Horn relations. Discrete Applied Mathematics, 158(18):2024β2030, 2010. doi:10.1016/J.DAM.2010.08.019.
- [8] Kazuhisa Makino, Suguru Tamaki, and Masaki Yamamoto. An exact algorithm for the Boolean connectivity problem for -CNF. Theoretical Computer Science, 412(35):4613β4618, 2011. doi:10.1016/j.tcs.2011.04.041.
- [9] Amer E. Mouawad, Naomi Nishimura, Vinayak Pathak, and Venkatesh Raman. Shortest Reconfiguration Paths in the Solution Space of Boolean Formulas. In Proceedings of the 42nd EATCS International Colloquium on Automata, Languages, and Programming (ICALP 2015), volume 9134 of Lecture Notes in Computer Science, pages 985β996. Springer, 2015. doi:10.1007/978-3-662-47672-7_80.
- [10] Ramamohan Paturi, Pavel PudlΓ‘k, and Francis Zane. Satisfiability Coding Lemma. Chicago Journal of Theoretical Computer Science, 1999. URL: http://cjtcs.cs.uchicago.edu/articles/1999/11/contents.html.
- [11] Stefan Porschen, Bert Randerath, and Ewald Speckenmeyer. Linear Time Algorithms for Some Not-All-Equal Satisfiability Problems. In Proceedings of the 6th International Conference on Theory and Applications of Satisfiability Testing (SAT 2003), volume 2919 of Lecture Notes in Computer Science, pages 172β187. Springer, 2003. doi:10.1007/978-3-540-24605-3_14.
- [12] Thomas J. Schaefer. The Complexity of Satisfiability Problems. In Proceedings of the 10th Annual ACM Symposium on Theory of Computing (STOC 1978), pages 216β226. ACM, 1978. doi:10.1145/800133.804350.
- [13] Patrick Scharpfenecker. On the Structure of Solution-Graphs for Boolean Formulas. In Proceedings of the 20th International Symposium (FCT 2015), volume 9210 of Lecture Notes in Computer Science, pages 118β130. Springer, 2015. doi:10.1007/978-3-319-22177-9_10.
- [14] Patrick Scharpfenecker and Jacobo TorΓ‘n. Solution-Graphs of Boolean Formulas and Isomorphism. Journal on Satisfiability, Boolean Modelling and Computation, 10(1):37β58, 2016. doi:10.3233/SAT190113.
- [15] Konrad W. Schwerdtfeger. A Computational Trichotomy for Connectivity of Boolean Satisfiability. Journal on Satisfiability, Boolean Modelling and Computation, 8(3/4):173β195, 2014. doi:10.3233/sat190097.
