首页> 外文期刊>Computer languages >Dynamic reordering of alternatives for definite logic programs
【24h】

Dynamic reordering of alternatives for definite logic programs

机译:确定逻辑程序的替代方案的动态重新排序

获取原文
获取原文并翻译 | 示例

摘要

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.
机译:由于具有高度声明性和效率,表逻辑编程系统已用于解决许多复杂问题。表逻辑编程对于以表分辨率扩展传统逻辑编程至关重要。在本文中,我们为确定逻辑程序提出了一种新的表解析方案,称为动态替代方案(DRA)解析。该方案在解决过程中跟踪子目标的类型;如果当前解决方案中的子目标是先前列出的子目标的变体,则使用表中的答案来解析该子目标;否则,将使用类似于SLD解析的程序子句。在运行时导致变量子目标的程序子句会动态重新排序,以进行进一步的计算,直到对子目标进行了完全评估。 DRA分辨率允许以类似于Prolog类型的SLD分辨率的深度优先,从左到右的遍历顺序执行查询评估,从而产生了一种简单的技术,用于将表式分辨率合并到传统逻辑编程系统中。我们展示了DRA分辨率的正确性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号