|
ABSTRACT
The performance of systems with recursive query languages can be improved by recognizing simple, easily evaluable classes of recursions and using algorithms tailored to these classes whenever possible. In this paper we identify a useful subset of recursive definitions, the one-sided recursions. We show how to detect one-sided recursions, and give two simple evaluation algorithms that cover one-sided definitions in that for any selection on a one-sided definition, at least one of the two algorithms will apply. These algorithms have simple termination conditions, maintain minimal state and use selections on the recursively defined relation whenever possible. We show that there are no similar algorithms for many-sided recursions We also prove that it is undecidable whether an arbitrary definition has an equivalent one-sided definition. However, we do present a procedure that converts many potentially one-sided recursions to one-sided form, and prove it complete for a useful class of recursions.
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
|
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]
|
 |
3
|
|
| |
4
|
C Chang On the evaluation of queries containing derived relationds in a relational data base In H Gallalre, J Minker, and J Nicolas, edilors, Advances in Data Base Theory, Volume 1, Plenum Press, 1981
|
| |
5
|
Hiam Gaifman, Harry Manson, Yehoshua Sagiv, and Moshe Y Vardi Undecidable optimization problems for database logic programs December 1986 Unpublsihed manuscript
|
| |
6
|
Micheal R Genesereth The MRS Casebook Technical Report IIPP-83-26, Stanford University. May 1983
|
 |
7
|
|
| |
8
|
H V Jagadish and Rakesh Agtawal A study of transitive closure as a recutslon mechanism 1986 Unpublished Manuscript
|
| |
9
|
Paris C Kanellakis Logic Programming and Parallel Complexity Technical Report CS-86 23, Brown University, October 1986
|
| |
10
|
Jack Minker and Jean M Nicolas On recursive axioms in relational databases lnformation Systems, 8(1) 1 13, 1q82
|
 |
11
|
|
| |
12
|
Jeffrey F Naughton One sided recursions 1987 Stanford TR, to appear
|
| |
13
|
|
| |
14
|
|
 |
15
|
|
CITED BY 20
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Adam L. Buchsbaum , Paris C. Kanellakis , Jeffrey S. Vitter, A data structure for arc insertion and regular path finding, Proceedings of the first annual ACM-SIAM symposium on Discrete algorithms, p.22-31, January 22-24, 1990, San Francisco, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
J. F. Naughton , R. Ramakrishnan , Y. Sagiv , J. D. Ullman, Efficient evaluation of right-, left-, and multi-linear rules, ACM SIGMOD Record, v.18 n.2, p.235-242, June 1989
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|