ON THE EXPECTED SIZE OF RECURSIVE DATALOG QUERIES

被引:1
|
作者
SESHADRI, S [1 ]
NAUGHTON, JF [1 ]
机构
[1] UNIV WISCONSIN,DEPT COMP SCI,MADISON,WI 53706
关键词
17;
D O I
10.1006/jcss.1995.1057
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页码:137 / 148
页数:12
相关论文
共 50 条
  • [21] A CLOSED FORM FOR DATALOG QUERIES WITH INTEGER ORDER
    REVESZ, PZ
    LECTURE NOTES IN COMPUTER SCIENCE, 1990, 470 : 187 - 201
  • [22] Hibernate the recursive queries - Defining the recursive queries using Hibernate ORM
    Szumowska, Aneta
    Boniewicz, Aleksandra
    Burzańska, Marta
    Wiśniewski, Piotr
    CEUR Workshop Proceedings, 2011, 789 : 190 - 199
  • [23] Usable recursive queries
    Pieciukiewicz, T
    Stencel, K
    Subieta, K
    ADVANCES IN DATABASES AND INFORMATION SYSTEMS, PROCEEDINGS, 2005, 3631 : 17 - 28
  • [24] Chase of recursive queries
    Brisaboa, Nieves R.
    Farina, Antonio
    Luaces, Miguel R.
    Parama, Jose R.
    PERSPECTIVES OF SYSTEMS INFORMATICS, 2007, 4378 : 112 - +
  • [25] A SINGLE RECURSIVE PREDICATE IS SUFFICIENT FOR PURE DATALOG
    SHMUELI, O
    INFORMATION AND COMPUTATION, 1995, 117 (01) : 91 - 97
  • [26] Graph Queries in a Next-Generation Datalog System
    Shkapsky, Alexander
    Zeng, Kai
    Zaniolo, Carlo
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2013, 6 (12): : 1258 - 1261
  • [27] Functional description of geoprocessing services as conjunctive datalog queries
    Daniel Fitzner
    Jörg Hoffmann
    Eva Klien
    GeoInformatica, 2011, 15 : 191 - 221
  • [28] Answering Threshold Queries in Probabilistic Datalog+/- Ontologies
    Gottlob, Georg
    Lukasiewicz, Thomas
    Simari, Gerardo I.
    SCALABLE UNCERTAINTY MANAGEMENT, 2011, 6929 : 401 - 414
  • [29] DATALOG REWRITINGS OF REGULAR PATH QUERIES USING VIEWS
    Francis, Nadime
    Segoufin, Luc
    Sirangelo, Cristina
    LOGICAL METHODS IN COMPUTER SCIENCE, 2015, 11 (04)
  • [30] Functional description of geoprocessing services as conjunctive datalog queries
    Fitzner, Daniel
    Hoffmann, Joerg
    Klien, Eva
    GEOINFORMATICA, 2011, 15 (01) : 191 - 221