Hostname: page-component-cd9895bd7-p9bg8 Total loading time: 0 Render date: 2024-12-26T06:41:14.857Z Has data issue: false hasContentIssue false

Optimization of bound disjunctive queries with constraints

Published online by Cambridge University Press:  31 October 2005

GIANLUIGI GRECO
Affiliation:
DEIS, Università della Calabria, 87030 Rende, Italy (e-mail: ggreco@si.deis.unical.it, greco@si.deis.unical.it, irina@si.deis.unical.it, zumpano@si.deis.unical.it)
SERGIO GRECO
Affiliation:
DEIS, Università della Calabria, 87030 Rende, Italy (e-mail: ggreco@si.deis.unical.it, greco@si.deis.unical.it, irina@si.deis.unical.it, zumpano@si.deis.unical.it)
IRINA TRUBITSYNA
Affiliation:
DEIS, Università della Calabria, 87030 Rende, Italy (e-mail: ggreco@si.deis.unical.it, greco@si.deis.unical.it, irina@si.deis.unical.it, zumpano@si.deis.unical.it)
ESTER ZUMPANO
Affiliation:
DEIS, Università della Calabria, 87030 Rende, Italy (e-mail: ggreco@si.deis.unical.it, greco@si.deis.unical.it, irina@si.deis.unical.it, zumpano@si.deis.unical.it)

Abstract

This paper presents a technique for the optimization of bound queries over disjunctive deductive databases with constraints. The proposed approach is an extension of the well-known Magic-Set technique and is well-suited for being integrated in current bottom-up (stable) model inference engines. More specifically, it is based on the exploitation of binding propagation techniques which reduce the size of the data relevant to answer the query and, consequently, reduces both the complexity of computing a single model and the number of models to be considered. The motivation of this work stems from the observation that traditional binding propagation optimization techniques for bottom-up model generator systems, simulating the goal driven evaluation of top-down engines, are only suitable for positive (disjunctive) queries, while hard problems are expressed using unstratified negation. The main contribution of the paper consists in the extension of a previous technique, defined for positive disjunctive queries, to queries containing both disjunctive heads and constraints (a simple and expressive form of unstratified negation). As the usual way of expressing declaratively hard problems is based on the guess-and-check technique, where the guess part is expressed by means of disjunctive rules and the check part is expressed by means of constraints, the technique proposed here is highly relevant for the optimization of queries expressing hard problems. The value of the technique has been proved by several experiments.

Type
Regular Papers
Copyright
2005 Cambridge University Press

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Footnotes

A preliminary version of this paper was presented at the LPAR'02 Conference (Greco et al. 2002). The second author is also supported by ICAR-CNR.