Abstract
In practise, most recursive logic queries to a deductive database are expressed by linear recursive datalog programs with exactly one linear recursive rule, so-called linear datalog sirups.
The notion of k -sided linear datalog sirups has been introduced by Naughton, who characterized one-sided linear datalog sirups based on a graph model. We use another graph representation of linear datalog sirups for extending this characterization to arbitrary sidedness k. It is shown that 0 ≤ k ≤ n′, where n′ is the dimension of the sirup, i.e. the arity of its recursive predicate symbol. An efficient (quadratic time) algorithm for the determination of the sidedness k is presented.
We will define the canonical k -sided normal form (CKNF) for linear datalog sirups. Every k-sided linear datalog sirup can be normalized to an equivalent k-sided CKNF sirup. Every k-sided CKNF sirup can be decomposed by counting techniques into k lower-dimensional linear sirups in a very simple normal form for non-datalog sirups, the generalized form for transitive closure, which allows for the usage of very efficient query evaluation algorithms.
This work was done at the Universität Würzburg.
Preview
Unable to display preview. Download preview PDF.
References
A. Aho, J. Ullman: Universality of Data Retrieval Languages, Proc. POPL 1979.
R. Agrawal, P. Devanbu: Moving Selections into Linear Least Fixpoint Queries, Proc. Intl. Conf. on Data Engineering, 1988.
F. Bancilhon, D. Maier, Y. Sagiv, J. Ullman: Magic Sets and Other Strange Ways to Implement Logic Programs, Proc. PODS 1986.
F. Bancilhon, R. Ramakrishnan: An Amateur's Introduction to Recursive Query Processing Strategies, Proc. ACM SIGMOD 1986.
C. Beeri, R. Ramakrishnan: On the Power of Magic, Poc. PODS 1987.
J. Biskup, H. Steifeling: Transitive Closure Algorithms for Very Large Databases, Proc. Intl. Workshop on Graph-Theoretic Concepts in Computer Science 1988 (WG'88), LNCS 344, Springer, 1989.
U. Güntzer, W. Kiessling, R. Bayer: On the Evaluation of Recursion in (Deductive) Database Systems by Efficient Differential Fixpoint Iteration, Proc. Intl. Conf. on Data Engineering 1987.
J. Han, L. Henschen: Handling Redundancy in the Processing of Recursive Database Queries, Proc. ACM SIGMOD 1987.
J. Han, H. Lu: Some Performance Results on Recursive Query Processing in Relational Database Systems, Proc. Intl. Conf. on Data Engineering 1986.
R. Haddad, J. Naughton: Counting Methods for Cyclic Relations, Proc. PODS 1988.
L. Henschen, S. Naqvi: On Compiling Queries in Recursive First-Order Data Bases, JACM, vol. 31(1), 1984.
Y. Ioannidis: A Time Bound on the Materialization of Some Recursively Defined Views, Proc. VLDB 1985.
Y. Ioannidis, E. Wong: An Algebraic Approach to Recursive Inference, in: L. Kerschberg: Expert Database Systems, Proc. First Intl. Workshop 1986, Benjamin-Cummings, Menlo Park, CA, 1987.
H. Jagadish, R. Agrawal, L. Ness: A Study of Transitive Closure as a Recursion Mechanism, Proc. ACM SIGMOD 1987.
M. Kifer, E. Lozinskii: Filtering Data Flow in Deductive Databases, Proc. ICDT 1986.
J. Lloyd: Foundations of Logic Programming, Springer, 1984.
J. Naughton: One-Sided Recursions, Proc. PODS 1987.
J. Naughton: Minimizing Function-Free Recursive Inference Rules, JACM, vol. 36(1), 1989.
J. Naughton, Y. Sagiv: A Decidable Class of Bounded Recursions, Proc. PODS 1987.
Y. Sagiv: Optimizing Datalog Programs, Proc. PODS 1987.
D. Sacca, C. Zaniolo: Magic Counting Methods, Proc. ACM SIGMOD 1987.
D. Seipel: A Graph-Based Decomposition Approach for Recursive Query Processing, Proc. Intl. Workshop on Graph-Theoretic Concepts in Computer Science 1988 (WG'88), LNCS 344, Springer, 1989.
D. Seipel: Decomposition in Database and Knowledge-Base Systems, Doctoral Dissertation, University of Würzburg, 1989.
S. Sippu, E. Soisalon-Soininen: A Generalized Transitive Closure for Relational Queries, Proc. PODS 1988. (and: Research Report 183, Univ. Karlsruhe, Dept. of CS, 1987).
J. Ullman: Implementation of Logical Query Languages for Databases, ACM TODS, vol. 10(3), 1985.
C. Youn, L. Henschen, J. Han: Classification of Recursive Formulas in Deductive Databases, Proc. ACM SIGMOD 1988.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1991 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Seipel, D. (1991). Decomposition of linear recursive logic programs. In: Möhring, R.H. (eds) Graph-Theoretic Concepts in Computer Science. WG 1990. Lecture Notes in Computer Science, vol 484. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-53832-1_50
Download citation
DOI: https://doi.org/10.1007/3-540-53832-1_50
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-53832-5
Online ISBN: 978-3-540-46310-8
eBook Packages: Springer Book Archive