Skip to main content

A Parametric Polynomial Deterministic Algorithm for #2SAT

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 9413))

Abstract

Counting models for two Conjunctive Normal Form formulae (2-CFs), known as the #2SAT problem, is a classic #P complete problem. It is known that if the constraint graph of a 2-CF F is acyclic or contains loops and parallel edges, \(\#2SAT(F)\) can be computed efficiently. In this paper we address the cyclic case different from loops and parallel edges.

If the constraint graph G of a 2-CF F is cyclic, T a spanning tree plus loops and parallel edges of G and \(\overline{T}=G\setminus T\), what we called its cotree, we show that by building a set partition \(\cup T_i\) of \(\overline{T}\), where each \(T_i\) of the partition is formed by the frond edges of the cycles that are chained via other intersected cycles, then a parametric polynomial deterministic procedure for computing #2SAT with time complexity for the worst case of \(O(2^{k} \cdot poly(|E(T)|))\) can be obtained, where poly is a polynomial function, and k is the cardinality of the largest set in the partition.

This method shows that #2SAT is in the class of fixed-parameter tratable (FPT) problems, where the fixed-parameter k in our proposal, depends on the number of edges of a subcotree of a decomposition of the constraint graph (tree+loops+parallel:cotree) associated to the formula.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. Darwiche, A.: On the tractability of counting theory models and its application to belief revision and truth maintenance. J. Appl. Non-Class. Logics 11(1–2), 11–34 (2011)

    MathSciNet  Google Scholar 

  2. Angelsmark, O., Jonsson, P.: Improved algorithms for counting solutions in constraint satisfaction problems. In: Rossi, F. (ed.) CP 2003. LNCS, vol. 2833, pp. 81–95. Springer, Heidelberg (2003)

    Chapter  Google Scholar 

  3. Russ, B.: Randomized Algorithms: Approximation, Generation, and Counting. Distingished Dissertations. Springer, Heidelberg (2001)

    Google Scholar 

  4. Zmazek, B.: Estimating the traffic on weighted cactus networks in linear time. In: 9th International Conference on Information Visualization, pp. 536–541 (2005)

    Google Scholar 

  5. Roth, D.: On the hardness of approximate reasoning. J. Artif. Intell. 82, 273–302 (1996)

    Article  Google Scholar 

  6. Wahlström, M., Dahllöf, V., Jonsonn, P.: Counting models for 2SAT and 3SAT formulae. Theor. Comput. Sci. 332(1–3), 265–291 (2005)

    MATH  Google Scholar 

  7. De Ita G., C.M., Bello, P.: New polynomial classes for #2sat established via graph-topological structure. Eng. Lett. 15(2), 250–258 (2007)

    Google Scholar 

  8. Mäloy, F., Dos¨lic, V.: Chain hexagonal cacti: matchings and independent sets. Discrete Math. 310, 1676–1690 (2010)

    Article  MathSciNet  Google Scholar 

  9. Ravve, E.V., Fischer, E., Makowsky, J.A.: Counting truth assignments of formulas of bounded tree-width or clique-width. Discrete Appl. Math. 156(4), 511–529 (2008)

    Article  MATH  MathSciNet  Google Scholar 

  10. Prasad, S.K., Fürer, M.: Algorithms for counting 2-sat solutions and coloring with applications. Technical report 33, Electronic Colloqium on Comp. Complexity (2005)

    Google Scholar 

  11. Makowsky, J.A.: Algorithmic uses of the feferman-vaught theorem. Ann. Pure Appl. Logic 126, 1–3 (2004)

    Article  MathSciNet  Google Scholar 

  12. Kalyani, D.: Design of Algorithms on Some Problems on Cactus Graphs: Algorithms on Graphs. Lambert Acad. Pub., Germany (2012)

    Google Scholar 

  13. Kreher, D.L., Kocay, W.: Graphs, Algorithms, and Optimization. Chapman & Hall, NewYork (2004)

    Google Scholar 

  14. Szeider, S.: On fixed-parameter tractable parameterizations of SAT. In: Giunchiglia, E., Tacchella, A. (eds.) SAT 2003. LNCS, vol. 2919, pp. 188–202. Springer, Heidelberg (2004)

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to J. Raymundo Marcial-Romero .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Marcial-Romero, J.R., De Ita Luna, G., Hernández, J.A., Valdovinos, R.M. (2015). A Parametric Polynomial Deterministic Algorithm for #2SAT. In: Sidorov, G., Galicia-Haro, S. (eds) Advances in Artificial Intelligence and Soft Computing. MICAI 2015. Lecture Notes in Computer Science(), vol 9413. Springer, Cham. https://doi.org/10.1007/978-3-319-27060-9_16

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-27060-9_16

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-27059-3

  • Online ISBN: 978-3-319-27060-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics