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 条
  • [32] Bottom-up Conservation
    Sodhi, Navjot S.
    Butler, Rhett
    Raven, Peter H.
    BIOTROPICA, 2011, 43 (05) : 521 - 523
  • [33] Bottom-Up Management
    Freeman, Ruth
    PERSONNEL PSYCHOLOGY, 1950, 3 (02) : 236 - 237
  • [34] BOTTOM-UP DDP
    YASAKI, EK
    DATAMATION, 1983, 29 (04): : 131 - 132
  • [35] An efficient bottom-up filtering of XML messages by exploiting the postfix commonality of XPath queries
    Kim, Jaehoon
    Kim, Youngsoo
    Park, Seog
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2008, E91D (08): : 2124 - 2133
  • [36] ''Bottom-up'' bioremediation
    不详
    NATURE BIOTECHNOLOGY, 1997, 15 (05) : 393 - 393
  • [38] An Abstract Machine for Push Bottom-Up Evaluation of Datalog
    Brass, Stefan
    Wenzel, Mario
    DATABASE AND EXPERT SYSTEMS APPLICATIONS (DEXA 2018), PT II, 2018, 11030 : 270 - 280
  • [39] Bottom-up innovation
    Sharkey, Noel
    NATURE, 2014, 516 (7529) : 36 - 36
  • [40] BOTTOM-UP BIOLOGY
    不详
    NATURE, 2018, 563 (7730) : 171 - 171