|
ABSTRACT
A class of “modularly stratified” logic programs is defined. Modular stratification generalizes stratification and local stratification, while allowing programs that are not expressible as stratified programs. For modularly stratified programs, the well-founded semantics coincides with the stable model semantics and makes every ground literal true or false. Modularly stratified programs are weakly stratified, but the converse is false. Unlike some weakly stratified programs, modularly stratified programs can be evaluated in a subgoal-at-a time fashion. An extension of top-down methods with memoing that handles this broader class of programs is presented. A technique for rewriting a modularly stratified program for bottom-up evaluation is demonstrated and extended to include magic-set techniques. The rewritten program, when evaluated bottom-up, gives correct answers according to the well-founded semantics, but much more efficiently than computing the complete well-founded model. A one-to-one correspondence between steps of the extended top-down method and steps during the bottom-up evaluation of the magic-rewritten program is exhibited, demonstrating that the complexity of the two methods is the same. Extensions of modular stratification to other operators such as set-grouping and aggregation, which have traditionally been stratified to prevent semantic difficulties, are discussed.
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
|
~BALBIN, I., MEENKASHI, K., AND RAMAMOHANARAO, K. 1988. An efficient labelling algorithm for ~magic set computation on stratified databases. Tech. Rep. 88/1. Dept. of Computer Scicncc, ~Univ. of Melbourne, Melbourne, Austraha.
|
| |
2
|
~BALBIN, I., PORT, G. S., AND RAMAMOHANARAO, m. 1987. Magic set computation for on stratified ~databases. Tech. Rep. 87/3. Dept. of Computer Science, Univ~ of Melbourne, Melbourne, ~Australia.
|
| |
3
|
|
 |
4
|
|
 |
5
|
Francois Bancilhon , David Maier , Yehoshua Sagiv , Jeffrey D Ullman, Magic sets and other strange ways to implement logic programs (extended abstract), Proceedings of the fifth ACM SIGACT-SIGMOD symposium on Principles of database systems, p.1-15, March 24-26, 1986, Cambridge, Massachusetts, United States
[doi> 10.1145/6012.15399]
|
 |
6
|
|
| |
7
|
~BEERI, C., RAMAKRISHNAN, R., SRIVASTAVA, D., AND SUDARSHAN, S. 1989. Magic implementation ~of stratified logic programs. Manuscript.
|
 |
8
|
|
 |
9
|
|
| |
10
|
~CHAN, D. 1988. Constructive negation based on the completed database. In Proceedings of the ~5th International O)nference and Syrnposiunz on Logic Programming. MIT Press, Cambridge, ~Mass., pp. 111-125.
|
| |
11
|
~CHEN, W., KIFER, U., AND WARREN, D. S. 1989. HiLog: A first order semantics for higher-order ~logic programming constructs. In Proceedings of the North American Logic Programming Confel~ ~ence. MIT Press, Cambridge, Mass.
|
| |
12
|
~DIETRICH, S. AND WARREN, D. S. 1985. Dynamic programming strategies for the evaluation of ~recursive queries. Tech. Rep. 85/31. Computer Science Dept., State Univ. of New York, Stony ~Brook, N.Y.
|
| |
13
|
~GELFOND, M. AND LIFSCHITZ, V. 1988. The stable model semantics for logic programming. In ~Proceedings of the 5th International Conference and Symposium on Logic Programming. MIT ~Press, Cambridge, Mass., pp. 1070-1080.
|
| |
14
|
~KEMP, D. B., AND TOPOR, R. W. 1988. Completeness of a top down query evaluation procedure ~for stratified databases. In Proceedings of the 5th Internattonal ConJerence and Symposium on ~Logic Programming. MIT Press, Cambridge, Mass., pp. 178-194.
|
| |
15
|
~KERISIT. J. U. AND PUGIN, J. U. 1988. Efficient query answering on stratified databases. In ~Proceedings of the International Conference on Fifth Generation Computer Systems, pp. 719 726.
|
| |
16
|
|
| |
17
|
|
| |
18
|
~PmPPS, G. 1990. Glue: A deductive database programming language. Tech. Rep. TR-CS-90-14. ~Kansas State Univ., Manhattan, Kan., 1990. Also Proceedings of the NACLP'90 Workshop on ~Deductu,e Databases.
|
 |
19
|
Geoffrey Phipps , Marcia A. Derr , Kenneth A. Ross, Glue-Nail: a deductive database system, Proceedings of the 1991 ACM SIGMOD international conference on Management of data, p.308-317, May 29-31, 1991, Denver, Colorado, United States
|
 |
20
|
|
| |
21
|
~PRZYMUSINSKI, T. C. 1989b. On constructive negaUon in logic programming. In Proceedings of ~tile North American Conference on Logic Programming. MIT Press, Cambridge, Mass.
|
| |
22
|
|
| |
23
|
|
| |
24
|
|
| |
25
|
~I~AMAKRISI-INAN, R,, SRIVASTAVA, D., AND SUDARSHAN, S. 1992. Coral: A deductive database ~programming language. In Proceedings of the 18th International Conference on ~0' La~e ~Databases. VLDB Endowment.
|
| |
26
|
|
 |
27
|
|
 |
28
|
|
| |
29
|
|
 |
30
|
|
| |
31
|
~SEKI, H. AND ITOH, H. 1988. A query evaluation method for stratified programs under the ~extended CWA. In Proceedings of tile 5th International Conference and S)2trq)o3lam otl Logic ~Programming. MIT Press, Cambridge, Mass., pp. 195-211.
|
 |
32
|
|
| |
33
|
|
 |
34
|
|
| |
35
|
~VIEILLE, L. 1986. Recursive axioms in deductive databases: The query-subquery approach. In ~Proceedings of the lth International Cotzferetzce orl Ex?ert Databaae Systems.
|
| |
36
|
~VmiLLE, L. 1987. A database-complete proof procedure based on SLD-resolunon. In Proceed- ~rags of the 4th International Conference on Logic Programming.
|
REVIEW
"Jack Minker : Reviewer"
Several semantics have been developed to handle rules in Datalog
that contain negated atoms in their bodies. Prominent among these are
the well-founded and the stable semantics. Both of these semantics
permit rules that have recursion through
more...
|