𝔖 Bobbio Scriptorium
✦   LIBER   ✦

On the Expected Size of Recursive Datalog Queries

✍ Scribed by S. Seshadri; J.F. Naughton


Publisher
Elsevier Science
Year
1995
Tongue
English
Weight
998 KB
Volume
51
Category
Article
ISSN
0022-0000

No coin nor oath required. For personal study only.

✦ Synopsis


We present asymptotically exact expressions for the expected sizes of relations defined by three well-studied Datalog recursions, namely the "transitive closure," "same generation," and "canonical factorable recursion." We consider the size of the fixpoints of the recursively defined relations in the above programs, as well as the size of the fixpoints of the relations defined by the rewritten programs generated by the Magic Sets and Factoring rewriting algorithms in response to selection queries. Our results show that even over relatively sparse base relations, the fixpoints of the recursively defined relations are within a small constant factor of their worst-case size bounds, and that the Magic Sets rewriting algorithm on the average produces relations whose fixpoints are within a small constant factor of the corresponding bounds for the recursion without rewriting. The expected size of the fixpoint of the relations produced by the Factoring algorithm, when it applies, is significantly smaller than the expected size of the fixpoints of the relations produced by Magic Sets. This lends credence to the belief that reducing the arity of the recursive predicate is probably more important than restricting the recursion to relevant tuples. 'C' 1995 Academic Press, Inc


πŸ“œ SIMILAR VOLUMES


On the Equivalence of Recursive and Nonr
✍ Surajit Chaudhuri; Moshe Y Vardi πŸ“‚ Article πŸ“… 1997 πŸ› Elsevier Science 🌐 English βš– 591 KB

We study the problem of determining whether a given recursive Datalog program is equivalent to a given nonrecursive Datalog program. Since nonrecursive Datalog programs are equivalent to unions of conjunctive queries, we study also the problem of determining whether a given recursive Datalog program

On the Query Complexity of Clique Size a
✍ Richard Chang πŸ“‚ Article πŸ“… 1996 πŸ› Elsevier Science 🌐 English βš– 682 KB

This paper explores the bounded query complexity of approximating the size of the maximum clique in a graph (Clique Size) and the number of simultaneously satisfiable clauses in a 3CNF formula (MaxSat). The results in the paper show that for certain approximation factors, approximating Clique Size a

On the Complexity of Database Queries
✍ Christos H. Papadimitriou; Mihalis Yannakakis πŸ“‚ Article πŸ“… 1999 πŸ› Elsevier Science 🌐 English βš– 223 KB

We revisit the issue of the complexity of database queries, in the light of the recent parametric refinement of complexity theory. We show that, if the query size (or the number of variables in the query) is considered as a parameter, then the relational calculus and its fragments (conjunctive queri