Back to Search Start Over

Constrained tree inclusion

Authors :
Gabriel Valiente
Source :
Journal of Discrete Algorithms. 3(2-4):431-447
Publication Year :
2005
Publisher :
Elsevier BV, 2005.

Abstract

The tree matching problem is considered of given labeled trees P and T , determining if the pattern tree P can be obtained from the text tree T by deleting degree-one and degree-two nodes and, in the case of unordered trees, by also permuting siblings. The constrained tree inclusion problem is more sensitive to the structure of the pattern tree than the general tree inclusion problem. Further, it can be solved in polynomial time for both unordered and ordered trees. Algorithms based on the restricted subtree homeomorphism algorithm of M.-J. Chung [J. Algorithms 8 (1) (1987) 106–112] are presented that solve the constrained tree inclusion problem in O ( m 1.5 n ) time on unordered trees with m and n nodes, and in O ( m n ) time on ordered trees, using O ( m n ) additional space.

Details

ISSN :
15708667
Volume :
3
Issue :
2-4
Database :
OpenAIRE
Journal :
Journal of Discrete Algorithms
Accession number :
edsair.doi.dedup.....ac4510132908e2fb64525d0854efead7
Full Text :
https://doi.org/10.1016/j.jda.2004.08.017