On the tree inclusion problem

Citation
L. Alonso et R. Schott, On the tree inclusion problem, ACT INFORM, 37(9), 2001, pp. 653-670
Citations number
10
Categorie Soggetti
Information Tecnology & Communication Systems
Journal title
ACTA INFORMATICA
ISSN journal
00015903 → ACNP
Volume
37
Issue
9
Year of publication
2001
Pages
653 - 670
Database
ISI
SICI code
0001-5903(200106)37:9<653:OTTIP>2.0.ZU;2-C
Abstract
We consider the following problem: Given ordered labeled trees S and T can S be obtained from T by deleting nodes?' Deletion of the root node u of a s ubtree with children (T-1,...,T-n) means replacing the subtree by the trees T-1,...,T-n. For the tree inclusion problem, there can generally be expone ntially many ways to obtain the included tree. P. Kilpelinen and H. Mannila [5,7] gave an algorithm based on dynamic programming requiring O(\ S \ . \ T \) time and space in the worst case and also on the average for solving this problem. We give an algorithm whose idea is similar to that of [5,7] b ut which improves the previous one and on the average breaks the \S\ . \T\ barrier.