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 条
  • [41] A Bottom-Up Algorithm for Answering Context-Free Path Queries in Graph Databases
    Santos, Fred C.
    Costa, Umberto S.
    Musicante, Martin A.
    WEB ENGINEERING, ICWE 2018, 2018, 10845 : 225 - 233
  • [42] Reliability Evaluation of Transmission Planetary Gears "bottom-up" approach
    Zivkovic, Predrag
    Milutinovic, Miroslav
    Tica, Milan
    Trifkovic, Spasoje
    Camagic, Ivica
    EKSPLOATACJA I NIEZAWODNOSC-MAINTENANCE AND RELIABILITY, 2023, 25 (01):
  • [43] Efficient goal directed bottom-up evaluation of logic programs
    Codish, M
    JOURNAL OF LOGIC PROGRAMMING, 1999, 38 (03): : 355 - 370
  • [44] RULE ORDERING IN BOTTOM-UP FIXPOINT EVALUATION OF LOGIC PROGRAMS
    RAMAKRISHNAN, R
    SRIVASTAVA, D
    SUDARSHAN, S
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 1994, 6 (04) : 501 - 517
  • [45] A Bottom-Up Approach for the Evaluation of the Flexible Quota of Aggregated Loads
    Favuzza, S.
    Ippolito, M. G.
    Massaro, F.
    Pecoraro, G.
    Zizzo, G.
    2015 IEEE 15TH INTERNATIONAL CONFERENCE ON ENVIRONMENT AND ELECTRICAL ENGINEERING (IEEE EEEIC 2015), 2015, : 542 - 547
  • [46] Top-down and Bottom-up Evaluation Procedurally Integrated
    Warren, David S.
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2018, 18 (3-4) : 706 - 721
  • [47] Evaluation of Different Bottom-up Routes for the Fabrication of Carbon Dots
    Crista, Diana M. A.
    Esteves da Silva, Joaquim C. G.
    da Silva, Luis Pinto
    NANOMATERIALS, 2020, 10 (07) : 1 - 15
  • [48] Mining the Social Media Data for a Bottom-Up Evaluation of Walkability
    Berzi, Christian
    Gorrini, Andrea
    Vizzari, Giuseppe
    TRAFFIC AND GRANULAR FLOW '17, 2019, : 167 - 175
  • [49] Psychometric evaluation of the bottom-up developed Experiencing Grace Scale
    Schellekens, Tine
    Dillen, Annemie
    Toussaint, Loren
    Dewitte, Laura
    Dezutter, Jessie
    ARCHIVE FOR THE PSYCHOLOGY OF RELIGION-ARCHIV FUR RELIGIONSPSYCHOLOGIE, 2025, 47 (01): : 99 - 129
  • [50] Bottom-Up Evaluation of the Methane Budget in Asia and Its Subregions
    Ito, Akihiko
    Patra, Prabir K.
    Umezawa, Taku
    GLOBAL BIOGEOCHEMICAL CYCLES, 2023, 37 (06)