Hostname: page-component-745bb68f8f-grxwn Total loading time: 0 Render date: 2025-02-06T20:17:06.810Z Has data issue: false hasContentIssue false

On the problem of computing the well-founded semantics

Published online by Cambridge University Press:  22 October 2001

ZBIGNIEW LONC
Affiliation:
Department of Computer Science, University of Kentucky, Lexington, KY 40506-0046, USA (e-mail: lonc@cs.uky.edu, mirek@cs.uky.edu)
MIROSŁAW TRUSZCZYŃSKI
Affiliation:
Department of Computer Science, University of Kentucky, Lexington, KY 40506-0046, USA (e-mail: lonc@cs.uky.edu, mirek@cs.uky.edu)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the ‘Save PDF’ action button.

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([mid ]At(P)[mid ] × 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.

Type
Research Article
Copyright
© 2001 Cambridge University Press

Footnotes

A preliminary version of this paper appeared in the Proceedings of Computational Logic – CL 2000, Lecture Notes in Artificial Intelligence, 1861, Springer-Verlag, 2000.