Skip to main content

Query primitives for tree-structured data

  • Conference paper
  • First Online:
Combinatorial Pattern Matching (CPM 1994)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 807))

Included in the following conference series:

Abstract

We consider primitives for retrieving information from trees. We define a sequence of tree matching operations based on a classification of properties preserved in matching. We analyze the time complexity of the primitives. The addition of logical variables to the primitives is also considered, and its effects on the complexities is studied.

Research supported by the Academy of Finland.

on leave from University of Helsinki.

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

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. A. V. Aho, J. E. Hopcroft, and J. D. Ullman. The Design and Analysis of Computer Algorithms. Addison-Wesley, 1974.

    Google Scholar 

  2. D. Angluin. Finding patterns common to a set of strings. Journal of Computer and System Sciences, 21:46–62, 1980.

    Google Scholar 

  3. F. Bancilhon and P. Richard. Managing texts and facts in a mixed data base environment. In G. Gardarin and E. Gelenbe, editors, New Applications of Data Bases, pages 87–107. Academic Press, 1984.

    Google Scholar 

  4. D. Benanav, D. Kapur, and P. Narendran. Complexity of matching problems. Journal of Symbolic Computation, 3(1&2):203–216, February/April 1987.

    Google Scholar 

  5. G. Coray, R. Ingold, and C. Vanoirbeek. Formatting structured documents: Batch versus interactive. In J. C. van Vliet, editor, Text Processing and Document Manipulation, pages 154–170. Cambridge University Press, 1986.

    Google Scholar 

  6. M. Dubiner, Z. Galil, and E. Magen. Faster tree pattern matching. In Proc. of the Symposium on Foundations of Computer Science (FOCS'90), pages 145–150, 1990.

    Google Scholar 

  7. P. Dublish. Some comments on the subtree isomorphism problem for ordered trees. Information Processing Letters, 36:273–275, 1990.

    Google Scholar 

  8. M. J. Fischer and M. S. Paterson. String-matching and other products. In Complexity of Computation, pages 113–125. SIAM-AMS, 1974.

    Google Scholar 

  9. R. Furuta, V. Quint, and J. André. Interactively editing structured documents. Electronic Publishing, 1(1):19–44, 1988.

    Google Scholar 

  10. M. R. Garey and D. S. Johnson. “Strong” NP-completeness results: Motivation, examples and implications. Journal of the ACM, 25(3):499–508, July 1978.

    Google Scholar 

  11. M. R. Garey and D. S. Johnson. Computers and Intractability. W. H. Freeman and Company, 1979.

    Google Scholar 

  12. G. H. Gonnet and F. Wm. Tompa. Mind your grammar-a new approach to text databases. In Proc. of the Conference on Very Large Data Bases (VLDB'87), pages 339–346, 1987.

    Google Scholar 

  13. R. Grossi. A note on the subtree isomorphism for ordered trees and related problems. Information Processing Letters, 39:81–84, 1991.

    Google Scholar 

  14. C. M. Hoffman and M. J. O'Donnell. Pattern matching in trees. Journal of the ACM, 29(1):68–95, January 1982.

    Google Scholar 

  15. J. E. Hopcroft and R. M. Karp. An n 5/2 algorithm for maximum matching in bipartite graphs. SIAM Journal on Computing, 2(4):225–231, December 1973.

    Google Scholar 

  16. P. Kilpeläinen. Tree Matching Problems with Applications to Structured Text Databases. PhD thesis, University of Helsinki, Dept. of Comp. Science, November 1992.

    Google Scholar 

  17. P. Kilpeläinen, G. Lindén, H. Mannila, and E. Nikunen. A structured document database system. In R. Furuta, editor, EP90 — Proceedings of the International Conference on Electronic Publishing, Document Manipulation & Typography, The Cambridge Series on Electronic Publishing. Cambridge University Press, 1990.

    Google Scholar 

  18. P. Kilpeläinen and H. Mannila. Ordered and unordered tree inclusion. Report A-1991-4, University of Helsinki, Dept. of Comp. Science, August 1991. To appear in SIAM Journal on Computing.

    Google Scholar 

  19. P. Kilpeläinen and H. Mannila. The tree inclusion problem. In S. Abramsky and T. S. E. Maibaum, editors, TAPSOFT'91, Proc. of the International Joint Conference on the Theory and Practice of Software Development, Vol. 1: Colloqium on Trees in Algebra and Programming (CAAP'91), pages 202–214. Springer-Verlag, 1991.

    Google Scholar 

  20. P. Kilpeläinen and H. Mannila. Grammatical tree matching. In A. Apostolico, M. Crochemore, Z. Galil, and U. Manber, editors, Proceedings of the Third Annual Symposium on Combinatorial Pattern Matching, pages 162–174. Springer-Verlag, 1992.

    Google Scholar 

  21. S. R. Kosaraju. Efficient tree pattern matching. In Proc. of the Symposium on Foundations of Computer Science (FOCS'89), pages 178–183, 1989.

    Google Scholar 

  22. J. Matoušek and R. Thomas. On the complexity of finding iso-and other morphisms for partial k-trees. Discrete Mathematics, 108(1–3):343–364, October 1992.

    Google Scholar 

  23. D. W. Matula. An algorithm for subtree identification. SIAM Rev., 10:273–274, 1968. Abstract.

    Google Scholar 

  24. R. Ramesh and I. V. Ramakrishnan. Nonlinear pattern matching in trees. Journal of the ACM, 39(2):295–316, April 1992.

    Google Scholar 

  25. S. W. Reyner. An analysis of a good algorithm for the subtree problem. SIAM Journal on Computing, 6(4):730–732, December 1977.

    Google Scholar 

  26. J.-M. Steyaert and P. Flajolet. Patterns and pattern-matching in trees: An analysis. Information and Control, 58:19–58, 1983.

    Google Scholar 

  27. R. M. Verma. Strings, trees, and patterns. Information Processing Letters, 41:157–161, March 1992.

    Google Scholar 

  28. R. M. Verma and I. V. Ramakrishnan. Some complexity theoretic aspects of AC rewriting. In B. Monien and R. Cori, editors, STACS89 — 6th Annual Symposium on Theoretical Aspects of Computer Science, pages 407–420. Springer-Verlag, 1989.

    Google Scholar 

  29. K. Zhang and D. Shasha. Simple fast algorithms for the editing distance between trees and related problems. SIAM Journal on Computing, 18(6):1245–1262, December 1989.

    Google Scholar 

  30. K. Zhang, D. Shasha, and J. T.-L. Wang. Fast serial and parallel algorithms for approximate tree matching with VLDC's. In A. Apostolico, M. Crochemore, Z. Galil, and U. Manber, editors, Proceedings of the Third Annual Symposium on Combinatorial Pattern Matching, pages 151–161. Springer-Verlag, 1992.

    Google Scholar 

  31. K. Zhang, R. Statman, and D. Shasha. On the editing distance between unordered labeled trees. Information Processing Letters, 42(3):133–139, May 1992.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Maxime Crochemore Dan Gusfield

Rights and permissions

Reprints and permissions

Copyright information

© 1994 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Kilpeläinen, P., Mannila, H. (1994). Query primitives for tree-structured data. In: Crochemore, M., Gusfield, D. (eds) Combinatorial Pattern Matching. CPM 1994. Lecture Notes in Computer Science, vol 807. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-58094-8_19

Download citation

  • DOI: https://doi.org/10.1007/3-540-58094-8_19

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-58094-2

  • Online ISBN: 978-3-540-48450-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics