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 条
  • [31] PARALLEL BOTTOM-UP PROCESSING OF DATALOG QUERIES
    GANGULY, S
    SILBERSCHATZ, A
    TSUR, S
    JOURNAL OF LOGIC PROGRAMMING, 1992, 14 (1-2): : 101 - 126
  • [32] Increment boundedness and nonrecursive incremental evaluation of datalog queries
    Dong, GZ
    Su, JW
    DATABASE THEORY - ICDT '95, 1995, 893 : 397 - 410
  • [34] DatalogRA : Datalog with Recursive Aggregation in the Spark RDD Model
    Rogala, Marek
    Hidders, Jan
    Sroka, Jacek
    FOURTH INTERNATIONAL WORKSHOP ON GRAPH DATA MANAGEMENT EXPERIENCES AND SYSTEMS (GRADES2016), 2016,
  • [36] Translating Datalog-like optimization queries into ILOG programs
    Greco, G
    Greco, S
    Trubitsyna, L
    Zumpano, E
    LOGIC BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2003, 2664 : 48 - 49
  • [37] Fixpoint semantics and optimization of recursive Datalog programs with aggregates
    Zaniolo, Carlo
    Yang, Mohan
    Das, Ariyam
    Shkapsky, Alexander
    Condie, Tyson
    Interlandi, Matteo
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2017, 17 (5-6) : 1048 - 1065
  • [38] Computing Recursive SPARQL Queries
    Atzori, Maurizio
    2014 IEEE INTERNATIONAL CONFERENCE ON SEMANTIC COMPUTING (ICSC), 2014, : 258 - 259
  • [39] GRAPHICAL SPECIFICATION OF RECURSIVE QUERIES
    CZEJDO, BD
    TUCCI, RP
    EMBLEY, DW
    LECTURE NOTES IN COMPUTER SCIENCE, 1991, 497 : 252 - 263
  • [40] Recursive queries in product databases
    ter Bekke, JH
    Bakker, JA
    FLEXIBLE QUERY ANSWERING SYSTEMS, PROCEEDINGS, 2002, 2522 : 44 - 55