首页 | 本学科首页   官方微博 | 高级检索  
     检索      


Tree inclusions in windows and slices
Authors:I Guessarian  P Cégielski
Institution:(1) LIAFA, UMR 7089 and Université Paris-Diderot, Paris 7, France;(2) LACL, Université Paris Est, IUT, Fontainebleau, France
Abstract:A labelled tree P is an embedded subtree of a labelled tree T if P can be obtained by deleting some nodes from T: if a node v is deleted, all edges adjacent to v are also deleted and replaced by edges going from the parent of v (if it exists) to the children of v. Deciding whether P is an embedded subtree of T is known to be NP-complete. Given two trees (a target T and a pattern P) and a natural number w, we address two problems: 1) counting the number of windows of T having height exactly w and containing the pattern P as an embedded subtree, and 2) counting the number of slices of T having height exactly w and containing the pattern P as an embedded subtree. Our algorithms run in time O(|T|(wh(P)+2)4|P|), where |T| (respectively, |P|) is the size of T (respectively, P), and h(P) is the height of P. Bibliography: 10 titles. Dedicated to Yu. Matiyasevich on the occasion of his 60th birthday. Published in Zapiski Nauchnykh Seminarov POMI, Vol. 358, 2008, pp. 3–53.
Keywords:
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号