Dynamic reordering of alternatives for definite logic programs

被引:2
|
作者
Guo, Hai-Feng [1 ]
Gupta, Gopal [2 ]
机构
[1] Univ Nebraska, Dept Comp Sci, Omaha, NE 68182 USA
[2] Univ Texas Dallas, Dept Comp Sci, Richardson, TX 75083 USA
关键词
Logic programming; Tabled resolution; SLD resolution; Fixed point; DRA resolution; WELL-FOUNDED SEMANTICS; TABULATED RESOLUTION;
D O I
10.1016/j.cl.2008.04.002
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Due to their highly declarative nature and efficiency, tabled logic programming systems have been applied to solving many complex problems. Tabled logic programming is essential for extending traditional logic programming with tabled resolution. In this paper, we propose a new tabled resolution scheme, called dynamic reordering of alternatives (DRA) resolution, for definite logic programs. The scheme keeps track of the type of the subgoals during resolution; if the subgoal in the current resolvent is a variant of a former tabled subgoal, tabled answers are used to resolve the subgoal; otherwise, program clauses are used similar to SLD resolution. Program clauses leading to variant subgoals at runtime are dynamically reordered for further computation until the subgoals are completely evaluated. DRA resolution allows query evaluation to be performed in a depth-first, left-to-right traversal order similar to Prolog-typed SLD resolution, thus yielding a simple technique for incorporating tabled resolution in traditional logic programming systems. We show the correctness of DRA resolution. (C) 2008 Elsevier Ltd. All rights reserved.
引用
收藏
页码:252 / 265
页数:14
相关论文
共 50 条
  • [31] Online dynamic reordering
    Raman, V
    Raman, B
    Hellerstein, JM
    VLDB JOURNAL, 2000, 9 (03): : 247 - 260
  • [32] Propositional dynamic logic of context-free programs and fixpoint logic with chop
    Lange, Martin
    Somla, Rafal
    INFORMATION PROCESSING LETTERS, 2006, 100 (02) : 72 - 75
  • [33] Termination of simply moded logic programs with dynamic scheduling
    Bossi, Annalisa
    Etalle, Sandro
    Rossi, Sabina
    Smaus, Jan-Georg
    ACM Transactions on Computational Logic, 2004, 5 (03) : 470 - 507
  • [34] Uniform Substitution for Dynamic Logic with Communicating Hybrid Programs
    Brieger, Marvin
    Mitsch, Stefan
    Platzer, Andre
    AUTOMATED DEDUCTION, CADE 29, 2023, 14132 : 96 - 115
  • [35] Stochastic Differential Dynamic Logic for Stochastic Hybrid Programs
    Platzer, Andre
    AUTOMATED DEDUCTION - CADA-23, 2011, 6803 : 446 - 460
  • [36] A dynamic logic for the formal verification of java card programs
    Universität Karlsruhe, Institut für Logik, Komplexität und Deduktionssysteme, Karlsruhe
    D-76128, Germany
    Lect. Notes Comput. Sci., 1600, (6-24):
  • [37] Implementing dynamic flowgraph methodology models with logic programs
    Karanta, Ilkka
    PROCEEDINGS OF THE INSTITUTION OF MECHANICAL ENGINEERS PART O-JOURNAL OF RISK AND RELIABILITY, 2013, 227 (03) : 302 - 314
  • [38] Dynamic Programming Algorithms as Products of Weighted Logic Programs
    Cohen, Shay B.
    Simmons, Robert J.
    Smith, Noah A.
    LOGIC PROGRAMMING, PROCEEDINGS, 2008, 5366 : 114 - 129
  • [39] A flexible framework for dynamic and static slicing of logic programs
    Vasconcelos, WW
    PRACTICAL ASPECTS OF DECLARATIVE LANGUAGES, 1999, 1551 : 259 - 274
  • [40] A Navigation Logic for Recursive Programs with Dynamic Thread Creation
    Lakenbrink, Roman
    Mueller-Olm, Markus
    Ohrem, Christoph
    Gutsfeld, Jens
    VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, VMCAI 2024, PT II, 2024, 14500 : 48 - 70