On the bottom-up evaluation of recursive queries

被引:0
|
作者
Chen, YJ [1 ]
机构
[1] UNIV KAISERSLAUTERN,DEPT COMP SCI,D-67663 KAISERSLAUTERN,GERMANY
关键词
D O I
10.1002/(SICI)1098-111X(199610)11:10<807::AID-INT7>3.3.CO;2-W
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
In this article, we present an optimal bottom-up evaluation method for handling both linear and nonlinear recursion. Based on the well-known magic-set method, we develop a technique: labeling to record the cyclic paths during the execution of the first phase of the magic-set method and suspending the computation for the cyclic data in the second phase to avoid the redundant evaluation. Then we postpone this computation to an iteration process (the third phase) which evaluates the remaining answers only along each cyclic path. In this way, we can guarantee the completeness. In addition, for a large class of programs we further optimize our method by elaborating the iteration process and generating most answers for each cyclic path directly from the intermediate results instead of evaluating them by performing algebraic operations (after some of the answers for the first cyclic path are produced). Because the cost of generating an answer is much less than that of evaluating an answer, this optimization is significant. (C) 1996 John Wiley & Sons, Inc.
引用
收藏
页码:807 / 832
页数:26
相关论文
共 50 条
  • [1] Optimizing bottom-up evaluation of constraint queries
    Kemp, DB
    Stuckey, PJ
    JOURNAL OF LOGIC PROGRAMMING, 1996, 26 (01): : 1 - 30
  • [2] Magic Sets for the Bottom-Up Evaluation of Finitely Recursive Programs
    Calimeri, Francesco
    Cozza, Susanna
    Ianni, Giovambattista
    Leone, Nicola
    LOGIC PROGRAMMING AND NONMONOTONIC REASONING, PROCEEDINGS, 2009, 5753 : 71 - 86
  • [3] BOTTOM-UP COMPUTATION OF RECURSIVE PROGRAMS
    BERRY, G
    REVUE FRANCAISE D AUTOMATIQUE INFORMATIQUE RECHERCHE OPERATIONNELLE, 1976, 10 (03): : 47 - 82
  • [4] A bottom-up algorithm for XML twig queries
    Zhi-xian, Tang
    Jun, Feng
    Li-ming, Xu
    Ya-qing, Shi
    International Journal of Database Theory and Application, 2015, 8 (04): : 49 - 58
  • [5] PARALLEL BOTTOM-UP PROCESSING OF DATALOG QUERIES
    GANGULY, S
    SILBERSCHATZ, A
    TSUR, S
    JOURNAL OF LOGIC PROGRAMMING, 1992, 14 (1-2): : 101 - 126
  • [6] BOTTOM-UP COMPUTATION OF RECURSIVE PROGRAMS.
    Berry, G.
    1976, 10 (03): : 47 - 82
  • [7] Bottom-Up Evaluation of Twig Join Pattern Queries in XML Document Databases
    Chen, Yangjun
    DATABASE AND EXPERT SYSTEMS APPLICATIONS, PROCEEDINGS, 2009, 5690 : 356 - 363
  • [8] EFFICIENT BOTTOM-UP COMPUTATION OF QUERIES ON STRATIFIED DATABASES
    BALBIN, I
    PORT, GS
    RAMAMOHANARAO, K
    MEENAKSHI, K
    JOURNAL OF LOGIC PROGRAMMING, 1991, 11 (3-4): : 295 - 344
  • [9] Finitely recursive programs: Decidability and bottom-up computation
    Calimeri, Francesco
    Cozza, Susanna
    Ianni, Giovambattista
    Leone, Nicola
    AI COMMUNICATIONS, 2011, 24 (04) : 311 - 334
  • [10] GENERALIZED BOTTOM-UP QUERY EVALUATION
    BRASS, S
    LIPECK, UW
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 580 : 88 - 103