skip to main content
10.1145/182591.182602acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
Article
Free Access

Can Datalog be approximated?

Authors Info & Claims
Published:24 May 1994Publication History

ABSTRACT

In this paper, we investigate whether recursive Datalog predicates can be approximated by finite unions of conjunctive queries. We introduce a quantitative notion of error and examine two types of approximation, namely, absolute approximation and relative approximation. We also stipulate that the approximations obey certain qualitative criteria, namely we require them to be upper envelopes or lower envelopes of the Datalog predicate they approximate. We establish that absolute approximation by finite unions of conjunctive queries is not possible, which means that no unbounded Datalog predicate can be approximated by a finite union of conjunctive queries in such a way that the error is bounded uniformly by the same constant on all finite databases. After this, we examine relative approximations, i.e., approximations that guarantee bounds for the error relative to the size of the Datalog predicate under consideration. Although such approximations exist in some cases, we show that for several large and well-studied classes of unbounded Datalog predicates it is not possible to find finite unions of conjunctive queries that satisfy the aforementioned qualitative criteria and have the property that the relative error of the approximation is bounded by a constant. Finally, we consider first-order approximations and obtain sharp negative results for the approximability of the transitive closure query and the cycle query by first-order queries.

References

  1. AP87.Afrati F., Papadimitriou C.It.: The parallel complexity of simple chain queries. Proc. 5th A CM Syrup. on Principles of Database Systems, 1987, pp. 210-213. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. AG89.Ajtai M., Gurevich Y.: DATALOG vs. First- Order Logic. Proc. 30th IEEE Syrup. o# Foundatzons of Computer Sczence, 1989, pp. 142- 146. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. AU79.Aho, A.V., Ullman, J.D.: Universality of data retrieval languages. Proc. 6th A CM Syrup. on Pmnctples of Programming Languages, 1979, pp. 110-117. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Co74.Cook S. A.: An observation of time-storage trade-off, in Journal of Computing and Systems Sciences, Vol 9, pp.308-316, 1974.Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. CGKV88.Cosmadakis S. S., Gambian H., Kanellakis P. C., Vardi M. Y.: Decidable Optimization Problems for Database Logic Programs. Proc. 20th A CM Syrup. on Theory of Computing, pp. 477-490 Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. CM77.Chandra A.K., Merlin P.M., "Optimal Implementation of conjunctive queries in relational databases," Proc. 9th A CM Syrnp. on Theory of Computzng, New York, 1977, pp. 77-90. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. C93.Chaudhuri, S.: Finding Nonrecursive Envelopes for Recursive Predicates. Proc. 12th A CM Syrup. on Pmnczples of Database Systems, Washington D.C., 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Fa75.Fagin, R.: Monadic generalized spectra, Ze#tschmft fiir Math. Logzk, 21(1975), pp. 89- 96.Google ScholarGoogle Scholar
  9. FSV93.Fagin R., Stockmeyer L., Vardi M. Y.: On Monadic NP vs. Monadic co-NP. Proc. 8th IEEE Conf. on Structure #n Complexzty Theory, 1993, pp. 19-30.Google ScholarGoogle ScholarCross RefCross Ref
  10. GMSV87.Gaifman, H., Mairson, H., Sagiv, Y., Vardi M.Y.: Undecidable optimization problems for database logic programs. Proc. 2nd IEEE Syrup. on Logic in Computer Sczence, Ithaca, 1987, pp. 106-115.Google ScholarGoogle Scholar
  11. GJ79.Garey M. R., Johnson D. S.: Computers and lntractabzhty- A Guide to the Theory of NP- Completeness, W. It. Freeman and Co., 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Io86.Ioannides Y. E.: Bounded recursion in deductive databases. Algomthmzca, Vol 1, 1986, pp.361-385.Google ScholarGoogle Scholar
  13. KA89.Kanellakis, P., Abiteboul, S.: Deciding bounded recursion in database logic programs. CoIGACT News 20:4, Fall 1989.Google ScholarGoogle Scholar
  14. KV90.Kolaitis P. G., Vardi M. Y.: On the expressive power of Datalog: tools and a case study. in Proc. 9th A CM Syrup. on Princzples of Database Systems, 1990, pp. 61-71. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. MUV84.Maier, D., Ullman, :I.D., Vardi, M.Y.: On the foundations of the universal relation model. ACM Trans. oR Database Systems 9(1984), pp. 283-308. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Na89.Naughton J. F.: Data independent recursion in deductive databases.: Journal of Computzng and Systems Sczences, Vol 38, 1989, pp. 259- 289.Google ScholarGoogle ScholarCross RefCross Ref
  17. PS82.Papadimitriou C., Steiglitz K.: Comb#natomal Optim#zatzon- Algomthms and Complexity, Prentice Hall, New Jersey, 1982. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. SY81.Sagiv,Y., Yannakakis M.: Equivalences among Relational Expressions with the union and difference operators. JACM, 27:4, pp 633-655. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. U89.Ullman, :I.D.: Prznczples of Database and Knowledge Base Systems- Vol. 2, Computer Science Press, 1989. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Va82.Vardi, M.Y.: The complexity of relational query languages. Proc. ldth A CM Syrup. on Theory of Computzn9, San Francisco, 1982, pp. I37-146. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Can Datalog be approximated?

                Recommendations

                Comments

                Login options

                Check if you have access through your login credentials or your institution to get full access on this article.

                Sign in
                • Published in

                  cover image ACM Conferences
                  PODS '94: Proceedings of the thirteenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems
                  May 1994
                  313 pages
                  ISBN:0897916425
                  DOI:10.1145/182591
                  • Chairman:
                  • Victor Vianu

                  Copyright © 1994 ACM

                  Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

                  Publisher

                  Association for Computing Machinery

                  New York, NY, United States

                  Publication History

                  • Published: 24 May 1994

                  Permissions

                  Request permissions about this article.

                  Request Permissions

                  Check for updates

                  Qualifiers

                  • Article

                  Acceptance Rates

                  PODS '94 Paper Acceptance Rate28of117submissions,24%Overall Acceptance Rate642of2,707submissions,24%

                PDF Format

                View or Download as a PDF file.

                PDF

                eReader

                View online with eReader.

                eReader