Skip to main content

Can Filters do Magic for Deductive Databases?

  • Conference paper
ALPUK 91

Part of the book series: Workshops in Computing ((WORKSHOPS COMP.))

  • 30 Accesses

Abstract

The magic sets method [Bancilhon et al 86, Been & Ramakrishnan 87] is one of the most popular methods of recursive query processing for deductive databases. The magic sets method and its variants may be regraded as computing filters for restricting bottom-up evaluation of rules and then applying these filters to various rules. There is a tradeoff between the simplicity of the filters and their effectiveness. The magic sets method sacrifices the simplicity of the filters for their effectiveness. [Sippu & S-Soininen 88] describes a method which always keeps the filter computation much simpler than the processing of the query at the expense of filters which can be much less tight than the magic predicates. [Sagiv 90] describes a method of envelopes which has the advantage that the size of an envelope is much smaller than the size of magic predicates. In this paper, we approach this tradeoff from a structural perspective. We show that under certain conditions, which depend on the structure of the rules, it is possible to use filters which are much less in size than magic predicates, while preserving the effectiveness of magic predicates. Thus, our filters are smaller than magic predicates, while the restriction imposed by them is the same as that imposed by the magic predicates.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Bancilhon, F., Maier, D., Sagiv, Y. and Ullman, J. D. “Magic sets and other strange ways to implement logic programs,” ACM Symp. PODS, 1986, pp. 1–15.

    Google Scholar 

  2. Beeri, C. and Ramakrishnan, R. “On the power of magic,” ACM Symp. PODS, 1987, pp. 269–283.

    Google Scholar 

  3. Berge, C. Graphs and Hypergraphs, North Holland, 1973.

    MATH  Google Scholar 

  4. Bry, F. “Query evaluation in recursive databases: top-down and bottom-up reconciled,” Proc. 1st Int. Conf. Deductive and Object-Oriented Databases, Japan, 1989, pp. 20–39.

    Google Scholar 

  5. Kerisit, J-M. “A relational approach to logic programming: the extended Alexander method,” Theoretical Computer Science, 69:1(1989), 55–68.

    Article  MathSciNet  MATH  Google Scholar 

  6. Kifer, M. and Lozinskii, B. L. “A framework for an efficient implementation of deductive databases,” Proc. Advanced Database Symp., Japan, 1986, pp. 109–116.

    Google Scholar 

  7. Ramakrishnan, R. “Magic templates: a spellbinding approach logic programs,” Proc. ICLP, 1988, pp. 140–159.

    Google Scholar 

  8. Sagiv, Y. “Is there anything better than magic?,” Proc. North Amer. Conf. Logic Programming, 1990, pp. 235–254.

    Google Scholar 

  9. Seki, H. “On the power of Alexander templates,” ACM Symp. PODS, 1989, pp. 150–159.

    Google Scholar 

  10. Sippu, S. and Soisalon-Soininen, E. “An optimization strategy for recursive queries in logic databases,” IEEE Conf. Data Engg., 1988, pp. 470–477.

    Google Scholar 

  11. Ullman, J. D. Principles of Database and Knowledge-Base Systems, vol. II, Computer Science Press, MD, 1989.

    Google Scholar 

  12. Vielle, L. “Recursive query processing: the power of logic,” Theoretical Computer Science, 69:1(1989), 1–53.

    Article  MathSciNet  Google Scholar 

  13. Yim, C-H. Toward an Efficient Query Prcessor for a Deductive Database System, M.Sc. Thesis, Dept. of Computer Science, Concordia University, Montreal, March 1991.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1992 Springer-Verlag London

About this paper

Cite this paper

Lakshmanan, V.S., Yim, C.H. (1992). Can Filters do Magic for Deductive Databases?. In: Wiggins, G.A., Mellish, C., Duncan, T. (eds) ALPUK 91. Workshops in Computing. Springer, London. https://doi.org/10.1007/978-1-4471-3546-3_10

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-3546-3_10

  • Publisher Name: Springer, London

  • Print ISBN: 978-3-540-19734-8

  • Online ISBN: 978-1-4471-3546-3

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics