加速逻辑推理的分治子目标排序算法
The Divide-and-Conquer Subgoal-Ordering Algorithm for Speeding up Logic Inference
摘要:
通常将程序看作逻辑和控制的结合:逻辑部分定义程序必须做什么,控制部分--如何做。逻辑编程范式的发展意图是将逻辑与控制分离。近来,对逻辑程序的控制的自动生成进行了广泛的研究。只有少数的这些作品考虑了自动生成控制的问题,以提高效率的逻辑程序。在本文中,我们提出了一种新的算法自动寻找最低成本的子目标排序。该算法使用分治策略。给定的子目标集被划分为更小的集合,基于自由变量的同现。子集递归排序和合并,产生一个可证明的最佳顺序。我们通过实验证明了该算法的实用性,在几个领域进行测试,并讨论了其与其他现有方法合作的可能性。
英文摘要:
It is common to view programs as a combination of logic and control: the logic part defines what the program must do, the control part -- how to do it. The Logic Programming paradigm was developed with the intention of separating the logic from the control. Recently, extensive research has been conducted on automatic generation of control for logic programs. Only a few of these works considered the issue of automatic generation of control for improving the efficiency of logic programs. In this paper we present a novel algorithm for automatic finding of lowest-cost subgoal orderings. The algorithm works using the divide-and-conquer strategy. The given set of subgoals is partitioned into smaller sets, based on co-occurrence of free variables. The subsets are ordered recursively and merged, yielding a provably optimal order. We experimentally demonstrate the utility of the algorithm by testing it in several domains, and discuss the possibilities of its cooperation with other existing methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。