Given two trees (a target and a pattern ) and a natural number , window embedded subtree problems consist in deciding whether occurs as an embedded subtree of and/or finding the number of size (at most) windows of which contain pattern as an embedded subtree. is an embedded subtree of if can be obtained by deleting some nodes from (if a node is deleted, all edges adjacent to are also deleted, and outgoing edges are replaced by edges going from the parent of (if it exists) to the children of ). Deciding whether is an embedded subtree of is known to be NP-complete. Our algorithms run in time where (resp. ) is the size of (resp. ).
@article{ITA_2008__42_1_5_0, author = {C\'egielski, Patrick and Guessarian, Ir\`ene and Matiyasevich, Yuri}, title = {Tree inclusion problems}, journal = {RAIRO - Theoretical Informatics and Applications - Informatique Th\'eorique et Applications}, volume = {42}, year = {2008}, pages = {5-20}, doi = {10.1051/ita:2007052}, mrnumber = {2382541}, zbl = {1149.68040}, language = {en}, url = {http://dml.mathdoc.fr/item/ITA_2008__42_1_5_0} }
Cégielski, Patrick; Guessarian, Irène; Matiyasevich, Yuri. Tree inclusion problems. RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications, Tome 42 (2008) pp. 5-20. doi : 10.1051/ita:2007052. http://gdmltest.u-ga.fr/item/ITA_2008__42_1_5_0/
[1] Window accumulated subsequence matching is linear. Ann. Pure Appl. Logic 113 (2001) 59-80. | MR 1875736 | Zbl 0998.68042
, , and ,[2] Frequent subtree mining - an overview. Fund. Inform. 66 (2005) 161-198. | MR 2347731 | Zbl 1096.68044
, , and ,[3] Tree matching problems with applications to structured text databases. Ph.D. thesis, Helsinki (1992). http://ethesis.helsinki.fi/julkaisut/mat/tieto/vk/kilpelainen/
,[4] Ordered and unordered tree inclusion. SIAM J. Comput. 24 (1995) 340-356. | MR 1320214 | Zbl 0827.68050
and ,