skip to main content
10.1145/888251.888277acmconferencesArticle/Chapter ViewAbstractPublication PagesppdpConference Proceedingsconference-collections
Article

Efficient fixpoint computation in linear tabling

Published:27 August 2003Publication History

ABSTRACT

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.

References

  1. Bancilhon, F., and Ramakrishnan, R. An amateur's introduction to recursive query processing strategies. Proc. of ACM SIGMOD '86 (May 28-30, 1986), 16--52.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Bol, R. N., and Degerstedt, L. Tabulated resolution for the well-founded semantics. Journal of Logic Programming 34, 2 (Feb. 1998), 67--109.]]Google ScholarGoogle ScholarCross RefCross Ref
  3. Chen, W., and Warren, D. S. Tabled evaluation with delaying for general logic programs. Journal of the ACM 43, 1 (Jan. 1996), 20--74.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Demoen, B., and Sagonas, K. CAT: The copying approach to tabling. LNCS (PLILP) 1490 (1998), 21--35.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Demoen, B., and Sagonas, K. CHAT: The copy-hybrid approach to tabling. LNCS (PADL) 1551 (1999), 106--121.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Freire, J., Swift, T., and Warren, D. S. Beyond depth-first: Improving tabled logic programs through alternative scheduling strategies. LNCS (PLILP) 1140 (1996), 243--257.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Guo, H.-F., and Gupta, G. A simple scheme for implementing tabled logic programming systems based on dynamic reordering of alternatives. LNCS (ICLP) 2237 (2001), 181--195.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Lloyd, J. W. Foundation of Logic Programming, 2 ed. Springer-Verlag, 1988.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Michie, D. "memo" functions and machine learning. Nature (Apr. 1968), 19--22.]]Google ScholarGoogle Scholar
  10. Przymusinski, T. C. Every logic program has a natural stratification and an iterated least fixed point model. In PODS '89. Proceedings of the Eighth ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, March 29--31, 1989, Philadelphia, PA (1989), ACM, Ed., ACM Press, pp. 11--21.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Ramakrishnan, C. Model checking with tabled logic programming. In ALP News Letter (2002), ALP.]]Google ScholarGoogle Scholar
  12. Rocha, R., Silva, F., and Costa, V. S. On a tabling engine that can exploit or-parallelism. LNCS (ICLP) 2237 (2001), 43--58.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Sagonas, K., and Swift, T. An abstract machine for tabled execution of fixed-order stratified logic programs. ACM Transactions on Programming Languages and Systems 20, 3 (1 May 1998), 586--634.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Shen, Y., Yuan, L., You, J., and Zhou, N. Linear tabulated resolution based on Prolog control strategy. Theory and Practice of Logic Programming (TPLP) 1, 1 (Feb. 2001), 71--103.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Tamaki, H., and Sato, T. OLD resolution with tabulation. In Proceedings of the Third International Conference on Logic Programming (London, 1986), E. Shapiro, Ed., Lecture Notes in Computer Science, Springer-Verlag, pp. 84--98.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Ullman, J. D. Database and Knowledge-Base Systems, vol. 1 & 2. Computer Science Press, 1988.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Uratani, N., Takezawa, T., Matsuo, H., and Morita, C. ATR integrated speech and language database. Technical Report TR-IT-0056, ATR Interpreting Telecommunications Research Laboratories, 1994. In Japanese.]]Google ScholarGoogle Scholar
  18. Warren, D. S. Memoing for logic programs. Comm. of the ACM, Special Section on Logic Programming 35, 3 (Mar. 1992), 93.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Zhou, N., Sato, T., and Hasida, K. Toward a high-performance system for symbolic and statistical modeling. In IJCAI Workshop on Learning Statistical Models from Relational Data (2003), p. to appear.]]Google ScholarGoogle Scholar
  20. Zhou, N.-F. Parameter passing and control stack management in Prolog implementation revisited. ACM Transactions on Programming Languages and Systems 18, 6 (Nov. 1996), 752--779.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. Zhou, N.-F., Shen, Y.-D., Yuan, L.-Y., and You, J.-H. Implementation of a linear tabling mechanism. LNCS (PADL) 1753 (2000), 109--123.]] Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Efficient fixpoint computation in linear tabling

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      PPDP '03: Proceedings of the 5th ACM SIGPLAN international conference on Principles and practice of declaritive programming
      August 2003
      292 pages
      ISBN:1581137052
      DOI:10.1145/888251

      Copyright © 2003 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 27 August 2003

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

      Acceptance Rates

      PPDP '03 Paper Acceptance Rate24of48submissions,50%Overall Acceptance Rate230of486submissions,47%

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader