|
Zapiski Nauchnykh Seminarov POMI, 2008, Volume 358, Pages 38–53
(Mi znsl2144)
|
|
|
|
Tree inclusions in windows and slices
I. Guessariana, P. Cégielskib a Laboratoire d'Informatique Algorithmique: Fondements et Applications, Paris VII – Denis Diderot
b LACL, Université Paris-Est
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|(w-h(P)+2)^{4|P|})$, where $|T|$ (resp., $|P|$) is the size of $T$ (resp., $P$), and $h(P)$ is the height of $P$. Bibl. – 10 titles.
Received: 20.05.2007
Citation:
I. Guessarian, P. Cégielski, “Tree inclusions in windows and slices”, Studies in constructive mathematics and mathematical logic. Part XI, Zap. Nauchn. Sem. POMI, 358, POMI, St. Petersburg, 2008, 38–53; J. Math. Sci. (N. Y.), 158:5 (2009), 623–632
Linking options:
https://www.mathnet.ru/eng/znsl2144 https://www.mathnet.ru/eng/znsl/v358/p38
|
Statistics & downloads: |
Abstract page: | 150 | Full-text PDF : | 78 | References: | 74 |
|