Compact lists for tabled evaluation

  • Authors:
  • João Raimundo;Ricardo Rocha

  • Affiliations:
  • CRACS S INESC-Porto LA, Faculty of Sciences, University of Porto, Porto, Portugal;CRACS S INESC-Porto LA, Faculty of Sciences, University of Porto, Porto, Portugal

  • Venue:
  • PADL'10 Proceedings of the 12th international conference on Practical Aspects of Declarative Languages
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

A critical component in the implementation of an efficient tabling system is the design of the data structures and algorithms to access and manipulate tabled data. Arguably, the most successful data structure for tabling is tries, which is regarded as a very compact and efficient data structure for term representation. Despite these good properties, we found that, for list terms, we can design even more compact and efficient representations. We thus propose a new representation of list terms for tries that avoids the recursive nature of the WAM representation of list terms in which tries are based. Our experimental results using the YapTab tabling system show a significant reduction in the memory usage for the trie data structures and considerable gains in the running time for storing and loading list terms.