arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1107.5030cs.LO
收藏

基于线性组合策略的逻辑程序表格求值

On Combining Linear-Based Strategies for Tabled Evaluation of Logic Programs

Miguel Areias, Ricardo Rocha

摘要:

表求值是一种公认的、功能强大的技术,它克服了传统Prolog系统在处理递归和冗余子计算方面的局限性。我们可以区分两个主要类别的制表机制:基于悬浮的制表和线性制表。虽然基于挂起的机制通常被认为获得更好的结果,但它们具有更多的存储空间需求,并且比线性制表机制更复杂和更难实现。可以说,SLDT和RSDT策略是标准线性表格评估的两个最成功的扩展。在这项工作中,我们提出了一个新的战略,命名为DRS,我们提出了一个框架,顶部的雅普系统,支持所有这三个战略的组合。我们的实现共享底层执行环境和用于在Yap中实现制表的大多数数据结构。因此,我们认为,所有这些共同的特点,使我们能够在这些不同的线性制表策略之间进行第一次和公平的比较,因此,更好地了解各自的优点和缺点,当单独使用或与其他组合。

英文摘要:

Tabled evaluation is a recognized and powerful technique that overcomes some limitations of traditional Prolog systems in dealing with recursion and redundant sub-computations. We can distinguish two main categories of tabling mechanisms: suspension-based tabling and linear tabling. While suspension-based mechanisms are considered to obtain better results in general, they have more memory space requirements and are more complex and harder to implement than linear tabling mechanisms. Arguably, the SLDT and DRA strategies are the two most successful extensions to standard linear tabled evaluation. In this work, we propose a new strategy, named DRS, and we present a framework, on top of the Yap system, that supports the combination of all these three strategies. Our implementation shares the underlying execution environment and most of the data structures used to implement tabling in Yap. We thus argue that all these common features allows us to make a first and fair comparison between these different linear tabling strategies and, therefore, better understand the advantages and weaknesses of each, when used solely or combined with the others.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