MAGIC SETS AND OTHER STRANGE WAYS TO IMPLEMENT LOGIC PROGRAMS

Francois Bancilhon, David Maier, Yehoshua Sagiv, Jeffrey D. Ullman

Research output: Contribution to conferencePaperpeer-review

447 Scopus citations

Abstract

Several methods for implementing database queries expressed as logical rules are given and they are compared for efficiency. One method, called "magic sets, " is a general algorithm for rewriting logical rules so that they may be implemented bottom-up (= forward chaining) in a way that cuts down on the irrelevant facts that are generated. The advantage of this scheme is that by working bottom-up, we can take advantage of efficient methods for doing massive joins. Two other methods are ad hoc ways of implementing "linear" rules, i.e., rules where at most one predicate in any body is recursive. These methods are introduced not only because they could be the right way to implement certain queries, but because they illustrate the difficulty of proving anything concrete about optimal ways to evaluate queries.

Original languageEnglish
Pages1-15
Number of pages15
DOIs
StatePublished - 1986
Externally publishedYes
Event5th ACM SIGACT-SIGMOD Symposium on Principles of Database Systems, PODS 1986 - Cambridge, United States
Duration: 24 Mar 198626 Mar 1986

Conference

Conference5th ACM SIGACT-SIGMOD Symposium on Principles of Database Systems, PODS 1986
Country/TerritoryUnited States
CityCambridge
Period24/03/8626/03/86

Bibliographical note

Publisher Copyright:
© 1986.

Fingerprint

Dive into the research topics of 'MAGIC SETS AND OTHER STRANGE WAYS TO IMPLEMENT LOGIC PROGRAMS'. Together they form a unique fingerprint.

Cite this