Hostname: page-component-77f85d65b8-t6st2 Total loading time: 0 Render date: 2026-03-30T01:51:36.486Z Has data issue: false hasContentIssue false

System Predictor: Grounding Size Estimator for Logic Programs under Answer Set Semantics

Published online by Cambridge University Press:  22 June 2023

DANIEL BRESNAHAN
Affiliation:
University of Nebraska Omaha, Omaha, NE, USA (e-mails: daniel.b.bresnahan@gmail.com, nhippen@unomaha.edu, ylierler@unomaha.edu)
NICHOLAS HIPPEN
Affiliation:
University of Nebraska Omaha, Omaha, NE, USA (e-mails: daniel.b.bresnahan@gmail.com, nhippen@unomaha.edu, ylierler@unomaha.edu)
YULIYA LIERLER
Affiliation:
University of Nebraska Omaha, Omaha, NE, USA (e-mails: daniel.b.bresnahan@gmail.com, nhippen@unomaha.edu, ylierler@unomaha.edu)
Rights & Permissions [Opens in a new window]

Abstract

Answer set programming is a declarative logic programming paradigm geared towards solving difficult combinatorial search problems. While different logic programs can encode the same problem, their performance may vary significantly. It is not always easy to identify which version of the program performs the best. We present the system predictor (and its algorithmic backend) for estimating the grounding size of programs, a metric that can influence a performance of a system processing a program. We evaluate the impact of predictor when used as a guide for rewritings produced by the answer set programming rewriting tools projector and lpopt. The results demonstrate potential to this approach.

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. Typical ASP system architecture.

Figure 1

Fig. 2. An ASP system with projector using predictor.

Figure 2

Fig. 3. Left: Graph $G_{\Pi_2}$; Center: Graph $G_{\Pi_3}$; Right: Graph $G^{sc}_{\Pi_3}$.

Figure 3

Table 1: Key information for benchmark programs

Figure 4

Table 2: Feature and version details for benchmark programs

Figure 5

Table 3: Average error factor for benchmark programs, with and without keys

Figure 6

Table 4: Average grounding size factors, and execution time factors for proj and prd-proj

Figure 7

Table 5: Average grounding size factors, and execution time factors for lpopt and prd-lpopt