ACM Home Page
Please provide us with feedback. Feedback
An abstract machine for tabled execution of fixed-order stratified logic programs
Full text PdfPdf (602 KB)
Source ACM Transactions on Programming Languages and Systems (TOPLAS) archive
Volume 20 ,  Issue 3  (May 1998) table of contents
Pages: 586 - 634  
Year of Publication: 1998
ISSN:0164-0925
Authors
Konstantinos Sagonas  Katholieke Univ. Leuven, Herverlee, Belgium
Terrance Swift  Univ. of Maryland, College Park
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 6,   Downloads (12 Months): 41,   Citation Count: 11
Additional Information:

abstract   references   cited by   index terms   review   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/291889.291897
What is a DOI?

ABSTRACT

SLG resolution uses tabling to evaluate nonfloundering normal logic pr ograms according to the well-founded semantics. The SLG-WAM, which forms the engine of the XSB system, can compute in-memory recursive queries an order of magnitute faster than current deductive databases. At the same time, the SLG-WAM tightly intergrates Prolog code with tabled SLG code, and executes Prolog code with minimal overhead compared to the WAM. As a result, the SLG-WAM brings to logic programming important termination and complexity properties of deductive databases. This article describes the architecture of the SLG-WAM for a powerful class of programs, the class of fixed-order dynamically stratified programs. We offer a detailed description of the algorithms, data structures, and instructions that the SLG-WAM adds to the WAM, and a performance analysis of engine overhead due to the extensions.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
 
2
CHEN, W., SWIFT, T., AND WARREN, D. S. 1995. Efficient top-down computation of queries under the well-founded semantics. J. Logic Program. 24, 3 (Sept.), 161-199.
3
 
4
CODISH, M., DEMOEN, B., AND SAGONAS, I~. 1996. Semantics-based program analysis for logicbased languages using XSB. Tech. Rep. CW 245, Katholieke Universiteit Leuven, Heverlee Belgium.
 
5
6
 
7
 
8
 
9
FREIRE, J., SWIFT, T., AND WARREN, D. S. 1997. Treating I/O seriously: Resolution reconsidered for disk. In Proceedings of the 14th International Conference on Logic Programming, L. Naish, Ed. The MIT Press, Cambridge, Mass., 198-212.
 
10
LARSON, R., WARREN, D. S., FREIRE, J., GOMEZ, O. P., AND SAGONAS, K. 1997. Semantica. The MIT Press, Cambridge, Mass.
 
11
LARSON, R., WARREN, D. S., FREIRE, J., AND SAGONAS, K. 1996. Syntactica. The MIT Press, Cambridge, Mass.
 
12
13
 
14
 
15
RAMAKRISHNAN, I. V., RAO, P., SAGONAS, K., SWIFT, T., AND WARREN, D. S. 1995. Efficient tabling mechanisms for logic programs. In Proceedings of the 12th International Conference on Logic Programming, L. Sterling, Ed. The MIT Press, Cambridge, Mass., 687-711.
 
16
RAMAKRISHNAN, R., SRIVASTAVA, D., AND SUDARSHAN, S. 1992a. Controlling the search in bottomup evaluation. In Proceedings of the Joint International Conference and Symposium on Logic Programming, K. Apt, Ed. The MIT Press, Cambridge, Mass., 273-287.
 
17
 
18
 
19
RAO, P., RAMAKRISHNAN, C. R., AND RAMAKRISHNAN, I. V. 1996. A thread in time saves tabling time. In Proceedings of the Joint International Conference and Symposium on Logic Programruing, M. Maher, Ed. The MIT Press, Cambridge, Mass., 112-126.
20
21
 
22
SAGONAS, K., SWIFT, T., AND WARREN, D. S. 1996a. An abstract machine for computing the wellfounded semantics. In Joint International Conference and Symposium on Logic Programming, M. Maher, Ed. The MIT Press, Cambridge, Mass., 274-288.
 
23
 
24
 
25
 
26
 
27
TAYLOR, t. 1991. High performance Prolog implementation. Ph.D. thesis, Dept. of Computer Science, University of Sidney, Sidney, Australia.
 
28
 
29
30
 
31
 
32
VAN ROY, P. 1994. 1983-1993: The wonder years of sequential Prolog implementation. J. Logic Program. 19/20, 385-441.
33
 
34
 
35
WARREN, D. H. D. 1983. An Abstract Prolog instruction set. Tech. Rep. 309, SRI International, Menlo Park, Calif.
 
36
 
37
WARREN, D. S. 1984. Efficient Prolog memory management for flexible control strategies. In Proceedings of the 1984 Symposium on Logic Programming. IEEE Computer Science Press, Los Alamitos, Calif., 198-202.

CITED BY  11


REVIEW

"Hans J. Schneider : Reviewer"

The standard implementation of Prolog by SLDNF resolution results in lack of termination and also results in exponential complexity. SLG resolution (linear resolution with a selection function for general logic programs) is an alternative appr  more...

Collaborative Colleagues:
Konstantinos Sagonas: colleagues
Terrance Swift: colleagues