Hostname: page-component-6766d58669-nf276 Total loading time: 0 Render date: 2026-05-23T03:59:40.972Z Has data issue: false hasContentIssue false

An Efficient Solver for ASP(Q)

Published online by Cambridge University Press:  05 July 2023

WOLFGANG FABER
Affiliation:
Alpen-Adria Universität Klagenfurt, Austria (e-mail: Wolfgang.Faber@aau.at)
GIUSEPPE MAZZOTTA
Affiliation:
University of Calabria, Rende, Italy (e-mails: giuseppe.mazzotta@unical.it, francesco.ricca@unical.it)
FRANCESCO RICCA
Affiliation:
University of Calabria, Rende, Italy (e-mails: giuseppe.mazzotta@unical.it, francesco.ricca@unical.it)
Rights & Permissions [Opens in a new window]

Abstract

Answer Set Programming with Quantifiers ASP(Q) extends Answer Set Programming (ASP) to allow for declarative and modular modeling of problems from the entire polynomial hierarchy. The first implementation of ASP(Q), called QASP, was based on a translation to Quantified Boolean Formulae (QBF) with the aim of exploiting the well-developed and mature QBF-solving technology. However, the implementation of the QBF encoding employed in qasp is very general and might produce formulas that are hard to evaluate for existing QBF solvers because of the large number of symbols and subclauses. In this paper, we present a new implementation that builds on the ideas of QASP and features both a more efficient encoding procedure and new optimized encodings of ASP(Q) programs in QBF. The new encodings produce smaller formulas (in terms of the number of quantifiers, variables, and clauses) and result in a more efficient evaluation process. An algorithm selection strategy automatically combines several QBF-solving back-ends to further increase performance. An experimental analysis, conducted on known benchmarks, shows that the new system outperforms QASP.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2023. Published by Cambridge University Press
Figure 0

Fig. 1. Analysis of proposed optimizations.

Figure 1

Fig. 2. Comparison with qasp and st-unst.

Supplementary material: PDF

Faber et al. supplementary material

Faber et al. supplementary material

Download Faber et al. supplementary material(PDF)
PDF 314.4 KB