SLG is a table-oriented resolution method that combines the deduc-tive database and logic programming paradigms. SLG is applicable to de-ductive databases since it terminates and has polynomial data complexity for programs with nite models. In terms of the logic programming (and non-monotonic) paradigms, SLG computes the well-founded model for non-stratiied programs, and has been extended to compute 3-valued stable model semantics. This paper presents performance analysis and comparisons of the SLG-WAM, the abstract machine for executing SLG that forms the basis of the XSB system 11]. Although the SLG-WAM handles modularly stratiied programs , in this paper, we look only at its performance on deenite programs. The results indicate that the overhead of the SLG-WAM compared to a similar WAM implementation is minimal for executing programs under SLD. Furthermore , results are presented to indicate tradeoos between SLD and SLG evaluation for a variety of programs. Perhaps surprisingly, SLG derivation is shown to be competitive with SLD derivation on numerous datalog programs, even when SLD terminates and contains no redundant subcomputations. Finally , performance comparisons indicate that the SLG-WAM is about an order of magnitude faster than current deductive database systems. These results call into question traditional arguments about top-down versus bottom-up evaluation eeciency, and may provide information of use in designing and implementing the next generation of logic programming and deductive database systems.
[1]
David S. Warren.
Performance of Sequential Slg Evaluation
,
1993
.
[2]
Carlo Zaniolo,et al.
The LDL System Prototype
,
1990,
IEEE Trans. Knowl. Data Eng..
[3]
Kotagiri Ramamohanarao,et al.
Design overview of the Aditi deductive database system
,
1991,
[1991] Proceedings. Seventh International Conference on Data Engineering.
[4]
Divesh Srivastava,et al.
CORAL - Control, Relations and Logic
,
1992,
VLDB.
[5]
I. V. Ramakrishnan,et al.
Dynamic Argument Reduction for In-memory Data Queries
,
1994,
Workshop on Deductive Databases and Logic Programming.
[6]
Weidong Chen,et al.
Towards Effective Evaluation of General Logic Programs
,
1993
.
[7]
Jeffrey D. Ullman,et al.
A Survey of Research in Deductive Database Systems
,
1995
.
[8]
Shinichi Morishita,et al.
Design and implementation of the glue-nail database system
,
1993,
SIGMOD Conference.
[9]
S. Sudarshan,et al.
Optimizations of Bottom-Up Evaluation with Non-Ground Terms
,
1993,
ILPS.
[10]
Micha Meier.
Recursion versus Iteration in Prolog
,
1991,
ICLP.
[11]
S. Sudarshan,et al.
Optimizing Bottom-Up Query Evaluation for Deductive Databases
,
1992
.
[12]
Konstantinos Sagonas,et al.
Xsb as an Eecient Deductive Database Engine
,
1994
.
[13]
David Scott Warren,et al.
An Abstract Machine for SLG Resolution: Definite Programs
,
1994,
ILPS.