A time optimal algorithm for evaluating tree pattern queries

  • Authors:
  • Yangjun Chen

  • Affiliations:
  • University of Winnipeg, Winnipeg, Manitoba, Canada

  • Venue:
  • Proceedings of the 2010 ACM Symposium on Applied Computing
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

The tree pattern matching, which is used to find all occurrences of a tree pattern in an XML database, is a core operation for XML query processing. In this paper, we study this issue and discuss a new algorithm for processing unordered tree pattern queries, which works bottom-up. Its main idea is a new labeling method for tree pattern queries. Both the time and space complexities of the algorithm are bounded by O(|D|·|Q|), where Q stands for a tree pattern and D is a largest data stream associated with a node q of Q, which contains the database nodes that match the node predicate at q. In addition, the algorithm can be adapted to an indexing environment with XB-trees being used.