Efficient fixpoint computation in linear tabling
Neng‐Fa Zhou, Taisuke Sato · 2003
Early resolution mechanisms proposed for tabling such as OLDT rely on suspension and resumption of subgoals to compute fixpoints. Recently, a new resolution framework called linear tabling has emerged as an alternative tabling method. The idea of linear tabling is to use iterative computation rather than suspension to compute fixpoints. Although linear tabling is simple, easy to implement, and superior in space efficiency, the current implementations are several times slower than XSB, the state-of-the-art implementation of OLDT, due to re-evaluation of looping subgoals. In this paper, we present a new linear tabling method and propose several optimization techniques for fast computation of fixpoints. The optimization techniques significantly improve the performance by avoiding redundant evaluation of subgoals, re-application of clauses, and reproduction of answers in iterative computation. Our implementation of the method in B-Prolog not only consumes an order of magnitude less stack space than XSB for some programs but also compares favorably well with XSB in speed.
Cited by 34 works. doi:10.1145/888251.888277
Authors
References
- Principles of database and knowledge-base systems, Vol. I
- Foundations of logic programming; (2nd extended ed.)
- An amateur's introduction to recursive query processing strategies
- “Memo” Functions and Machine Learning
- An amateur's introduction to recursive query processing strategies
- OLD resolution with tabulation
- Every logic program has a natural stratification and an iterated least fixed point model
- Tabled evaluation with delaying for general logic programs
- Memoing for logic programs
- An abstract machine for tabled execution of fixed-order stratified logic programs