z-logo
open-access-imgOpen Access
Terminating Evaluation of Logic Programs with Finite Three-Valued Models
Author(s) -
Fabrizio Riguzzi,
Terrance Swift
Publication year - 2014
Publication title -
acm transactions on computational logic
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.593
H-Index - 52
eISSN - 1557-945X
pISSN - 1529-3785
DOI - 10.1145/2629337
Subject(s) - bounded function , computer science , logic program , answer set programming , programming language , abstraction , theoretical computer science , class (philosophy) , term (time) , set (abstract data type) , equivalence (formal languages) , logic programming , discrete mathematics , mathematics , algorithm , artificial intelligence , mathematical analysis , philosophy , physics , epistemology , quantum mechanics
As evaluation methods for logic programs have become more sophisticated, the classes of programs for whichtermination can be guaranteed have expanded. From the perspective of answer set programs that includefunction symbols, recent work has identified classes for which grounding routines can terminate either onthe entire program [Calimeri et al. 2008] or on suitable queries [Baselice et al. 2009]. From the perspectiveof tabling, it has long been known that a tabling technique called subgoal abstraction provides good termination properties for definite programs [Tamaki and Sato 1986], and this result was recently extendedto stratified programs via the class of bounded term-size programs [Riguzzi and Swift 2013]. In this paperwe provide a formal definition of tabling with subgoal abstraction resulting in the SLGSA algorithm. Moreover, we discuss a declarative characterization of the queries and programs for which SLGSA terminates. Wecall this class strongly bounded term-size programs and show its equivalence to programs with finite wellfounded models. For normal programs strongly bounded term-size programs strictly includes the finitelyground programs of [Calimeri et al. 2008]. SLGSA has an asymptotic complexity on strongly bounded termsize programs equal to the best known and produces a residual program that can be sent to an answer setprogramming system. Finally, we describe the implementation of subgoal abstraction within the SLG-WAMof XSB and provide performance results

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom