Introduction
Published in 2000, DLV represents a significant milestone in Knowledge Representation and Reasoning (KRR). It provides a high-performance, declarative environment for solving complex combinatorial problems using logic programming. DLV is notable for being the first system to efficiently implement disjunctive logic programming under Answer Set Semantics, allowing users to tackle problems reaching the second level of the polynomial hierarchy ($\Sigma^P_2$).
Declarative Problem Solving
Many real-world challenges, such as scheduling, fault diagnosis, and strategic planning, are computationally intensive, often falling into NP-hard or higher complexity classes. Traditional approaches require writing intricate imperative code to navigate vast search spaces. DLV addresses this by offering a declarative system where users describe what the problem is rather than how to solve it.
A key innovation of DLV is its support for "disjunction"—the ability to express that "A or B is true." This capability is mathematically essential for representing problems above NP-complete in the complexity hierarchy, such as those found in strategic reasoning and advanced diagnostics.
System Architecture and Methods
The DLV system is built on Disjunctive Datalog under Answer Set Semantics. Its architecture is designed to handle the complexity of logic programs through a multi-stage pipeline.
The core of the system relies on the "Guess&Check" paradigm. In this model, a "Guessing" component uses disjunctive rules to define a search space of potential solutions, while a "Checking" component employs integrity constraints to eliminate candidates that violate problem requirements.
To manage computational overhead, DLV includes an Intelligent Grounding module. This module translates high-level logic with variables into a "ground" version (constants only) while keeping the resulting program as small as possible to avoid combinatorial explosion. The Model Generator then produces candidate Answer Sets, which are verified by a dedicated Model Checker. To enhance usability, DLV provides specialized frontends for SQL3 queries, abductive diagnosis, and planning.
Evaluation and Performance
The authors evaluated DLV using several "hard" benchmarks, including 3-coloring (3COL), Hamiltonian Path (HPATH), and the $\Sigma^P_2$-hard "Strategic Companies" problem (STRATCOMP).
As shown in the performance data, the system underwent rapid optimization. For instance, the time required to solve the Hamiltonian Path (HPATH) benchmark dropped from over 1,000 seconds in July 1998 to just 0.3 seconds by November 1999. These improvements were driven by more sophisticated heuristics and grounding techniques.
Key Insights and Impact
DLV demonstrates that disjunction is a powerful tool for concise problem expression. Furthermore, the system's reliance on Answer Set Semantics naturally facilitates finding minimal models, which is particularly useful in domains like business logic and diagnostics.
Beyond academic benchmarks, DLV proved its scalability by handling programs with up to one million literals and rules. Its real-world utility was demonstrated through deployment at CERN for deductive database applications that surpassed the capabilities of traditional systems.
Conclusion and Future Directions
While DLV set a high bar for declarative solvers, the authors noted that performance on extremely hard inputs remains dependent on heuristics. Future work focuses on developing more robust branching rules and optimizing reasoning in environments with incomplete information. Despite these challenges, DLV remains a foundational system that bridged the gap between theoretical logic programming and practical, high-performance problem solving.
Summary updated