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 条
  • [21] Propositional dynamic logic with recursive programs
    Loeding, Christof
    Lutz, Carsten
    Serre, Olivier
    JOURNAL OF LOGIC AND ALGEBRAIC PROGRAMMING, 2007, 73 (1-2): : 51 - 69
  • [22] Dynamic quantum logic for quantum programs
    Brunet, O
    Jorrand, P
    INTERNATIONAL JOURNAL OF QUANTUM INFORMATION, 2004, 2 (01) : 45 - 54
  • [24] A dynamic logic for deductive verification of concurrent programs
    Beckert, Bernhard
    Klebanov, Vladimir
    SEFM 2007: FIFTH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND FORMAL METHODS, PROCEEDINGS, 2007, : 141 - +
  • [25] Static and dynamic slicing of constraint logic programs
    Szilágyi G.
    Gyimóthy T.
    Małuszyński J.
    Automated Software Engineering, 2002, 9 (1) : 41 - 65
  • [26] SEMANTICS OF LOOPING PROGRAMS IN PROPOSITIONAL DYNAMIC LOGIC
    BERMAN, F
    MATHEMATICAL SYSTEMS THEORY, 1982, 15 (04): : 285 - 294
  • [27] FLOW-ANALYSIS OF DYNAMIC LOGIC PROGRAMS
    DEBRAY, SK
    JOURNAL OF LOGIC PROGRAMMING, 1989, 7 (02): : 149 - 176
  • [28] MULTIPLE PROPOSITIONAL DYNAMIC LOGIC OF PARALLEL PROGRAMS
    DANECKI, R
    LECTURE NOTES IN COMPUTER SCIENCE, 1988, 324 : 240 - 248
  • [29] A Dynamic Logic for Unstructured Programs with Embedded Assertions
    Ulbrich, Mattias
    FORMAL VERIFICATION OF OBJECT-ORIENTED SOFTWARE, 2011, 6528 : 168 - 182
  • [30] Online dynamic reordering
    Vijayshankar Raman
    Bhaskaran Raman
    Joseph M. Hellerstein
    The VLDB Journal, 2000, 9 : 247 - 260