Hostname: page-component-76d6cb85b7-mgxrv Total loading time: 0 Render date: 2026-07-09T22:36:23.656Z Has data issue: false hasContentIssue false

2-ASP(Q) Programs with Weak Constraints: Complexity and Efficient Implementation

Published online by Cambridge University Press:  03 July 2026

ANDREA CUTERI
Affiliation:
Department of Mathematics and Computer Science, University of Calabria, Italy (e-mails: andrea.cuteri@unical.it, giuseppe.mazzotta@unical.it, ricca@mat.unical.it)
GIUSEPPE MAZZOTTA
Affiliation:
Department of Mathematics and Computer Science, University of Calabria, Italy (e-mails: andrea.cuteri@unical.it, giuseppe.mazzotta@unical.it, ricca@mat.unical.it)
FRANCESCO RICCA
Affiliation:
Department of Mathematics and Computer Science, University of Calabria, Italy (e-mails: andrea.cuteri@unical.it, giuseppe.mazzotta@unical.it, ricca@mat.unical.it)
Rights & Permissions [Opens in a new window]

Abstract

ASP(Q) extends Answer Set Programming (ASP) with Quantifiers over answer sets. In this paper, we focus on the class of ASP(Q) programs with two quantifiers and weak constraints, denoted as 2-ASP$^w$(Q). 2-ASP$^w$(Q) is a practically relevant fragment of ASP(Q) that is expressive enough to capture optimization problems up to the class $\Delta ^P_3$. On the theoretical side, we provide a complete complexity characterization of the main computational tasks for 2-ASP$^w$(Q) programs, including tight completeness results and the analysis of nontrivial cases that have not been addressed in previous works. On the practical side, we introduce novel strategies for computing (optimal) quantified answer sets in the CASPER system, that rely on a Counterexample-Guided Abstraction Refinement (CEGAR) technique tailored to ASP(Q). An experimental evaluation on hard benchmarks from different application domains shows that the proposed techniques are effective in practice.

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 (https://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), 2026. Published by Cambridge University Press
Figure 0

Table 1. Overall results

Figure 1

Fig 1. Overall execution time – opt$opt$.

Figure 2

Fig 2. Solving time for CC.

Supplementary material: File

Cuteri et al. supplementary material

Cuteri et al. supplementary material
Download Cuteri et al. supplementary material(File)
File 460.8 KB