Hostname: page-component-586b7cd67f-2brh9 Total loading time: 0 Render date: 2024-11-25T07:11:34.892Z Has data issue: false hasContentIssue false

Transformation-based bottom-up computation of the well-founded model

Published online by Cambridge University Press:  22 October 2001

STEFAN BRASS
Affiliation:
School of Information Sciences, University of Pittsburgh, 135 North Bellefield Ave., Pittsburgh, PA 15260, USA; e-mail: [email protected]
JÜRGEN DIX
Affiliation:
Department of Computer Science, The University of Manchester, Oxford Road, Manchester, M13 9PL UK; e-mail: [email protected]
BURKHARD FREITAG
Affiliation:
Fakultät für Mathematik und Informatik, Universität Passau, D-94030 Passau, Germany; email: freitag,[email protected]
ULRICH ZUKOWSKI
Affiliation:
Fakultät für Mathematik und Informatik, Universität Passau, D-94030 Passau, Germany; email: freitag,[email protected]

Abstract

We present a framework for expressing bottom-up algorithms to compute the well-founded model of non-disjunctive logic programs. Our method is based on the notion of conditional facts and elementary program transformations studied by BRASS and DIX (Brass and Dix, 1994; Brass and Dix, 1999) for disjunctive programs. However, even if we restrict their framework to nondisjunctive programs, their ‘residual program’ can grow to exponential size, whereas for function-free programs our ‘program remainder’ is always polynomial in the size of the extensional database (EDB). We show that particular orderings of our transformations (we call them strategies) correspond to well-known computational methods like the alternating fixpoint approach (Van Gelder, 1989; Van Gelder, 1993), the well-founded magic sets method (Kemp et al., 1995) and the magic alternating fixpoint procedure (Morishita, 1996). However, due to the confluence of our calculi (first noted in Brass and Dix, 1998), we come up with computations of the well-founded model that are provably better than these methods. In contrast to other approaches, our transformation method treats magic set transformed programs correctly, i.e. it always computes a relevant part of the well-founded model of the original program. These results show that our approach is a valuable tool to analyze, compare, and optimize existing evaluation methods or to create new strategies that are automatically proven to be correct if they can be described by a sequence of transformations in our framework. We have also developed a prototypical implementation. Experiments illustrate that the theoretical results carry over to the implemented prototype and may be used to optimize real life systems.

Type
Research Article
Copyright
© 2001 Cambridge University Press

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)