...
首页> 外文期刊>Theory and Practice of Logic Programming >Chain programs for writing deterministic metainterpreters
【24h】

Chain programs for writing deterministic metainterpreters

机译:用于编写确定性元解释器的链程序

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

摘要

Many metainterpreters found in the logic programming literature are nondeterministic in the sense that the selection of program clauses is not determined. Examples are the familiar 'demo' and 'vanilla' metainterpreters. For some applications this nondeterminism is convenient. In some cases, however, a deterministic metainterpreter, having an explicit selection of clauses, is needed. Such cases include (1) conversion of OR parallelism into AND parallelism for 'committed-choice' processors, (2) logic-based, imperative-language implementation of search strategies, and (3) simulation of bounded-resource reasoning. Deterministic metainterpreters are difficult to write because the programmer must be concerned about the set of unifiers of the children of a node in the derivation tree. We argue that it is both possible and advantageous to write these metainterpreters by reasoning in terms of object programs converted into a syntactically restricted form that we call 'chain' form, where we can forget about unification, except for unit clauses. We give two transformations converting logic programs into chain form, one for 'moded' programs (implicit in two existing exhaustive-traversal methods for committed-choice execution), and one for arbitrary definite programs. As illustrations of our approach we show examples of the three applications mentioned above.
机译:在逻辑程序设计文献中发现的许多元解释器在确定程序子句的选择不确定的意义上是不确定的。例如熟悉的“演示”和“香草”元解释器。对于某些应用程序,这种不确定性很方便。但是,在某些情况下,需要具有明确选择子句的确定性元解释器。这种情况包括(1)将“选择的”处理器的OR并行性转换为AND并行性;(2)基于逻辑,命令式语言的搜索策略实现;以及(3)有限资源推理的仿真。确定性元解释器很难编写,因为程序员必须关注派生树中节点子级的统一子集。我们认为,通过将目标程序转换为句法上受限制的形式(我们称为“链”形式)进行推理来编写这些元解释器既可能又有利,在这种情况下我们可以忘记除单位子句以外的统一形式。我们给出了两种将逻辑程序转换成链形式的转换,一种用于“修改过的”程序(隐含在两个现有的穷举遍历方法中,用于执行承诺选择),一种用于任意确定程序。作为我们方法的说明,我们显示了上述三个应用程序的示例。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号