Skip to main content
Log in

Parameterized and exact algorithms for finding a read-once resolution refutation in 2CNF formulas

  • Published:
Annals of Mathematics and Artificial Intelligence Aims and scope Submit manuscript

Abstract

In this paper, we discuss algorithms for the problem of finding read-once resolution refutations of unsatisfiable 2CNF formulas within the resolution refutation system. Broadly, a read-once resolution refutation is one in which each constraint (input or derived) is used at most once. Read-once resolution refutations have been widely studied in the literature for a number of constraint system-refutation system pairs. For instance, read-once resolution has been analyzed for boolean formulas in conjunctive normal form (CNF) and read-once cutting planes have been analyzed for polyhedral systems. By definition, read-once refutations are compact, and hence valuable in applications that place a premium on visualization. The satisfiability problem (SAT) is concerned with finding a satisfying assignment for a boolean formula in CNF. While SAT is NP-complete in general, there exist some interesting subclasses of CNF formulas, for which it is decidable in polynomial time. One such subclass is the class of 2CNF formulas, i.e., CNF formulas in which each clause has at most two literals. The existence of efficient algorithms for satisfiability checking in 2CNF formulas (2SAT), makes this class useful from the perspective of modeling selected logic programs. The work in this paper is concerned with the read-once refutability problem (under resolution) in this subclass. Although 2SAT is decidable in polynomial time, the problem of finding a read-once resolution refutation of an unsatisfiable 2CNF formula is NP-complete. We design non-trivial, parameterized and exact exponential algorithms for this problem. Additionally, we study the computational complexity of finding a shortest read-once resolution refutation of a 2CNF formula.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Aspvall, B., Plass, M. F., Tarjan, R.: A linear-time algorithm for testing the truth of certain quantified boolean formulas. Inf. Process. Lett. 8(3), 121–123 (1979)

    Article  MathSciNet  Google Scholar 

  2. Aspvall, B.M.F., Plass, R.E.T.: A linear time algorithm for testing the truth of certain quantified boolean formulas. Inf. Process. Lett. 8(3), 121–123 (1979)

    Article  MathSciNet  Google Scholar 

  3. Balcarek, J., Fiser, P., Schmidt, J.: Test Patterns Compression Technique Based on a Dedicated Sat-Based ATPG. In: López, S. (ed.) 13Th Euromicro Conference on Digital System Design, Architectures, Methods and Tools, DSD 2010, 1-3 September 2010, Lille, France. Computer Society, pp 805–808. IEEE (2010)

  4. Balcarek, J., Fiser, P., Schmidt, J.: Techniques for Sat-Based Constrained Test Pattern Generation. In: 14Th Euromicro Conference on Digital System Design, Architectures, Methods and Tools, DSD 2011, August 31 - September 2, 2011, Oulu, Finland, pp. 360–366. IEEE Computer Society (2011)

  5. Berman, P., Schnitger, G.: On the complexity of approximating the independent set problem. Inf. Comput. 96(1), 77–94 (1992)

    Article  MathSciNet  Google Scholar 

  6. Böckenhauer, H., Forisek, M., Oravec, J., Steffen, B., Steinhöfel, K., Steinová, M.: The uniform minimum-ones 2sat problem and its application to haplotype classification. RAIRO - Theor. Inf. and Applic. 44(3), 363–377 (2010)

    Article  MathSciNet  Google Scholar 

  7. Brewka, G., Eiter, T., Truszczynski, M.: Answer set programming at a glance. Commun. ACM 54(12), 92–103 (2011)

    Article  Google Scholar 

  8. Buresh-Oppenheim, J., Mitchell, D. G.: Minimum Witnesses for Unsatisfiable 2Cnfs. In: SAT, pp. 42–47 (2006)

  9. Chandru, V., Hooker, J. N.: Optimization Methods for Logical Inference. Series in Discrete Mathematics and Optimization. Wiley, New York (1999)

    Book  Google Scholar 

  10. Chen, J., Lu, S., Sze, S. H., Zhang, F.: Improved algorithms for path, matching, and packing problems. In: Proceedings of the Eighteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’07, pp 298–307. Society for Industrial and Applied Mathematics, USA (2007)

  11. Colmerauer, A.: Logic Programming and Its Applications, chap. Theoretical Model of prologII, pp. 181–200. Ablex Series in Artificial Intelligence Ablex Publishing Corporation (1986)

  12. Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 3rd edn. The MIT Press, Cambridge (2009)

    MATH  Google Scholar 

  13. Dorsch, R., Wunderlich, H.: Tailoring ATPG for embedded testing. In: Proceedings IEEE International Test Conference 2001, Baltimore, MD, USA, 30 October - 1 November 2001, pp. 530–537. IEEE Computer Society (2001)

  14. Dowling, W. F., Gallier, J. H.: Linear-time algorithms for testing the satisfiability of propositional Horn formulae. J. Log. Program. 1(3), 267–284 (1984)

    Article  MathSciNet  Google Scholar 

  15. Fellows, M. R., Szeider, S., Wrightson, G.: On finding short resolution refutations and small unsatisfiable subsets. Theor. Comput. Sci. 351(3), 351–359 (2006)

    Article  MathSciNet  Google Scholar 

  16. Fomin, F. V., Kratsch, D.: Exact Exponential Algorithms, 1st edn. Springer, Berlin (2010)

    Book  Google Scholar 

  17. Fomin, F. V., Lokshtanov, D., Saurabh, S., Zehavi, M.: Kernelization: Theory of Parameterized Preprocessing. Cambridge University Press, Cambridge (2019)

    MATH  Google Scholar 

  18. Haken, A.: The intractability of resolution. Theor. Comput. Sci. 39 (2-3), 297–308 (1985)

    Article  MathSciNet  Google Scholar 

  19. Iwama, K.: Complexity of finding short resolution proofs. Lect. Notes Comput. Sci 1295, 309–319 (1997)

    Article  MathSciNet  Google Scholar 

  20. Iwama, K., Miyano, E.: Intractability of read-once resolution. In: Proceedings of the 10th Annual Conference on Structure in Complexity Theory (SCTC ’95), pp 29–36. IEEE Computer Society Press, USA (1995)

  21. Jaffar, J., Maher, M.: Constraint logic programming: a survey. J. Logic Programm. s 19–20, 503–581 (1994)

    Article  MathSciNet  Google Scholar 

  22. Janhunen, T., Niemelä, I.: The answer set programming paradigm. AI Mag. 37(3), 13–24 (2016)

    Google Scholar 

  23. Kann, V.: Polynomially bounded minimization problems that are hard to approximate. Nordic J. of Comput. 1(3), 317–331 (1994)

    MathSciNet  MATH  Google Scholar 

  24. Kleine Büning, H., Wojciechowski, P. J., Subramani, K.: Finding read-once resolution refutations in systems of 2CNF clauses. Theor. Comput. Sci. 729, 42–56 (2018)

    Article  MathSciNet  Google Scholar 

  25. Kleine Büning, H., Wojciechowski, P. J., Subramani, K.: On the application of restricted cutting plane systems to horn constraint systems. In: The 12Th International Symposium on Frontiers of Combining Systems, London, United Kingdom, September 4-6, 2019, Proceedings, pp. 149–164 (2019)

  26. Kleine Büning, H., Wojciechowski, P. J., Subramani, K.: Read-Once Resolutions in Horn Formulas. In: Frontiers in Algorithmics - 13Th International Workshop, FAW 2019, Sanya, China, April 29 - May 3, 2019, Proceedings, pp. 100–110 (2019)

  27. Kratsch, D., McConnell, R. M., Mehlhorn, K., Spinrad, J.: Certifying Algorithms for Recognizing Interval Graphs and Permutation Graphs. In: SODA, pp. 158–167 (2003)

  28. Lewis, H. R.: Renaming a set of clauses as a horn set. J. ACM 25 (1), 134–135 (1978)

    Article  MathSciNet  Google Scholar 

  29. Lierler, Y.: What is answer set programming to propositional satisfiability. Constraints An Int. J. 22(3), 307–337 (2017)

    Article  MathSciNet  Google Scholar 

  30. Lifschitz, V.: Answer Set Programming. Springer, Berlin (2019)

    Book  Google Scholar 

  31. Naor, M., Schulman, L. J., Srinivasan, A.: Splitters and near-optimal derandomization. In: Proceedings of IEEE 36th Annual Foundations of Computer Science, pp. 182–191 (1995)

  32. Orponen, P., Mannila, H.: On approximation preserving reductions: Complete problems and robust measures. Tech. rep., Department of Computer Science University of Helsinki (1987)

  33. Papadimitriou, C. H.: Computational Complexity. Addison-Wesley, New York (1994)

    MATH  Google Scholar 

  34. Rushby, J. M.: Tutorial: Automated Formal Methods with Pvs, Sal, and Yices. In: SEFM, p. 262 (2006)

  35. Schaub, T., Woltran, S.: Answer set programming unleashed!. KI 32(2-3), 105–108 (2018)

    Google Scholar 

  36. Subramani, K., Wojciechowski, P.: Finding Read-Once Refutations in 2Cnf Formulas and Variants - a Parameterized Perspective. In: The 16th International Symposium on Artificial Intelligence and Mathematics (2020)

  37. Szeider, S.: NP-completeness of refutability by literal-once resolution. In: Automated Reasoning, First International Joint Conference, IJCAR 2001, Siena, Italy, June 18-23, 2001, Proceedings, vol. 2083, pp 168–181 (2001)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to K. Subramani.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This research has been supported in part by the Air-Force Office of Scientific Research through Grant FA9550-19-1-0177 and in part by the Air-Force Research Laboratory, Rome through Contract FA8750-17-S-7007.

