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.
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.
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