首页> 外文期刊>Higher-order and symbolic computation >Derivation of Efficient Logic Programs by Specialization and Reduction of Nondeterminism
【24h】

Derivation of Efficient Logic Programs by Specialization and Reduction of Nondeterminism

机译:通过专业化和减少不确定性推导高效逻辑程序

获取原文
       

摘要

Program specialization is a program transformation methodology which improves program efficiency by exploiting the information about the input data which are available at compile time. We show that current techniques for program specialization based on partial evaluation do not perform well on nondeterministic logic programs. We then consider a set of transformation rules which extend the ones used for partial evaluation, and we propose a strategy for guiding the application of these extended rules so to derive very efficient specialized programs. The efficiency improvements which sometimes are exponential, are due to the reduction of nondeter-minism and to the fact that the computations which are performed by the initial programs in different branches of the computation trees, are performed by the specialized programs within single branches. In order to reduce nondeterminism we also make use of mode information for guiding the unfolding process. To exemplify our technique, we show that we can automatically derive very efficient matching programs and parsers for regular languages. The derivations we have performed could not have been done by previously known partial evaluation techniques.
机译:程序专业化是一种程序转换方法,它通过利用有关在编译时可用的输入数据的信息来提高程序效率。我们表明,当前基于部分评估的程序专业化技术在不确定的逻辑程序上效果不佳。然后,我们考虑了一组转换规则,这些规则对用于部分评估的规则进行了扩展,并提出了一种策略来指导这些扩展规则的应用,从而得出非常有效的专业程序。效率的提高有时是指数级的,这是由于减少了不确定性,以及由于由计算树的不同分支中的初始程序执行的计算是由单个分支内的专用程序执行的事实。为了减少不确定性,我们还利用模式信息来指导展开过程。为了说明我们的技术,我们展示了我们可以自动派生非常有效的常规语言匹配程序和解析器。我们执行的推导无法通过先前已知的部分评估技术完成。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号