skip to main content
10.1145/564691.564726acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
Article

Efficient algorithms for minimizing tree pattern queries

Published:03 June 2002Publication History

ABSTRACT

We consider the problem of minimizing tree pattern queries (TPQ) that arise in XML and in LDAP-style network directories. In [Minimization of Tree Pattern Queries, Proc. ACM SIGMOD Intl. Conf. Management of Data, 2001, pp. 497-508], Amer-Yahia, Cho, Lakshmanan and Srivastava presented an O(n4) algorithm for minimizing TPQs in the absence of integrity constraints (Case 1); n is the number of nodes in the query. Then they considered the problem of minimizing TPQs in the presence of three kinds of integrity constraints: required-child, required-descendant and subtype (Case 2). They presented an O(n6) algorithm for minimizing TPQs in the presence of only required-child and required-descendant constraints (i.e., no subtypes allowed; Case 3). We present O(n2), O(n4) and O(n2) algorithms for minimizing TPQs in these three cases, respectively, based on the concept of graph simulation. We believe that our O(n2) algorithms for Cases 1 and 3 are runtime optimal.

References

  1. S. Abiteboul, P. Buneman and D. Suciu. Data on the Web. Morgan Kaufman, San Francisco, CA, 2000.]]Google ScholarGoogle Scholar
  2. S. Amer-Yahia, SR. Cho, L. V. S. Lakshmanan and D. Srivastava. Minimization of Tree Pattern Queries, Proc. ACM SIGMOD Intl. Conf. Management of Data, 2001, pp. 497-508.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. B. Bloom and R. Paige. Transformational Design and Implementation of a New Efficient Solution to the Ready Simulation Problem, Science of Computer Programming24(1995), pp. 189-220.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. P. Buneman, S. Davidson, M. Fernandez and D. Suciu. Adding Structure to Unstructured Data, Proc. Internat. Conf. Database Theory, 1997, pp. 336-350.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. D. Calvanese, G. De Giacomo and M. Lenzerini. On the Decidability of Query Containment under Constraints, Proc. 17th ACM Symp. Principles of Database Systems, 1998, pp. 149-158.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. D. D. Chamberlin, J. Robie and D. Florescu. Quilt: An XML Query Language for Heterogeneous Data Sources, WebDB 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. A. K. Chandra and P. M. Merlin. Optimal Implementation of Conjunctive Queries in Relational Databases, Proc. 9th ACM Symp. Theory of Computing, 1977, pp. 77-90.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. A. Deutch, M. Fernandez, D. Florescu, A. Levy and D. Suciu. A Query Language for XML, Intl. WWW Conf., 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. W. Fan and J. Simeon. Integrity Constraints for XML, Proc. 19th ACM Symp. Principles of Database Systems, 2000, pp. 23-34.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. D. Florescu, A. Levy and D. Suciu. Query Containment for Conjunctive Queries with Regular Expressions, Proc. 17th ACM Symp. Principles of Database Systems, 1998, pp. 139-148.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. M. R. Garey and D. S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman & Co., NY, 1979.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. M. R. Henzinger, T. A. Henzinger and P. W. Kopke. Computing Simulations on Finite and Infinite Graphs, Proc. IEEE Symp. Foundations of Computer Science, 1995, pp. 453-462.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. T. Howes, M. Smith and G. S. Wood. Understanding and Deploying LDAP Directory Services. MacMillan Technical Publishing, Indianapolis, 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. H. V. Jagadish, L. V. S. Lakshmanan, T. Milo, D. Srivastava and D. Vista. Querying Network Directories, Proc. ACM SIGMOD Intl. Conf. Management of Data, 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. D. Maier, A. O. Mendelzon and Y. Sagiv. Testing Implications of Data Dependencies, ACM Trans. Database Systems4(1979), pp. 455-469.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. G. Miklau and D. Suciu. Containment and Equivalence for an XPath Fragment, Proc. 21st ACM Symp. Principles of Database Systems, 2002.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Y. Papakonstantinou and V. Vianu. DTD Inference for Views of XML Data, Proc. 19th ACM Symp. Principles of Database Systems, 2000, pp. 35-46.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. P. Ramanan. Inferring DTDs for Views of XML Data, Tech. Rep. WSUCS-01-1, Comp. Sci. Dept, Wichita State Univ, August 2001.]]Google ScholarGoogle Scholar
  19. J. D. Ullman. Principles of Database and Knowledge Base Systems, Vol. I & II. Computer Science Press, Maryland, 1989.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. P. T. Wood. Optimizing Web Queries Using Document Type Definitions, Proc. 2nd ACM CIKM Intl. Workshop on Web Information and Data Management, 1999, pp. 28-32.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. P. T. Wood. On the Equivalence of XML Patterns, Proc. 1st Intl. Conf. Computational Logic, Lecture Notes in Artificial Intelligence 1861, pp. 1152-1166, Springer Verlag, New York, 2000.]] Google ScholarGoogle Scholar
  22. P. T. Wood. Rewriting XQL Queries on XML Repositories, Proc. 17th British National Conf. on Databases, Lecture Notes in Computer Science 1832, pp. 209-226, Springer Verlag, New York, 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. P. T. Wood. Minimising Simple XPath Expressions, WebDB 2001.]]Google ScholarGoogle Scholar
  24. World Wide Web Consortium. XML Path Language (XPath), W3C Recommendation, Version 1.0, November 1999. See http://www.w3.org/TR/xpath.]]Google ScholarGoogle Scholar
  25. World Wide Web Consortium. XQuery 1.0: An XML Query Language, W3C Recommendation, Version 1.0, December 2001. See http://www.w3.org/TR/xquery.]]Google ScholarGoogle Scholar

Index Terms

  1. Efficient algorithms for minimizing tree pattern queries

          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
            SIGMOD '02: Proceedings of the 2002 ACM SIGMOD international conference on Management of data
            June 2002
            654 pages
            ISBN:1581134975
            DOI:10.1145/564691

            Copyright © 2002 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: 3 June 2002

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • Article

            Acceptance Rates

            SIGMOD '02 Paper Acceptance Rate42of240submissions,18%Overall Acceptance Rate785of4,003submissions,20%

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader