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

子项的全局Trie

Global Trie for Subterms

João Raimundo, Ricardo Rocha

摘要:

实现高效制表系统的一个关键组成部分是表空间的设计。用于表示表的最流行和最成功的数据结构是基于两级trie数据结构,其中一个trie级存储表中的子目标调用,另一个存储计算的答案。全局Trie(GT)是一种替代的表空间组织,其设计意图是减少表的存储器使用,即通过将项存储在全局Trie中,从而防止相同项在不同Trie数据结构中的重复表示。在本文中,我们提出了一个扩展GT组织,命名为全局Trie for Subterms(GT-ST),其中术语参数中的复合子项表示为GT中的唯一条目。使用YapTab制表系统的实验结果表明,GT-ST支持有可能实现显着减少内存使用,对于术语参数中复合子项增加的程序,而不损害其他程序的执行时间。

英文摘要:

A critical component in the implementation of an efficient tabling system is the design of the table space. The most popular and successful data structure for representing tables is based on a two-level trie data structure, where one trie level stores the tabled subgoal calls and the other stores the computed answers. The Global Trie (GT) is an alternative table space organization designed with the intent to reduce the tables's memory usage, namely by storing terms in a global trie, thus preventing repeated representations of the same term in different trie data structures. In this paper, we propose an extension to the GT organization, named Global Trie for Subterms (GT-ST), where compound subterms in term arguments are represented as unique entries in the GT. Experiments results using the YapTab tabling system show that GT-ST support has potential to achieve significant reductions on memory usage, for programs with increasing compound subterms in term arguments, without compromising the execution time for other programs.

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

↑