Hostname: page-component-745bb68f8f-g4j75 Total loading time: 0 Render date: 2025-02-11T20:22:57.517Z Has data issue: false hasContentIssue false

Greedy algorithms in Datalog

Published online by Cambridge University Press:  25 June 2001

SERGIO GRECO
Affiliation:
Dipartimento Elettronica Informatica e Sistemistica, Università della Calabria, 87030 Rende, Italy; greco@si.deis.unical.it
CARLO ZANIOLO
Affiliation:
Computer Science Department, University of California at Los Angeles, Los Angeles, CA 90024, USA; zaniolo@cs.ucla.edu
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the ‘Save PDF’ action button.

In the design of algorithms, the greedy paradigm provides a powerful tool for solving efficiently classical computational problems, within the framework of procedural languages. However, expressing these algorithms within the declarative framework of logic-based languages has proven a difficult research challenge. In this paper, we extend the framework of Datalog-like languages to obtain simple declarative formulations for such problems, and propose effective implementation techniques to ensure computational complexities comparable to those of procedural formulations. These advances are achieved through the use of the choice construct, extended with preference annotations to effect the selection of alternative stable-models and nondeterministic fixpoints. We show that, with suitable storage structures, the differential fixpoint computation of our programs matches the complexity of procedural algorithms in classical search and optimization problems.

Type
Research Article
Copyright
© 2001 Cambridge University Press