ACM Home Page
Please provide us with feedback. Feedback
Modular stratification and magic sets for Datalog programs with negation
Full text PdfPdf (3.60 MB)
Source Journal of the ACM (JACM) archive
Volume 41 ,  Issue 6  (November 1994) table of contents
Pages: 1216 - 1266  
Year of Publication: 1994
ISSN:0004-5411
Author
Kenneth A. Ross  Columbia Univ., New York, NY
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 2,   Downloads (12 Months): 50,   Citation Count: 16
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/195613.195646
What is a DOI?

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
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
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.

CITED BY  16


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...