Title :
On the algorithm of Berztiss for tree pattern matching
Author :
Valiente, Gabriel
Author_Institution :
Dept. of Software, Catalonia Tech. Univ., Barcelona, Spain
Abstract :
The tree pattern matching problem over labeled trees is addressed in This work. Several tree pattern matching algorithms are known which are based on the decomposition of the pattern into strings, with each string representing a root-to-leaf path. Among these, Alfs T. Berztiss gave a simple tree pattern matching algorithm which remained unknown to the research community. The tree pattern matching algorithm of Berztiss is reviewed, its correctness is established, and its complexity is shown to be O(mn) time and space in the worst case and O(n) on the average, where n is the text size and m is the pattern size.
Keywords :
computational complexity; pattern matching; trees (mathematics); combinatorial problems; labeled trees; pattern decomposition; root-to-leaf path; space complexity; subtree isomorphism; time complexity; tree pattern matching algorithms; worst case complexity; Algorithm design and analysis; Educational technology; Pattern analysis; Pattern matching; Tree data structures;
Conference_Titel :
Computer Science, 2004. ENC 2004. Proceedings of the Fifth Mexican International Conference in
Print_ISBN :
0-7695-2160-6
DOI :
10.1109/ENC.2004.1342587