ACM Home Page
Please provide us with feedback. Feedback
Optimizing datalog programs
Full text PdfPdf (1.44 MB)
Source Symposium on Principles of Database Systems archive
Proceedings of the sixth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems table of contents
San Diego, California, United States
Pages: 349 - 362  
Year of Publication: 1987
ISBN:0-89791-223-3
Author
Y. Sagiv  Department of Computer Science, Hebrew University, Givat Ram 91904, Jerusalem, Israel
Sponsors
SIGMOD: ACM Special Interest Group on Management of Data
SIGOPS: ACM Special Interest Group on Operating Systems
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 3,   Downloads (12 Months): 33,   Citation Count: 29
Additional Information:

abstract   references   cited by   index terms   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/28659.28696
What is a DOI?

ABSTRACT

Datalog programs, i.e., Prolog programs without function symbols, are considered It is assumed that a variable appearing in the head of a rule must also appear in the body of the rule. The input of a program is a set of ground atoms (which are given in addition to the program's rules) and, therefore, can be viewed as an assignment of relations to some of the program's predicates. Two programs are equivalent if they produce the same result for all possible assignments of relations to the extensional predicates (i.e., the predicates that do not appear as heads of rules). Two programs are uniformly equivalent if they produce the same result for all possible assignments of initial relations to all the predicates (i.e., both extensional and intentional). The equivalence problem for Datalog programs is known to be undecidable. It is shown that uniform equivalence is decidable, and an algorithm is given for minimizing a Datalog program under uniform equivalence. A technique for removing parts of a program that are redundant under equivalence (but not under uniform equivalence) is developed. A procedure for testing uniform equivalence is also developed for the case in which the database satisfies some constraints.


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
A V Aho, Y Saglv, and J D Ullman {1979} "Eqmvalences among relational (,xprcsslons," SIAM J Computing, 8:2, pp 218-246
 
2
3
4
5
 
6
U S Chakravarthy, J Mlnker, and J Grant {1986} "Semantic Query Optlmlzatmn Addltmnal Constraants and Control Strategies," Proc First Int Conf on Expert Database Systems, April 1-4, Charleston, S C, pp 259-269
7
8
9
 
10
 
11
H Gaffman {1986} Private commumcatmn
 
12
13
 
14
 
15
16
17
 
18
19
 
20
D McKay and S Shapiro {1981} "Using active connection graphs for reasoning wlth recurmve rules," Proc 7th IJCAL pp 368- 374
 
21
S A Naqvl {1986} "A logic for negation m database systems," Preprmts of Workshop on Founda~lons of Deduc~lve Databases and Logic Programming, (:I Mmker, ed ), August 18--22, Washington, D C, pp 378- 387
 
22
J F Naughton {1986} "Redundancy m functmn-free recurmve rules," Proc 1986 Syrup on Logic Progrm'nmmg, September 22-25, Salt Lake C~ty, pp 236-245
 
23
Rohmer and R Lescoeur {1985} "The Alexander Method A Technique fol the Processing of Recurmve Axioms an Deductive Databases," Bull Internal Repol t
24
25
 
26
O Shmueh {1986} "Decldablhty and expressiveness aspects of logic querms," unpublished manuscript, Computer Scmnce Dept, Techmon - Israel Institute of Tcchllolog, b, Haafa 32000, Israel
27
28
29
 
30
A Van Gelder {1986b} "Ncgatmn ,l~ failure using tlght derlvatmns fol gener.i1 logic programs," Proc 1986 Syrup cm Logl~ Programming, September 22-25, Salt L,~k~' CaW, pp 127-138
 
31
M Yannakak~s and C H Pap~d~m~t~ou
 
1982
"Algebrmc dependencies," J Cornput Syst Sc~ , 25, pp 2-41

CITED BY  29