TY - JOUR
T1 - Tree template matching in ranked ordered trees by pushdown automata
AU - Flouri, Tomáš
AU - Iliopoulos, Costas S.
AU - Janoušek, Jan
AU - Melichar, Bořivoj
AU - Pissis, Solon P.
PY - 2012/12/1
Y1 - 2012/12/1
N2 - We consider the problem of tree template matching in ranked ordered trees, and propose a solution based on the bottom-up technique. Specifically, we transform the tree pattern matching problem to a string matching problem, by transforming the tree template and the subject tree to strings representing their postfix notation, and then use pushdown automata as the computational model. The method is analogous to the construction of string pattern matchers. The given tree template is preprocessed once, by constructing a nondeterministic pushdown automaton, which is then transformed to the equivalent deterministic one. Although we prove that the space required for preprocessing is exponential to the size of the tree template in the worst case, the space required for a specific class of tree templates is linear. The time required for the searching phase is linear to the size of the subject tree in both cases.
AB - We consider the problem of tree template matching in ranked ordered trees, and propose a solution based on the bottom-up technique. Specifically, we transform the tree pattern matching problem to a string matching problem, by transforming the tree template and the subject tree to strings representing their postfix notation, and then use pushdown automata as the computational model. The method is analogous to the construction of string pattern matchers. The given tree template is preprocessed once, by constructing a nondeterministic pushdown automaton, which is then transformed to the equivalent deterministic one. Although we prove that the space required for preprocessing is exponential to the size of the tree template in the worst case, the space required for a specific class of tree templates is linear. The time required for the searching phase is linear to the size of the subject tree in both cases.
KW - Algorithms on strings
KW - Automata theory
KW - Tree pattern matching
UR - http://www.scopus.com/inward/record.url?scp=84871413368&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=84871413368&partnerID=8YFLogxK
U2 - 10.1016/j.jda.2012.10.003
DO - 10.1016/j.jda.2012.10.003
M3 - Article
AN - SCOPUS:84871413368
SN - 1570-8667
VL - 17
SP - 15
EP - 23
JO - Journal of Discrete Algorithms
JF - Journal of Discrete Algorithms
ER -