Subset-logic programs and their implementation

Citation
B. Jayaraman et K. Moon, Subset-logic programs and their implementation, J LOGIC PR, 42(2), 2000, pp. 71-110
Citations number
35
Categorie Soggetti
Computer Science & Engineering
Journal title
JOURNAL OF LOGIC PROGRAMMING
ISSN journal
07431066 → ACNP
Volume
42
Issue
2
Year of publication
2000
Pages
71 - 110
Database
ISI
SICI code
0743-1066(200002)42:2<71:SPATI>2.0.ZU;2-5
Abstract
This paper discusses the design and implementation of a set-oriented logic programming paradigm, called subset-logic programming. Subset-logic program s are built up of three kinds of program clauses: subset, equational and re lational clauses. Using these clauses, we can program solutions to a broad range of problems of interest in logic programming and deductive databases. In previous research, we developed the implementation of subset and equati onal program clauses. This paper substantially extends that work, and focus es on the more expressive paradigm of subset and relational clauses. This p aradigm supports setof operations, transitive closures, monotonic aggregati on as well as incremental and lazy enumeration of sets. Although the subset -logic paradigm differs substantially from that of Prolog, we show that few additional changes are needed to the Warren Abstract Machine (WAM) to impl ement the paradigm and that these changes blend well with the overall machi nery of the WAM. A central feature in the implementation of subset-logic pr ograms is that of a monotonic memo-table, i.e., a memo-table whose entries can monotonically grow or shrink in an appropriate partial order. We presen t in stages the paradigm of subset-logic progams, showing the effect of eac h feature on the implementation. The implementation has been completed, and we present performance figures to show the efficiency and costs of memoiza tion. Our conclusion is that the monotonic memo-tables are a practical tool for implementing a set-oriented logic programming language. We also compar e this system with other closely related systems, especially XSB and CORAL. (C) 2000 Elsevier Science Inc. All rights reserved.