Incremental answer completion in the SLG-WAM

Terrance Swift, Alexandre Miguel Pinto, Luís Moniz Pereira

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

5 Citations (Scopus)

Abstract

The SLG-WAM of XSB Prolog soundly implements the Well-Founded Semantics (WFS) for logic programs, but in a few pathological cases its engine treats atoms as undefined that are true or false in WFS. The reason for this is that the XSB does not implement the SLG Answer Completion operation in its engine, the SLG-WAM - rather Answer Completion must be performed by post-processing the table. This engine-level omission has not proven significant for applications so far, but the need for Answer Completion is becoming important as XSB is more often used to produce well-founded residues of highly non-stratified programs. However, due to its complexity, care must be taken when adding Answer Completion to an engine. In the worst case, the cost of each Answer Completion operation is proportional to the size of a program P, so that the operation must be invoked as rarely as possible, and when invoked the operation must traverse as small a fragment as possible of P. We examine the complexity of Answer Completion; and then describe its implementation and performance in XSB's SLG-WAM such that the invocations of the operation are restricted, and which is limited in scope to Strongly Connected Components within a tabled evaluation's Subgoal Dependency Graph.

Original languageEnglish
Title of host publicationLogic Programming
Subtitle of host publication25th International Conference, ICLP 2009, Proceedings
EditorsDS Warren, PM Hill
Place of PublicationBerlin
PublisherSpringer-Verlag
Pages519-524
Number of pages6
Volume5649
ISBN (Print)3642028454, 9783642028458
DOIs
Publication statusPublished - 2009
EventLogic Programming, 25th International Conference -
Duration: 1 Jan 2009 → …

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume5649 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

ConferenceLogic Programming, 25th International Conference
Period1/01/09 → …

Fingerprint

Dive into the research topics of 'Incremental answer completion in the SLG-WAM'. Together they form a unique fingerprint.

Cite this