Appendices

Appendix A: Incompleteness of read-once resolution refutation

Example 1

Let Φ be the following 2CNF formula:

$$ \begin{array}{@{}rcl@{}} (x_{1} \vee x_{2}) & (x_{3} \vee x_{4}) & (\neg x_{1} \vee \neg x_{3})\\ (\neg x_{1} \vee \neg x_{4}) & (\neg x_{2} \vee \neg x_{3}) & (\neg x_{2} \vee \neg x_{4}) \end{array} $$

We now show that Φ does not have a read-once resolution refutation.

Assume for the sake of contradiction, that Φ has a read-once resolution refutation R. Observe that Φ has four variables x1, x2, x3, and x4. Thus, the last resolution step of any read-once resolution refutation of Φ must be one of (1) \((x_{1}) \wedge (\neg x_{1}) {\mid }\!\frac {1}{RES} \sqcup \), (2) \((x_{2}) \wedge (\neg x_{2}) {\mid }\!\frac {1}{RES} \sqcup \), (3) \((x_{3}) \wedge (\neg x_{3}) \mid \frac {1}{RES} \sqcup \), or, (4) \((x_{4}) \wedge (\neg x_{4}) {\mid }\!\frac {1}{RES} \sqcup \).

If the last resolution step of R is \((x_{1}) \wedge (\neg x_{1}) {\mid }\!\frac {1}{RES} \sqcup \), then R must derive both (x1) and (¬x1). Let us consider each derivation separately.

