We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo ScienceWISE logo

Computer Science > Data Structures and Algorithms

Title: New and Improved Algorithms for Unordered Tree Inclusion

Abstract: The tree inclusion problem is, given two node-labeled trees $P$ and $T$ (the ``pattern tree'' and the ``target tree''), to locate every minimal subtree in $T$ (if any) that can be obtained by applying a sequence of node insertion operations to $P$. Although the ordered tree inclusion problem is solvable in polynomial time, the unordered tree inclusion problem is NP-hard. The currently fastest algorithm for the latter is a classic algorithm by Kilpel\"{a}inen and Mannila from 1995 that runs in $O(2^{2d} mn)$ time, where $m$ and $n$ are the sizes of the pattern and target trees, respectively, and $d$ is the degree of the pattern tree. Here, we develop a new algorithm that runs in $O(2^{d} mn^2)$ time, improving the exponential factor from $2^{2d}$ to $2^d$ by considering a particular type of ancestor-descendant relationships that is suitable for dynamic programming. We also study restricted variants of the unordered tree inclusion problem.
Comments: 22 pages, 9 figures. To appear in Theoretical Computer Science
Subjects: Data Structures and Algorithms (cs.DS)
Cite as: arXiv:1712.05517 [cs.DS]
  (or arXiv:1712.05517v2 [cs.DS] for this version)

Submission history

From: Takeyuki Tamura [view email]
[v1] Fri, 15 Dec 2017 03:15:35 GMT (431kb)
[v2] Tue, 15 Jun 2021 03:58:09 GMT (61kb)

Link back to: arXiv, form interface, contact.