Tree template matching in unranked ordered trees

被引:1
|
作者
Christou, Michalis [2 ]
Flouri, Tomas [1 ]
Iliopoulos, Costas S. [2 ,3 ]
Janousek, Jan [1 ]
Melichar, Borivoj [1 ]
Pissis, Solon P. [4 ,5 ]
Zd'arek, Jan [1 ]
机构
[1] Czech Tech Univ, Dept Theoret Comp Sci, Prague, Czech Republic
[2] Kings Coll London, Dept Informat, London, England
[3] Univ Western Australia, Dept Math & Stat, Perth, WA, Australia
[4] Heidelberg Inst Theoret Studies, Heidelberg, Germany
[5] Univ Florida, Florida Museum Nat Hist, Gainesville, FL 32611 USA
关键词
Tree pattern matching; Tree template matching; Algorithms on strings;
D O I
10.1016/j.jda.2013.02.001
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
We consider the problem of tree template matching, a type of tree pattern matching, where the tree templates have some of their leaves denoted as "don't care", and propose a solution based on the bottom-up technique. Specifically, we transform the tree pattern matching problem for unranked ordered trees to a string matching problem, by transforming the tree template and the subject tree to strings representing their postfix bar notation, and then propose a table-driven algorithm to solve it. The proposed algorithm is divided into two phases: the preprocessing and the searching phase. The tree template is preprocessed once, and the searching phase can be applied to many subject trees, without the need of preprocessing the tree template again. Although we prove that the space required for preprocessing is exponential in the size of the tree template in the worst case, we show that for a specific class of tree templates, the space required is linear in the size of the tree template. The time for the searching phase is linear in the size of the subject tree in the worst case. Thus, the algorithm is asymptotically optimal when one needs to search for a given tree template, of constant to logarithmic size, in many subject trees. (C) 2013 Elsevier B.V. All rights reserved.
引用
收藏
页码:51 / 60
页数:10
相关论文
共 50 条
  • [11] Deterministic automata on unranked trees
    Cristau, J
    Löding, C
    Thomas, W
    [J]. FUNDAMENTALS OF COMPUTATIONAL THEORY, PROCEEDINGS, 2005, 3623 : 68 - 79
  • [12] ACCELERATED TEMPLATE MATCHING USING TEMPLATE TREES GROWN BY CONDENSATION
    BROWN, RL
    [J]. IEEE TRANSACTIONS ON SYSTEMS MAN AND CYBERNETICS, 1995, 25 (03): : 523 - 528
  • [13] Tree species discrimination using Z/I DMC imagery and template matching of single trees
    Olofsson, K
    Wallerman, J
    Holmgren, J
    Olsson, H
    [J]. SCANDINAVIAN JOURNAL OF FOREST RESEARCH, 2006, 21 : 106 - 110
  • [14] ON TREES AND TREE DIMENSION OF ORDERED SETS
    BEHRENDT, G
    [J]. ORDER-A JOURNAL ON THE THEORY OF ORDERED SETS AND ITS APPLICATIONS, 1993, 10 (02): : 153 - 160
  • [15] UNRANKED TREE-LANGUAGES
    BARRERO, A
    [J]. PATTERN RECOGNITION, 1991, 24 (01) : 9 - 18
  • [16] Index trees for accelerating deformable template matching
    Liu, LF
    Sclaroff, S
    [J]. PATTERN RECOGNITION LETTERS, 2002, 23 (12) : 1483 - 1493
  • [17] Matching Complexes of Trees and Applications of the Matching Tree Algorithm
    Marija Jelić Milutinović
    Helen Jenne
    Alex McDonough
    Julianne Vega
    [J]. Annals of Combinatorics, 2022, 26 : 1041 - 1075
  • [18] Temporal logics over unranked trees
    Barceló, P
    Libkin, L
    [J]. LICS 2005: 20th Annual IEEE Symposium on Logic in Computer Science - Proceedings, 2005, : 31 - 40
  • [19] Matching Complexes of Trees and Applications of the Matching Tree Algorithm
    Milutinovic, Marija Jelic
    Jenne, Helen
    McDonough, Alex
    Vega, Julianne
    [J]. ANNALS OF COMBINATORICS, 2022, 26 (04) : 1041 - 1075
  • [20] Automata and logics for unranked and unordered trees
    Boneva, I
    Talbot, JM
    [J]. TERM REWRITING AND APPLICATIONS, PROCEEDINGS, 2005, 3467 : 500 - 515