Hostname: page-component-78c5997874-m6dg7 Total loading time: 0 Render date: 2024-11-20T05:04:38.053Z Has data issue: false hasContentIssue false

Towards automated integration of guess and check programs in answer set programming: a meta-interpreter and applications

Published online by Cambridge University Press:  27 January 2006

THOMAS EITER
Affiliation:
Institut für Informationssysteme, Arbeitsbereich Wissensbasierte Systeme Technische Universität Wien, Austria (e-mail: [email protected])
AXEL POLLERES
Affiliation:
DERI (Digital Enterprise Research Institute), Institut für Informatik Leopold-Franzens Universität Innsbruck, Austria (e-mail: [email protected])

Abstract

Answer set programming (ASP) with disjunction offers a powerful tool for declaratively representing and solving hard problems. Many NP-complete problems can be encoded in the answer set semantics of logic programs in a very concise and intuitive way, where the encoding reflects the typical “guess and check” nature of NP problems: The property is encoded in a way such that polynomial size certificates for it correspond to stable models of a program. However, the problem-solving capacity of full disjunctive logic programs (DLPs) is beyond NP, and captures a class of problems at the second level of the polynomial hierarchy. While these problems also have a clear “guess and check” structure, finding an encoding in a DLP reflecting this structure may sometimes be a non-obvious task, in particular if the “check” itself is a co-NP-complete problem; usually, such problems are solved by interleaving separate guess and check programs, where the check is expressed by inconsistency of the check program. In this paper, we present general transformations of head-cycle free (extended) disjunctive logic programs into stratified and positive (extended) disjunctive logic programs based on meta-interpretation techniques. The answer sets of the original and the transformed program are in simple correspondence, and, moreover, inconsistency of the original program is indicated by a designated answer set of the transformed program. Our transformations facilitate the integration of separate “guess” and “check” programs, which are often easy to obtain, automatically into a single disjunctive logic program. Our results complement recent results on meta-interpretation in ASP, and extend methods and techniques for a declarative “guess and check” problem solving paradigm through ASP.

Type
Regular Papers
Copyright
2006 Cambridge University Press

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Footnotes

Part of the results in this paper are contained, in preliminary form, in the Proceedings of the 7th International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR-7) and the informal Proceedings of the Joint Conference on Declarative Programming (APPIA-GULP-PRODE) 2003. This work was partially supported by FWF (Austrian Science Funds) under projects P14781, P16536-N04, and Z29-N04, and by the Future and Emerging Technologies arm of the IST programme of the European Commission, projects IST-2001-37004 (WASP) and IST-2001-33570 (INFOMIX).