Abstract :
The task of generating minimal models of a knowledge base is at the computational heart of diagnosis systems like truth maintenance systems, and of nonmonotonic systems like autoepistemic logic, default logic, and disjunctive logic programs. Unfortunately, it is NP-hard. In this paper we present a hierarchy of classes of knowledge bases, image , with the following properties: first, image is the class of all Horn knowledge bases; second, if a knowledge base T is in image, then T has at most k minimal models, and all of them may be found in time image, where l is the length of the knowledge base; third, for an arbitrary knowledge base T, we can find the minimum k such that T belongs to image in time polynomial in the size of T; and, last, where image is the class of all knowledge bases, it is the case that image, that is, every knowledge base belongs to some class in the hierarchy. The algorithm is incremental, that is, it is capable of generating one model at a time.
Keywords :
Propositional statisfiability , Datalog , Minimal models , Nonmonotonic reasoning , Logic programming , Diagnosis , Knowledge representation