next up previous contents index
Next: XSB as a Prolog Up: The XSB System Version Previous: Operators   Contents   Index


Using Tabling in XSB: A Tutorial Introduction

XSB has two ways of evaluating predicates. The default is to use Prolog-style evaluation, but by using various declarations a programmer can use also tabled resolution which allows for a different, more declarative programming style than Prolog. In this section we discuss the various aspects of tabling and how it is implemented in XSB. Our aim in this section is to provide a user with enough information to be able to program productively in XSB. It is best to read this tutorial with a copy of XSB handy, since much of the information is presented through a series of exercises.

For the theoretically inclined, XSB uses SLG resolution which can compute queries to non-floundering normal programs under the well-founded semantics [44], and is guaranteed to terminate when these programs have the bounded term-depth property. This tutorial covers only enough of the theory of tabling to explain how to program in XSB. For those interested, the web site contain papers covering in detail various aspects of tabling (often through the links for individuals involved in XSB). An overview of SLG resolution, and practical evaluation strategies for it are provided in [8,41,38,19]. The engine of XSB, the SLG-WAM, is described in [35,33,18,37,7,14] as it is implemented in Version 2.2 and its performance analyzed. Examples of large-scale applications that use tabling are overviewed in [42,9,12].



Subsections
next up previous contents index
Next: XSB as a Prolog Up: The XSB System Version Previous: Operators   Contents   Index
Baoqiu Cui
2000-04-23