Skip to main content

cmodels – SAT-Based Disjunctive Answer Set Solver

  • Conference paper

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

Abstract

Disjunctive logic programming under the stable model semantics [GL91] is a new methodology called answer set programming (ASP) for solving combinatorial search problems. This programming method uses answer set solvers, such as dlv [Lea05], gnt[Jea05], smodels [SS05], assat [LZ02], cmodels[Lie05a]. Systems dlv and gnt are more general as they work with the class of disjunctive logic programs, while other systems cover only normal programs. DLV is uniquely designed to find the answer sets for disjunctive logic programs. On the other hand, gnt first generates possible stable model candidates and then tests the candidate on the minimality using system SMODELS as an inference engine for both tasks. Systems CMODELS and ASSAT use SAT solvers as search engines. They are based on the relationship between the completion semantics [Cla78], loop formulas [LZ02] and answer set semantics for logic programs. Here we present the implementation of a SAT-based algorithm for finding answer sets for disjunctive logic programs within cmodels. The work is based on the definition of completion for disjunctive programs [LL03] and the generalisation of loop formulas [LZ02] to the case of disjunctive programs [LL03]. We propose the necessary modifications to the SAT based ASSAT algorithm [LZ02] as well as to the generate and test algorithm from [GLM04] in order to adapt them to the case of disjunctive programs. We implement the algorithms in cmodels and demonstrate the experimental results.

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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Clark, K.: Negation as failure. In: Gallaire, H., Minker, J. (eds.) Logic and Data Bases, pp. 293–322. Plenum Press, New York (1978)

    Google Scholar 

  2. Ferraris, P., Lifschitz, V.: Weight constraints as nested expressions. Theory and Practice of Logic Programming 5, 45–74 (2005)

    Article  MATH  MathSciNet  Google Scholar 

  3. Gelfond, M., Lifschitz, V.: Classical negation in logic programs and disjunctive databases. New Generation Computing 9, 365–385 (1991)

    Article  Google Scholar 

  4. Giunchiglia, E., Lierler, Y., Maratea, M.: Sat-based answer set programming. In: Proc. AAAI 2004, pp. 61–66 (2004)

    Google Scholar 

  5. Janhunen, T., et al.: GnT (Generate’n’Test): A Solver for Disjunctive Logic Programs (2005), Available under http://www.tcs.hut.fi/Software/gnt/

  6. Janhunen, T., Niemela, I., Simons, P., You, J.H.: Unfolding partiality and disjunctions in stable model semantics. In: Proc. KR (2000)

    Google Scholar 

  7. Koch, C., Leone, N., Pfeifer, G.: Enhancing disjunctive logic programming systems by sat checkers. Artificial Intelligence 151, 177–212 (2003)

    Article  MATH  MathSciNet  Google Scholar 

  8. Leone, N., et al.: A disjunctive datalog system DLV (2005-02-23) (2005), Available under http://www.dbai.tuwien.ac.at/proj/dlv/

  9. Lierler, Y.: CMODELS – a tool for computing answer set using SAT solvers (2005), Available under http://www.cs.utexas.edu/users/tag/cmodels

  10. Lierler, Y.: Cmodels for tight disjunctive logic programs. In: 19th Workshop on (Constraint) Logic Programming W(C)LP (2005)

    Google Scholar 

  11. Lee, J., Lifschitz, V.: Loop formulas for disjunctive logic programs. In: Palamidessi, C. (ed.) ICLP 2003. LNCS, vol. 2916, pp. 451–465. Springer, Heidelberg (2003)

    Chapter  Google Scholar 

  12. Lin, F., Zhao, Y.: ASSAT: Computing answer sets of a logic program by SAT solvers. In: Proc. AAAI 2002 (2002)

    Google Scholar 

  13. Niemelä, I., Simons, P.: Extending the Smodels system with cardinality and weight constraints. In: Logic-Based Artificial Intelligence, pp. 491–521 (2000)

    Google Scholar 

  14. Simons, P., Syrjaenen, T.: SMODELS and LPARSE – a solver and a grounder for normal logic programs (2005), http://saturn.hut.fi/pub/smodels/

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Lierler, Y. (2005). cmodels – SAT-Based Disjunctive Answer Set Solver. In: Baral, C., Greco, G., Leone, N., Terracina, G. (eds) Logic Programming and Nonmonotonic Reasoning. LPNMR 2005. Lecture Notes in Computer Science(), vol 3662. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11546207_44

Download citation

  • DOI: https://doi.org/10.1007/11546207_44

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-28538-0

  • Online ISBN: 978-3-540-31827-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics