Skip to main content

A Linear Time Algorithm for Computing #2SAT for Outerplanar 2-CNF Formulas

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNIP,volume 10880))

Abstract

Although the satisfiability problem for two Conjunctive Normal Form formulas (2SAT) is polynomial time solvable, it is well known that #2SAT, the counting version of 2SAT is #P-Complete. However, it has been shown that for certain classes of formulas, #2SAT can be computed in polynomial time. In this paper we show another class of formulas for which #2SAT can also be computed in lineal time, the so called outerplanar formulas, e.g. formulas whose signed primal graph is outerplanar. Our algorithm’s time complexity is given by \(O(n+m)\) where n is the number of variables and m the number of clauses of 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   44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   59.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. De Ita, G., Bello, P., Contreras, P.: New polynomial classes for #2SAT established via graph-topological structure. Eng. Lett. 15(2), 250–258 (2007)

    Google Scholar 

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

    Article  MathSciNet  Google Scholar 

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

    Article  MathSciNet  Google Scholar 

  4. Ita Luna, G.: Polynomial classes of Boolean formulas for computing the degree of belief. In: Lemaître, C., Reyes, C.A., González, J.A. (eds.) IBERAMIA 2004. LNCS (LNAI), vol. 3315, pp. 430–440. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-30498-2_43

    Chapter  Google Scholar 

  5. Wahlström, M.: A tighter bound for counting max-weight solutions to 2SAT instances. In: Grohe, M., Niedermeier, R. (eds.) IWPEC 2008. LNCS, vol. 5018, pp. 202–213. Springer, Heidelberg (2008). https://doi.org/10.1007/978-3-540-79723-4_19

    Chapter  Google Scholar 

  6. Dantsin, E., Wolpert, A.: An improved upper bound for SAT. In: Bacchus, F., Walsh, T. (eds.) SAT 2005. LNCS, vol. 3569, pp. 400–407. Springer, Heidelberg (2005). https://doi.org/10.1007/11499107_31

    Chapter  Google Scholar 

  7. López, M.A., Marcial-Romero, J.R., De Ita Luna, G., Montes Venegas, H.A., Alejo, R.: A linear time algorithm for solving #2SAT on cactus formulas. CoRR, abs/1702.08581 (2017)

    Google Scholar 

  8. Zmazek, B., Zerovnik, J.: Estimating the traffic on weighted cactus networks in linear time. In: Ninth International Conference on Information Visualisation (IV 2005), pp. 536–541 (2005). https://doi.org/10.1109/IV.2005.48

  9. Shiu, W.C.: Extremal Hosoya index and Merrifield-Simmons index of hexagonal spiders. Discret. Appl. Math. 156, 2978–2985 (2008)

    Article  MathSciNet  Google Scholar 

  10. Wagner, S., Gutman, I.: Maxima and minima of the Hosoya index and the Merrifield-Simmons index. Acta Appl. Math. 112(3), 323–346 (2010)

    Article  MathSciNet  Google Scholar 

  11. 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). https://doi.org/10.1007/978-3-540-24605-3_15

    Chapter  MATH  Google Scholar 

  12. Bodlaender, H.L.: A linear time algorithm for finding tree-decompositions of small treewidth. SIAM J. Comput. 25(6), 1305–1317 (1996)

    Article  MathSciNet  Google Scholar 

  13. Kneis, J., Langer, A.: A practical approach to Courcelle’s theorem. Electron. Not. Theor. Comput. Sci. 251(Supplement C), 65–81 (2009). Proceedings of the International Doctoral Workshop on Mathematical and Engineering Methods in Computer Science (MEMICS 2008)

    Article  Google Scholar 

  14. Fomin, F.V., Gaspers, S., Saurabh, S., Stepanov, A.A.: On two techniques of combining branching and treewidth. Algorithmica 54(2), 181–207 (2009)

    Article  MathSciNet  Google Scholar 

  15. Stefan, A., Corneil, D.G., Proskurowski, A.: Complexity of finding embeddings in a k-tree. SIAM J. Algebraic Discret. Methods 8(2), 277–284 (1987)

    Article  MathSciNet  Google Scholar 

  16. Bodlaender, H.L.: Classes of graphs with bounded tree-width. Technical report, Utrecht University (1986)

    Google Scholar 

  17. Bodlaender, H.L.: A partial k-arboretum of graphs with bounded treewidth. Theor. Comput. Sci. 209(1), 1–45 (1998)

    Article  MathSciNet  Google Scholar 

  18. Bäckström, C., Jonsson, A., Jonsson, P.: Automaton plans. J. Artif. Intell. Res. 51, 255–291 (2014)

    MathSciNet  MATH  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

© 2018 Springer International Publishing AG, part of Springer Nature

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

López, M.A., Marcial-Romero, J.R., De Ita, G., Moyao, Y. (2018). A Linear Time Algorithm for Computing #2SAT for Outerplanar 2-CNF Formulas. In: Martínez-Trinidad, J., Carrasco-Ochoa, J., Olvera-López, J., Sarkar, S. (eds) Pattern Recognition. MCPR 2018. Lecture Notes in Computer Science(), vol 10880. Springer, Cham. https://doi.org/10.1007/978-3-319-92198-3_8

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-92198-3_8

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-92197-6

  • Online ISBN: 978-3-319-92198-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics