skip to main content
10.1145/1376916.1376959acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
research-article

Tree-width and functional dependencies in databases

Published:09 June 2008Publication History

ABSTRACT

Conjunctive query (CQ) evaluation on relational databases is NP-complete in general. Several restrictions, like bounded tree-width and bounded hypertree-width, allow polynomial time evaluations.We extend the framework in the presence of functional dependencies. Our exteAnded CQ evaluation problem has a concise equivalent formulation in terms of the homomorphism problem (HOM) for non-relational structures. We introduce the notions of "closure tree-width" and "hyperclosure tree-width" for arbitrary structures, and we prove that HOM (and hence CQ) restricted to bounded (hyper)closure tree-width becomes tractable. There are classes of structures with bounded closure tree-width but unbounded tree-width. Similar statements hold for hyperclosure tree-width and hypertree-width, and for hyperclosure tree-width and closure tree-width.

It follows from a result by Gottlob, Miklós, and Schwentick that for fixed k ≥ 2, deciding whether a given structure has hyperclosure tree-width at most k, is NP-complete. We prove an analogous statement for closure tree-width. Nevertheless, for given k we can approximate k-bounded closure tree-width in polynomial time.

References

  1. I. Adler. Width functions for hypergraph decompositions. Dissertation, 2006. Available at http://www.freidok.unifreiburg.de/volltexte/2468/pdf/thesis adler.pdf.Google ScholarGoogle Scholar
  2. I. Adler, G. Gottlob, and M. Grohe. Hypertree-width and related hypergraph invariants. European Journal of Combinatorics, 28(8):2167--2181, 2007. Preliminary version in EUROCOMB'05. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. A. K. Chandra and Ph. M. Merlin. Optimal implementation of conjunctive queries in relational data bases. In STOC, pages 77--90. ACM, 1977. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Ch. Chekuri and A. Rajaraman. Conjunctive query containment revisited. Theor. Comput. Sci., 239(2):211--229, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. David A. Cohen, Peter Jeavons, and Marc Gyssens. A unified theory of structural tractability for constraint satisfaction and spread cut decomposition. In Leslie Pack Kaelbling and Alessandro Saffiotti, editors, IJCAI, pages 72--77. Professional Book Center, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. V. Dalmau, Ph. G. Kolaitis, and M. Y. Vardi. Constraint satisfaction, bounded treewidth, and finite-variable logics. In Pascal Van Hentenryck, editor, CP, volume 2470 of Lecture Notes in Computer Science, pages 310--326. Springer, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. R. Diestel. Graph Theory. Springer, 1997.Google ScholarGoogle Scholar
  8. H.-D. Ebbinghaus and J. Flum. Finite Model Theory. Springer, 1990.Google ScholarGoogle Scholar
  9. T. Feder and M. Y. Vardi. The computational structure of monotone monadic snp and constraint satisfaction: A study through datalog and group theory. SIAM J. Comput., 28(1):57--104, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. E. C. Freuder. Complexity of k-tree structured constraint satisfaction problems. In AAAI, pages 4--9, 1990.Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. G. Gottlob, N. Leone, and F. Scarcello. Hypertree decompositions and tractable queries. J. Comput. Syst. Sci., 64(3):579--627, 2002.Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Georg Gottlob, Zoltán Miklós, and Thomas Schwentick. Generalized hypertree decompositions: np-hardness and tractable variants. In Leonid Libkin, editor, PODS, pages 13--22. ACM, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. M. Grohe and D. Marx. Constraint solving via fractional edge covers. In SODA, pages 289--298. ACM Press, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. G. Grätzer. Universal Algebra. Van Nostrand, 1968.Google ScholarGoogle Scholar
  15. M. Yannakakis. Algorithms for acyclic database schemes. In VLDB, pages 82--94. IEEE Computer Society, 1981. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Tree-width and functional dependencies in databases

        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 '08: Proceedings of the twenty-seventh ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems
          June 2008
          330 pages
          ISBN:9781605581521
          DOI:10.1145/1376916

          Copyright © 2008 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: 9 June 2008

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article

          Acceptance Rates

          PODS '08 Paper Acceptance Rate28of159submissions,18%Overall Acceptance Rate642of2,707submissions,24%

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader