ACM Home Page
Please provide us with feedback. Feedback
From datalog rules to efficient programs with time and space guarantees
Full text PdfPdf (228 KB)
Source International Conference on Principles and Practice of Declarative Programming archive
Proceedings of the 5th ACM SIGPLAN international conference on Principles and practice of declaritive programming table of contents
Uppsala, Sweden
Pages: 172 - 183  
Year of Publication: 2003
ISBN:1-58113-705-2
Authors
Yanhong A. Liu  State University of New York at Stony Brook, Stony Brook, NY
Scott D. Stoller  State University of New York at Stony Brook, Stony Brook, NY
Sponsors
SIGPLAN: ACM Special Interest Group on Programming Languages
ACM: Association for Computing Machinery
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 5,   Downloads (12 Months): 29,   Citation Count: 8
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/888251.888268
What is a DOI?

ABSTRACT

This paper describes a method for transforming any given set of Datalog rules into an efficient specialized implementation with guaranteed worst-case time and space complexities, and for computing the complexities from the rules. The running time is optimal in the sense that only useful combinations of facts that lead to all hypotheses of a rule being simultaneously true are considered, and each such combination is considered exactly once. The associated space usage is optimal in that it is the minimum space needed for such consideration modulo scheduling optimizations that may eliminate some summands in the space usage formula. The transformation is based on a general method for algorithm design that exploits fixed-point computation, incremental maintenance of invariants, and combinations of indexed and linked data structures. We apply the method to a number of analysis problems, some with improved algorithm complexities and all with greatly improved algorithm understanding and greatly simplified complexity analysis.


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
J. Cai, P. Facon, F. Henglein, R. Paige, and E. Schonberg. Type analysis and data structure selection. In B. Moller, editor, Constructing Programs from Specifications, pages 126--164. North-Holland, Amsterdam, 1991.
 
8
 
9
 
10
11
 
12
13
 
14
 
15
 
16
 
17
 
18
 
19
20
 
21
22
 
23
 
24
 
25
 
26
J. F. Naughton and R. Ramakrishnan. Bottom-up evaluation of logic programs. In J.-L. Lassez and G. Plotkin, editors, Computational Logic: Essays in Honor of Alan Robinson, pages 640--700. The MIT Press, Cambridge, Mass., 1991.
 
27
 
28
R. Paige. Formal Differentiation: A Program Synthesis Technique, volume~6 of Computer Science and Artificial Intelligence. UMI Research Press, Ann Arbor, Michigan, 1981. Revision of Ph.D. dissertation, New York University, 1979.
 
29
R. Paige. Programming with invariants. IEEE Software, 3(1):56--69, Jan. 1986.
 
30
R. Paige. Real-time simulation of a set machine on a RAM. In Computing and Information, Vol. II, pages 69--73. Canadian Scholars Press, 1989. Proceedings of ICCI '89: The International Conference on Computing and Information, Toronto, Canada, May 23-27, 1989.
31
 
32
 
33
T. Reps. Program analysis via graph reachability. Information and Software Technology, 40(11-12):701--726, Nov. 1998. Special issue on program slicing.
 
34
 
35
W. K. Snyder. The SETL2 Programming Language. Technical report 490, Courant Institute of Mathematical Sciences, New York University, Sept. 1990.
 
36

CITED BY  8


REVIEW

"Jerzy W. Jaromczyk : Reviewer"

Database queries, model checking, and graph problems can be succinctly specified with relational rules, and then expressed with a rule-based language such as Datalog. This paper develops a method for automatic generation of efficient programs from  more...

Collaborative Colleagues:
Yanhong A. Liu: colleagues
Scott D. Stoller: colleagues