Top-down and Bottom-up Evaluation Procedurally Integrated

04/23/2018
by   David S. Warren, et al.
0

This paper describes how XSB combines top-down and bottom-up computation through the mechanisms of variant tabling and subsumptive tabling with abstraction, respectively. It is well known that top-down evaluation of logical rules in Prolog has a procedural interpretation as recursive procedure invocation (Kowalski 1986). Tabling adds the intuition of short-circuiting redundant computations (Warren 1992) .This paper shows how to introduce into tabled logic program evaluation a bottom-up component, whose procedural intuition is the initialization of a data structure, in which a relation is initially computed and filled, on first demand, and then used throughout the remainder of a larger computation for efficient lookup. This allows many Prolog programs to be expressed fully declaratively, programs which formerly required procedural features, such as assert, to be made efficient. This paper is under consideration for acceptance in "Theory and Practice of Logic Programming (TPLP)".

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/28/2018

Partial Evaluation of Logic Programs in Vector Spaces

In this paper, we introduce methods of encoding propositional logic prog...
research
07/24/2019

A Case for Stale Synchronous Distributed Model for Declarative Recursive Computation

A large class of traditional graph and data mining algorithms can be con...
research
07/19/2019

Enhancing magic sets with an application to ontological reasoning

Magic sets are a Datalog to Datalog rewriting technique to optimize quer...
research
04/26/2018

Constraint-Based Inference in Probabilistic Logic Programs

Probabilistic Logic Programs (PLPs) generalize traditional logic program...
research
08/30/2023

Benchmarking for Integrating Logic Rules with Everything Else

Integrating logic rules with other language features is increasingly sou...
research
06/29/2011

Implementing Human-like Intuition Mechanism in Artificial Intelligence

Human intuition has been simulated by several research projects using ar...
research
11/13/2022

Choice Trees: Representing Nondeterministic, Recursive, and Impure Programs in Coq

This paper introduces Choice Trees (ctrees), a monad for modeling nondet...

Please sign up or login with your details

Forgot password? Click here to reset