The only clause in Φ with the literal x1 is (x1x2). Thus, this clause must be used in the derivation of (x1). Since the literal x2 is not present in the clause (x1), the derivation of (x1) must use a clause with the literal ¬x2. The only clauses in Φ with the literal ¬x2 are (¬x2 ∨¬x3) and (¬x2 ∨¬x4). Thus, using the same argument as before, the derivation of (x1) must use a clause with either the literal x3 or the literal x4. The only clause in Φ with either of these literals is (x3x4). Thus, this clause must be used in the derivation of (x1).

The only clauses in Φ with the literal ¬x1 are (¬x1 ∨¬x3) and (¬x1 ∨¬x4). Thus, using the same argument as before, the derivation of (¬x1) must use a clause with either the literal x3 or the literal x4. The only clause in Φ with either of these literals is (x3x4). Thus, this clause must be used in the derivation of (¬x1). Consequently, the clause (x3x4) must be used both in the derivation of (x1) and in the derivation of (¬x1). This violates the assumption that R is a read-once resolution refutation.

If the last resolution step of R is \((x_{2}) \wedge (\neg x_{2}) {\mid }\!\frac {1}{RES} \sqcup \), then R must derive both (x2) and (¬x2). Let us consider each derivation separately.

The only clause in Φ with the literal x2 is (x1x2). Thus, this clause must be used in the derivation of (x2). Since the literal x1 is not present in the clause (x2), the derivation of (x2) must use a clause with the literal ¬x1. The only clauses in Φ with the literal ¬x1 are (¬x1 ∨¬x3) and (¬x1 ∨¬x4). Thus, using the same argument as before, the derivation of (x2) must use a clause with either the literal x3 or the literal x4. The only clause in Φ with either of these literals is (x3x4). Thus, this clause must be used in the derivation of (x2).

The only clauses in Φ with the literal ¬x2 are (¬x2 ∨¬x3) and (¬x2 ∨¬x4). Thus, using the same argument as before, the derivation of (¬x2) must use a clause with either the literal x3 or the literal x4. The only clause in Φ with either of these literals is (x3x4). Thus, this clause must be used in the derivation of (¬x2). Consequently, the clause (x3x4) must be used both in the derivation of (x2) and in the derivation of (¬x2). This violates the assumption that R is a read-once resolution refutation.

If the last resolution step of R is \((x_{3}) \wedge (\neg x_{3}) {\mid }\!\frac {1}{RES} \sqcup \), then R must derive both (x3) and (¬x3). Let us consider each derivation separately.

The only clause in Φ with the literal x3 is (x3x4). Thus, this clause must be used in the derivation of (x3). Since the literal x4 is not present in the clause (x3), the derivation of (x3) must use a clause with the literal ¬x4. The only clauses in Φ with the literal ¬x4 are (¬x1 ∨¬x4) and (¬x2 ∨¬x4). Thus, using the same argument as before, the derivation of (x3) must use a clause with either the literal x1 or the literal x2. The only clause in Φ with either of these literals is (x1x2). Thus, this clause must be used in the derivation of (x3).

The only clauses in Φ with the literal ¬x3 are (¬x1 ∨¬x3) and (¬x2 ∨¬x3). Thus, using the same argument as before, the derivation of (¬x3) must use a clause with either the literal x1 or the literal x2. The only clause in Φ with either of these literals is (x1x2). Thus, this clause must be used in the derivation of (¬x3). Consequently, the clause (x1x2) must be used both in the derivation of (x3) and in the derivation of (¬x3). This violates the assumption that R is a read-once resolution refutation.

If the last resolution step of R is \((x_{4}) \wedge (\neg x_{4}) {\mid }\!\frac {1}{RES} \sqcup \), then R must derive both (x4) and (¬x4). Let us consider each derivation separately.

The only clause in Φ with the literal x4 is (x3x4). Thus, this clause must be used in the derivation of (x4). Since the literal x3 is not present in the clause (x4), the derivation of (x4) must use a clause with the literal ¬x3. The only clauses in Φ with the literal ¬x3 are (¬x1 ∨¬x3) and (¬x2 ∨¬x3). Thus, using the same argument as before, the derivation of (x4) must use a clause with either the literal x1 or the literal x2. The only clause in Φ with either of these literals is (x1x2). Thus, this clause must be used in the derivation of (x4).

The only clauses in Φ with the literal ¬x4 are (¬x1 ∨¬x4) and (¬x2 ∨¬x4). Thus, using the same argument as before, the derivation of (¬x4) must use a clause with either the literal x1 or the literal x2. The only clause in Φ with either of these literals is (x1x2). Thus, this clause must be used in the derivation of (¬x4). Consequently, the clause (x1x2) must be used both in the derivation of (x4) and in the derivation of (¬x4). This violates the assumption that R is a read-once resolution refutation.

This means that R must either use the clause (x3x4) twice or the clause (x1x2) twice. Thus, Φ does not have a read- once resolution refutation.

Appendix : B: Approximation complexity classes

We begin by defining the complexity class NPO [32].

Definition 1

The complexity class NPO is the set of optimization problems such that:

  1. 1.

    The set of instances can be recognized in polynomial time.

  2. 2.

    Solutions are polynomially sized and can be verified in polynomial time.

  3. 3.

    The objective function can be computed in polynomial time.

We next define the complexity class NPO PB [23].

Definition 2

NPO PB is the set of NPO problems for which the value of the objective function is polynomial in the size of the input.

Finally, we introduce the notion of PTAS reductions [32].

Definition 3

A PTAS reduction from problem A to problem B, is a trio of functions f, g, and α computable in polynomial time, such that:

  1. 1.

    f maps instances of problem A to instances of problem B.

  2. 2.

    g takes an instance x of problem A, an approximate solution to the corresponding problem f(x) in B, and an error parameter ε and produces an approximate solution to x.

  3. 3.

    α maps error parameters for solutions to instances of problem A to error parameters for solutions to problem B.

  4. 4.

    If the solution y to f(x) (an instance of problem B) is at most (1 + α(ε)) times worse than the optimal solution, then the corresponding solution g(x,y,ε) to x (an instance of problem A) is at most (1 + ε) times worse than the optimal solution.

Definition 4

A problem P is NPO PB-hard under PTAS reductions, if every problem in NPO PB can be reduced to P by a PTAS reduction.

Unless otherwise stated, we assume that NPO PB-hardness is specified with respect to PTAS reductions.

The set of problems which are in the class NPO PB and are NPO PB-hard are called NPO PB-complete. Additionally, for every NPO PB-complete problem P there exists an ε > 0 such that P cannot be approximated to within a factor of O(nε) unless P = NP [5]. Thus, if any NPO PB-complete problem can be approximated to within a polylogarithmic factor, then P = NP.

An example of an NPO PB-complete problem is Bounded Minimum 0-1 Programming problem. This problem is formulated as follows:

Given an integer program Axb, x ∈{0, 1}n, find the minimum value of 1x. This specific form of Minimum 0-1 Programming is known to be NPO PB-complete [23].

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Subramani, K., Wojciechowski, P. Parameterized and exact algorithms for finding a read-once resolution refutation in 2CNF formulas. Ann Math Artif Intell 90, 3–29 (2022). https://doi.org/10.1007/s10472-021-09762-2

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10472-021-09762-2

Keywords

Mathematics Subject Classification (2010)

Navigation