Effectively solving NP-SPEC encodings by translation to ASP

Mario Alviano, Wolfgang Faber

Research output: Contribution to journalArticlepeer-review


NP-SPEC is a language for specifying problems in NP in a declarative way. Despite the fact that the semantics of the language was given by referring to Datalog with circumscription, which is very close to answer set programming (ASP), so far the only existing implementations are by means of Prolog and via Boolean satisfiability solvers. In this paper, we present translations from NP-SPEC to ASP, and provide an experimental evaluation of existing implementations and the proposed translations into ASP using various ASP solvers. The results show that translating into ASP clearly has an edge over the existing translation into SAT, which involves an intrinsic grounding process. We also argue that it might be useful to incorporate certain language constructs of NP-SPEC into mainstream ASP.

Original languageEnglish
Pages (from-to)577-601
Number of pages25
JournalJournal of Experimental and Theoretical Artificial Intelligence
Issue number5
Early online date12 Jan 2015
Publication statusPublished - 3 Sep 2015


Dive into the research topics of 'Effectively solving NP-SPEC encodings by translation to ASP'. Together they form a unique fingerprint.

Cite this