期刊文献+

PROLOG程序部分演绎的一种新方法

A New Method of Partial Deduction of Prolog Programs
下载PDF
导出
摘要 提出一个新的基于程序变换的Prolog程序部分演绎的方法.该方法以程序-目标对(P_0,Q_0)为输入,经过一系列程序变换后终止,输出结果程序-目标对(P_n,Q_n),该方法保证结果程序一目标对(P_n,Q_n)和输入程序-目标对(P_0,Q_0)计算等价,并且程序P_n解目标Q_n比程序P_0.解目标Q_0效率更高.本文提出的方法已经实现.文中给出了3个部分演绎实例,并且与Benkreimi中提出的Prolog程序部分演绎的方法的结果进行了比较,说明我们的部分演绎方法更优. This paper presents a new method of partial deduction of Prologprograms. The method inputs a program-goal pair ( P0, Q0) and outputs a resultant program-goal pair( Pn, Qn) . The method guarantees termination, and keeps the computational equivalence of the program-goal pairs(P0, Q0) and( Pn, Qn). Pn in solving Qn is more efficient than P0 in solving Q0. We have implemented a partial evaluator based on the method. Three running examples of partial deduction are given, and the partially evaluated results are compared with those resulted from the partial deduction method put forth by Benkeimi. It shows that our partial Reduction method is better.
作者 陶意 刘椿年
出处 《北京工业大学学报》 CAS CSCD 1997年第3期51-61,共11页 Journal of Beijing University of Technology
基金 国家自然科学基金 863计划资助项目
关键词 逻辑程序设计 PROLOG程序 部分演绎 程序设计 logic programming, Prolog program, partial deduction (partial evaluation)
  • 相关文献

参考文献2

共引文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部