A Simple and Effective ASP-Based Tool for Enumerating Minimal Hitting Sets

Mohimenul Kabir, Kuldeep S. Meel · DOI

Abstract

Minimal Hitting Set (MHS) enumeration is a fundamental NP-hard problem with critical applications in fault diagnosis, bioinformatics, and data mining. This paper introduces MinHit-ASP, a tool that leverages Answer Set Programming (ASP) to efficiently solve the MHS problem. By reducing the problem to a disjunctive logic program, MinHit-ASP exploits the highly optimized subset-minimality engines of modern ASP solvers. Evaluation on a benchmark of 2,000 real-world instances demonstrates that MinHit-ASP outperforms state-of-the-art specialized solvers, successfully solving 1,948 instances within a 1,000-second timeout.

Introduction

A hitting set for a collection of sets is a set that contains at least one element from every set in the collection. A hitting set is considered minimal (MHS) if no proper subset of it remains a hitting set. Enumerating all MHSes is a foundational challenge in computer science with high-stakes applications:

  • Fault Diagnosis: Identifying minimal combinations of components responsible for system failures.
  • Bioinformatics: Identifying minimal sets of genes or proteins involved in biological pathways.
  • Data Mining: Discovering essential patterns and unique column combinations in massive datasets.

Because the number of MHSes can grow exponentially relative to input size, the problem is NP-hard. Existing specialized tools often struggle to scale as the dataset or the universe of elements grows.

Methodology

The authors propose a declarative approach using Answer Set Programming (ASP). The core of the method is a reduction where every set $S_i = \{a_1, \dots, a_\ell\}$ in the input family is transformed into a single disjunctive logic rule: $$g(a_1) \lor \dots \lor g(a_\ell) \leftarrow \top$$ This rule mandates that at least one element from the set must be chosen. Because ASP answer sets are subset-minimal by definition, they correspond exactly to the minimal hitting sets of the input family.

The MinHit-ASP workflow: reducing the hitting set problem to an ASP program for processing by the Clingo solver.

This implementation, using the Clingo solver, offers a concise alternative to complex, specialized data structures like hitting set trees.

Experimental Results

MinHit-ASP was evaluated against five major baselines (including Hitman, SHD, and MtMiner) using 2,000 instances from real-world domains such as metabolic reactions and combinatorial circuits. The benchmarks ranged from small sets to massive instances with nearly 2 million sets.

Performance Comparison

MinHit-ASP emerged as the most robust solver in the study:

  • Total Solves: MinHit-ASP solved 1,948 instances, compared to 1,846 by the next best tool, Hitman.
  • Unique Contributions: The tool solved 94 instances that no other baseline could handle.
  • Efficiency: As shown in the cactus plot below, MinHit-ASP maintains superior performance across the widest range of instances.
Cactus plot of CPU time (s) vs. instances solved. MinHit-ASP (green) outperforms all baselines by solving the most instances within the 1,000s timeout.

Discussion: The "Harder is Better" Paradox

A key insight of this work is that reducing a problem to a theoretically "harder" complexity class can be beneficial. While MHS is NP-hard and disjunctive ASP is $\Sigma^P_2$-complete, the extreme optimization of modern ASP solvers for subset-minimality allows them to handle MHS more efficiently than tools built specifically for the "easier" class. Additionally, the logic-based approach allows for easy integration of further constraints, such as finding MHSes of a specific size.

Conclusion

MinHit-ASP provides a simple yet powerful framework for MHS enumeration. While performance begins to decline when average set sizes exceed 1,000 elements, its overall efficiency and versatility mark a significant advancement. Future work will explore weighted MHSes and integrating the tool into broader reasoning tasks like brave and cautious reasoning.

Summary updated

BibTeX
@misc{kabir2025simple,
  author = {Mohimenul Kabir and Kuldeep S. Meel},
  title = {{A Simple and Effective ASP-Based Tool for Enumerating Minimal Hitting Sets}},
  year = {2025},
  eprint = {2507.09194},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.09194},
}
Figure