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 条
  • [1] Functional queries in Datalog
    Basta, S
    Flesca, S
    Greco, S
    NEW GENERATION COMPUTING, 2002, 20 (04) : 339 - 371
  • [2] Functional queries in Datalog
    Stefano Basta
    Sergio Flesca
    Sergio Greco
    New Generation Computing, 2002, 20 : 339 - 371
  • [3] Certain Answers for Views and Queries Expressed as Non-recursive Datalog Programs with Negation
    Felea, Victor
    INTELLIGENT INFORMATION AND DATABASE SYSTEMS, ACIIDS 2011, PT I, 2011, 6591 : 67 - 77
  • [4] INCREMENTAL EVALUATION OF DATALOG QUERIES
    DONG, GZ
    TOPOR, R
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 646 : 282 - 296
  • [5] EQUIVALENCE OF DATALOG QUERIES IS UNDECIDABLE
    SHMUELI, O
    JOURNAL OF LOGIC PROGRAMMING, 1993, 15 (03): : 231 - 241
  • [6] Games and total Datalog queries
    Flum, J
    Kubierschky, M
    Ludäscher, B
    THEORETICAL COMPUTER SCIENCE, 2000, 239 (02) : 257 - 276
  • [7] Bash Datalog: Answering Datalog Queries with Unix Shell Commands
    Rebele, Thomas
    Tanon, Thomas Pellissier
    Suchanek, Fabian
    SEMANTIC WEB - ISWC 2018, PT I, 2018, 11136 : 566 - 582
  • [8] Scalable source code queries with datalog
    Hajiyev, Elnar
    Verbaere, Mathieu
    de Moor, Oege
    ECOOP 2006 - OBJECT-ORIENTED PROGRAMMING, PROCEEDINGS, 2006, 4067 : 2 - 27
  • [9] Datalog Queries Distributing over Components
    Ameloot, Tom J.
    Ketsman, Bas
    Neven, Frank
    Zinn, Daniel
    ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2017, 18 (01)
  • [10] Datalog queries of set constraint databases
    Revesz, PZ
    DATABASE THEORY - ICDT '95, 1995, 893 : 425 - 438