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 条
  • [1] STRATIFICATION OF DEFINITE CLAUSE PROGRAMS AND OF GENERAL LOGIC PROGRAMS
    STEPANKOVA, O
    STEPANEK, P
    LECTURE NOTES IN COMPUTER SCIENCE, 1990, 440 : 396 - 408
  • [2] PARTIAL DEDUCTION OF UPDATABLE DEFINITE LOGIC PROGRAMS
    BENKERIMI, K
    SHEPHERDSON, JC
    JOURNAL OF LOGIC PROGRAMMING, 1994, 18 (01): : 1 - 26
  • [3] COMPUTING DEFINITE LOGIC PROGRAMS BY PARTIAL INSTANTIATION
    KAGAN, V
    NERODE, A
    SUBRAHMANIAN, VS
    ANNALS OF PURE AND APPLIED LOGIC, 1994, 67 (1-3) : 161 - 182
  • [4] Complexities of homomorphism and isomorphism for definite logic programs
    Xu, DY
    Tao, ZH
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2005, 20 (06) : 758 - 762
  • [5] Complexities of Homomorphism and Isomorphism for Definite Logic Programs
    Dao-Yun Xu
    Zhi-Hong Tao
    Journal of Computer Science and Technology, 2005, 20 : 758 - 762
  • [6] An Efficient Implementation of Linear Tabling Based on Dynamic Reordering of Alternatives
    Areias, Miguel
    Rocha, Ricardo
    PRACTICAL ASPECTS OF DECLARATIVE LANGUAGES, PROCEEDINGS, 2010, 5937 : 279 - +
  • [7] Elimination of Local Variables from Definite Logic Programs
    Alvez, Javier
    Lucio, Paqui
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2005, 137 (01) : 5 - 24
  • [8] An unfold/fold transformation framework for definite logic programs
    Roychoudhury, A
    Kumar, KN
    Ramakrishnan, CR
    Ramakrishnan, IV
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2004, 26 (03): : 464 - 509
  • [9] On the Guidance of Reversible Logic Synthesis by Dynamic Variable Reordering
    Feinstein, David Y.
    Thornton, Mitchell A.
    ISMVL: 2009 39TH IEEE INTERNATIONAL SYMPOSIUM ON MULTIPLE-VALUED LOGIC, 2009, : 132 - +
  • [10] dLι: Definite Descriptions in Differential Dynamic Logic
    Bohrer, Brandon
    Fernandez, Manuel
    Platzer, Andre
    AUTOMATED DEDUCTION, CADE 27, 2019, 11716 : 94 - 110