On the evaluation of tree pattern queries

被引:0
作者
Chen, Yangjun [1 ]
机构
[1] Univ Winnipeg, Dept Appl Comp Sci, Winnipeg, MB R3B 2E9, Canada
来源
ICSOFT 2006: Proceedings of the First International Conference on Software and Data Technologies, Vol 2 | 2006年
关键词
XML document; tree pattern queries; tree embedding; constraint satisfaction problem; NP-complete;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The evaluation of Xpath expressions can be handled as a tree embedding problem. In this paper, we propose two strategies on this issue. One is ordered-tree embedding based and the other is unordered-tree embedding based. For the ordered-tree embedding, our algorithm needs only O(vertical bar T vertical bar(.)vertical bar P vertical bar) time and O(vertical bar T vertical bar(.)vertical bar P vertical bar) space, where vertical bar T vertical bar and vertical bar P vertical bar stands for the numbers of the nodes in the target tree T and the pattern tree P, respectively. For the unordered-tree embedding, we give an algorithm that needs O(vertical bar T vertical bar(.)vertical bar P vertical bar(.2k)) time, where k is the largest out-degree of any node in P.
引用
收藏
页码:79 / 85
页数:7
相关论文
共 14 条
  • [1] Berge C., 1989, HYPERGRAPHS
  • [2] CHAMBERLIN DD, 2000, WEBDB
  • [3] DEUTSCH A, 1989, XML QL QUERY LANGUAG
  • [4] FLORESCU D, 1999, IEEE DATA ENG B, V22
  • [5] Efficient algorithms for processing XPath queries
    Gottlob, G
    Koch, C
    Pichler, R
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 2005, 30 (02): : 444 - 491
  • [6] Gottlob G., 2004, P PODS 2004 PAR FRAN, P189
  • [7] Knuth D.E., 1969, The Art of Computer Programming. Vol. 1: Fundamental Algorithms, V1
  • [8] RAMANAN P, 2002, ACM SIGMOD 2002 JUN
  • [9] ROBIE J, 1998, XML QUERY LANGUAGE
  • [10] WANG H, 2003, SIGMOD INT C MAN DAT