TY - JOUR
T1 - On the problem of computing the well-founded semantics
AU - Lonc, Zbigniew
AU - Truszczyński, Mirosław
PY - 2001/9
Y1 - 2001/9
N2 - The well-founded semantics is one of the most widely studied and used semantics of logic programs with negation. In the case of finite propositional programs, it can be computed in polynomial time, more specifically, in O(\At(P)\ x size(P)) steps, where size(P) denotes the total number of occurrences of atoms in a logic program P. This bound is achieved by an algorithm introduced by Van Gelder and known as the alternating-fixpoint algorithm. Improving on the alternating-fixpoint algorithm turned out to be difficult. In this paper we study extensions and modifications of the alternating-fixpoint approach. We then restrict our attention to the class of programs whose rules have no more than one positive occurrence of an atom in their bodies. For programs in that class we propose a new implementation of the alternating-fixpoint method in which false atoms are computed in a top-down fashion. We show that our algorithm is faster than other known algorithms and that for a wide class of programs it is linear and so, asymptotically optimal.
AB - The well-founded semantics is one of the most widely studied and used semantics of logic programs with negation. In the case of finite propositional programs, it can be computed in polynomial time, more specifically, in O(\At(P)\ x size(P)) steps, where size(P) denotes the total number of occurrences of atoms in a logic program P. This bound is achieved by an algorithm introduced by Van Gelder and known as the alternating-fixpoint algorithm. Improving on the alternating-fixpoint algorithm turned out to be difficult. In this paper we study extensions and modifications of the alternating-fixpoint approach. We then restrict our attention to the class of programs whose rules have no more than one positive occurrence of an atom in their bodies. For programs in that class we propose a new implementation of the alternating-fixpoint method in which false atoms are computed in a top-down fashion. We show that our algorithm is faster than other known algorithms and that for a wide class of programs it is linear and so, asymptotically optimal.
KW - Alternating fixpoint
KW - Well-founded semantics
UR - https://www.scopus.com/pages/publications/0346511489
UR - https://www.scopus.com/pages/publications/0346511489#tab=citedBy
U2 - 10.1017/S1471068401001053
DO - 10.1017/S1471068401001053
M3 - Article
AN - SCOPUS:0346511489
SN - 1471-0684
VL - 1
SP - 591
EP - 609
JO - Theory and Practice of Logic Programming
JF - Theory and Practice of Logic Programming
IS - 5
ER -