arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1112.3779cs.PL
收藏

追溯呼叫包含的单次时间戳尝试

Single Time-Stamped Tries for Retroactive Call Subsumption

Flavio Cruz, Ricardo Rocha

摘要:

Tabling是Prolog程序的一种评估策略,其工作原理是将答案存储在表空间中,然后在类似的子目标中使用它们。一些制表引擎使用包含调用,其中确定子目标将消耗来自更一般的子目标的答案,以便减少搜索空间并提高效率。我们设计了一个扩展,名为追溯调用包容(RCS),实现独立于调用顺序的包容调用,从而允许一个更一般的子目标,迫使以前调用的子目标成为回答消费者。对于这个扩展,我们提出了一个新的表空间设计,单时间戳Trie(STST),这是有组织的,使答案共享包容/包容子目标简单而高效。在本文中,我们提出了新的STST表空间的设计,我们讨论了主要的修改,原来的时间戳尝试的方法,通过包容非追溯调用。在实验结果中,与程序,强调新的STST设计的一些不足之处,一些开销可能会被观察到,然而,更现实的程序所取得的结果大大抵消了这些开销。

英文摘要:

Tabling is an evaluation strategy for Prolog programs that works by storing answers in a table space and then by using them in similar subgoals. Some tabling engines use call by subsumption, where it is determined that a subgoal will consume answers from a more general subgoal in order to reduce the search space and increase efficiency. We designed an extension, named Retroactive Call Subsumption (RCS), that implements call by subsumption independently of the call order, thus allowing a more general subgoal to force previous called subgoals to become answer consumers. For this extension, we propose a new table space design, the Single Time Stamped Trie (STST), that is organized to make answer sharing across subsumed/subsuming subgoals simple and efficient. In this paper, we present the new STST table space design and we discuss the main modifications made to the original Time Stamped Tries approach to non-retroactive call by subsumption. In experimental results, with programs that stress some deficiencies of the new STST design, some overheads may be observed, however the results achieved with more realistic programs greatly offset these overheads.

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

↑