ACM Home Page
Please provide us with feedback. Feedback
Tabled evaluation with delaying for general logic programs
Full text PdfPdf (4.10 MB)
Source Journal of the ACM (JACM) archive
Volume 43 ,  Issue 1  (January 1996) table of contents
Pages: 20 - 74  
Year of Publication: 1996
ISSN:0004-5411
Authors
Weidong Chen  State Univ. of New York at Stony Brook, Stony Brook
David S. Warren  Southern Methodist Univ., Dallas, TX
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 3,   Downloads (12 Months): 44,   Citation Count: 59
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/227595.227597
What is a DOI?

ABSTRACT

SLD resolution with negation as finite failure (SLDNF) reflects the procedural interpretation of predicate calculus as a programming language and forms the computational basis for Prolog systems. Despite its advantages for stack-based memory management, SLDNF is often not appropriate for query evaluation for three reasons: (a) it may not terminate due to infinite positive recursion; (b) it may be terminate due to infinite recursion through negation; and (c) it may repeatedly evaluate the same literal in a rule body, leading to unacceptable performance. We address all three problems for goal-oriented query evaluation of general logic programs by presenting tabled evaluation with delaying, called SLG resolution. It has three distinctive features: (i) SLG resolution is a partial deduction procedure, consisting of seven fundamental transformations. A query is transformed step by step into a set of answers. The use of transformations separates logical issues of query evaluation from procedural ones. SLG allows an arbitrary computation rule for selecting a literal from a rule body and an arbitrary control strategy for selecting transformations to apply. (ii) SLG resolution is sound and search space complete with respect to the well-founded partial model for all non-floundering queries, and preserves all three-valued stable models. To evaluate a query under differenc three-valued stable models, SLG resolution can be enhanced by further processing of the answers of subgoals relevant to a query. (iii) SLG resolution avoids both positive and negative loops and always terminates for programs with the bounded-term-size property. It has a polynomial time data complexity for well-founded negation of function-free programs. Through a delaying mechanism for handling ground negative literals involved in loops, SLG resolution avoids the repetition of any of its derivation steps. Restricted forms of SLG resolution are identified for definite, locally stratified, and modularly stratified programs, shedding light on the role each transformation plays.


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
 
3
4
5
 
6
 
7
 
8
 
9
CHAN, D. 1988. Constructive negation based on the completed database. In Proceedings of the 5th International Conference and Symposium on Logic Programming. Robert A. Kowalski and Kenneth A. Bowen, eds., MIT Press, Cambridge, Mass., pp. 111-125.
 
10
EllEN, W., AND ADAMS, L. 1994. Constructive negation of general logic programs. Tech. Rep. 94-CSE-16, Department of Computer Science and Engineering, Southern Methodist Univ., Dallas, Tex.
 
11
ellEN, W., SWIFT, T., AND WARREN, D.S. 1995. Efficient top-down computation of queries under the well-founded semantics. J. Logic Prog. 24, 3, 161-199.
 
12
 
13
ellEN, W., AND WARREN, D.S. 1993. The SLG System. Southern Methodist Univ., Dallas, Tex., August. Available by anonymous FTP from seas.smu.edu or cs.sunysb.edu.
 
14
CHEN, W., AND WARREN, D.S. 1992. A goal-oriented approach to computing well founded semantics. In Proceedings of the Joint International Conference and Symposium on Logic Programming. MIT Press, Cambridge, Mass., pp. 589-603.
 
15
CLARK, K.L. 1978. Negation as failure. In Logic and Databases. H. Gailaire and J. Minker, eds. Plenum, New York, pp. 293-322.
 
16
DIETRICH, S. W. AND WARREN, D.S. 1986. Extension tables: Memo relations in logic programming. Teeh. Rep. 86/18. Dept. Computer Science, SUNY at Stony Brook, Stony Brook, N.Y.
 
17
GELFOND, M., AND LIFSCHITZ, V. 1988. The stable model semantics for logic programming. In Proceedings of the Joint International Conference and Symposium on Logic Programming. R. A. Kowalski and IC A. Bowen, eds. MIT Press, Cambridge, Mass., pp. 1070-1080.
 
18
KEMP, D. B., STUCKEY, P. J., AND SRIVASTAVA, D. 1991. Magic sets and bottom-up evaluation of well-founded models. In Proceedings of the International Logic Programming Symposium. MIT Press, Cambridge, Mass., pp. 337-351.
 
19
KEMP, D. B., STUCKEY, P. J., AND SRIVASTAVA, D. 1992. Query restricted bottom-up evaluation of normal logic programs. In Proceedings of the Joint International Conference and Symposium on Logic Programming. MIT Press, Cambridge, Mass., pp. 288-302.
 
20
KEMP, D. B., AND TOPOR, R.W. 1988. Completeness of a top-down query evaluation procedure for stratified databases. In Proceedings of the Joint International Conference and Symposium on Logic Programming. MIT Press, Cambridge, Mass., pp. 178-194.
 
21
KOMOROWSKt, J. 1990. Towards a programming methodology founded on partial deduction. In Proceedings of the European Conference on Artificial Intelligence.
 
22
 
23
24
25
 
26
MORISHITA, S. 1992. An alternating fixpoint tailored to magic programs. In Proceedings of the Deductive Database Workshop at Joint International Conference and Symposium on Logic Programming.
 
27
PRZYMUSINSKA, H. AND PRZYMUSINSKI, T.C. 1988. Weakly perfect model semantics for logic programs. In Proceedings of the Joint International Conference and Symposium on Logic Programming, R. A. Kowalski and K. A. Bowen, eds. MIT Press, Cambridge, Mass., pp. 1106-1120.
 
28
29
 
30
PRZYMUS1NSKI, T.C. 1989b. On constructive negation in logic programming. In Proceedings of the North American Conference on Logic Programming (Oct.). MIT Press, Cambridge, Mass.
 
31
 
32
 
33
 
34
RAMAKRISHNAN, R., SRIVASTAVA, D., AND SUDARSHAN, S. 1992. Controlling the search in bottom-up evaluation. In Proceedings of the Joint International Conference and Symposium on Logw Programming. MIT Press, Cambridge, Mass., pp. 273-287.
 
35
36
 
37
38
39
 
40
SEKI, H., AND ITOH, H. 1988. A query evaluation method for stratified programs under the extended CWA. in Proceedings of the Joint International Conference and Symposium on Logic Programming. MIT Press, Cambridge, Mass., pp. 195-211.
 
41
STUCKEY, P.J. 1991. Constructive negation in constraint logic programming. In Proceedings of the 6th IEEE Annual Symposium on Logic in Computer Science. IEEE, New York, 328-339.
 
42
 
43
44
 
45
46
47
 
48
VIEILLE, L. 1987. A database-complete proof procedure based upon SLD-resolution. In Proceedings of the International Conference on Logic Programming. MIT Press, Cambridge, Mass., pp. 74-103.
 
49

CITED BY  59


REVIEW

"Ralph Walter Wilkerson : Reviewer"

SLG resolution, a new framework for query evaluation that may have significant influence on logic-based computational systems such as Prolog, is presented. The main results are that seven basic transformations are identified for qu  more...

Collaborative Colleagues:
Weidong Chen: colleagues
David S. Warren: colleagues