|
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
|
Steven Dawson , C. R. Ramakrishnan , David S. Warren, Practical program analysis using general purpose logic programming systems—a case study, Proceedings of the ACM SIGPLAN 1996 conference on Programming language design and implementation, p.117-126, May 21-24, 1996, Philadelphia, Pennsylvania, United States
|
| |
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
|
Y. S. Ramakrishna , C. R. Ramakrishnan , I. V. Ramakrishnan , Scott A. Smolka , Terrance Swift , David Scott Warren, Efficient Model Checking Using Tabled Resolution, Proceedings of the 9th International Conference on Computer Aided Verification, p.143-154, June 22-25, 1997
|
| |
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
|
Konstantinos Sagonas , Terrance Swift , David S. Warren, XSB as an efficient deductive database engine, Proceedings of the 1994 ACM SIGMOD international conference on Management of data, p.442-453, May 24-27, 1994, Minneapolis, Minnesota, United States
|
| |
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.
|
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...
|