TLDR: sharpASP-SR is a new framework that significantly improves the counting of answer sets for complex disjunctive logic programs. It achieves this by using a novel subtractive reduction method to projected propositional model counting, outperforming existing tools, especially for instances with a large number of answer sets.
Answer Set Programming (ASP) is a powerful way to represent knowledge and solve problems, used in areas like decision support systems and systems biology. In ASP, solutions are called ‘answer sets’ – these are assignments to variables that satisfy specific rules within a program.
A fundamental challenge in this field is ‘answer set counting,’ which involves determining the total number of valid answer sets for a given ASP program. While significant progress has been made for simpler ‘normal logic programs,’ counting answer sets for more complex ‘disjunctive logic programs’ has remained a difficult task.
Researchers have introduced a novel framework called sharpASP-SR to tackle this challenge. This new approach focuses on counting answer sets for disjunctive logic programs by using a technique called ‘subtractive reduction to projected propositional model counting.’ Essentially, it works by first calculating an over-approximation of the answer set count, and then subtracting the excess to arrive at the precise number. This method allows sharpASP-SR to leverage recent advancements in projected model counting technology, which are very efficient.
One of the key innovations of sharpASP-SR is its alternative way of defining answer sets. This new definition makes it possible to use existing projected model counters without causing the problem’s representation to grow exponentially in size, which is a common issue in such complex computations.
Through extensive testing on various benchmarks, sharpASP-SR has shown remarkable performance. It significantly outperforms existing counters, especially on problems that have a very large number of answer sets. Building on this success, the researchers also developed a hybrid counting approach. This combines traditional enumeration techniques (which are good for instances with fewer answer sets) with sharpASP-SR, achieving state-of-the-art performance across a wide range of disjunctive programs.
The experimental results highlight sharpASP-SR’s superior scalability. While older enumeration-based tools often time out on instances with a huge number of answer sets (e.g., 2^30 or more), sharpASP-SR can handle instances with up to 2^127 answer sets. Its performance is influenced by the ‘cyclicity’ of the program, measured by the number of ‘loop atoms,’ performing exceptionally well on instances with fewer loop atoms.
Also Read:
- Unlocking Peak Performance: A New Approach to Digital Circuit Timing Analysis
- Measuring Argument Strength in Assumption-Based Reasoning
This research marks a significant step forward in the field of computational logic, providing a practical and efficient solution for a previously challenging problem. For more in-depth information, you can read the full research paper here.


