TY - JOUR
T1 - New and improved algorithms for unordered tree inclusion
AU - Akutsu, Tatsuya
AU - Jansson, Jesper Andreas
AU - Li, Ruiming
AU - Takasu, Atsuhiro
AU - Tamura, Takeyuki
N1 - Funding Information:
Partially supported by JSPS KAKENHI #18H04113.Partially supported by JSPS KAKENHI #25730005.
Publisher Copyright:
© 2021 Elsevier B.V.
PY - 2021
Y1 - 2021
N2 - 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äinen and Mannila from 1995 that runs in O(d22dmn) 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(d2dmn2) time, improving the exponential factor from 22d to 2d 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.
AB - 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äinen and Mannila from 1995 that runs in O(d22dmn) 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(d2dmn2) time, improving the exponential factor from 22d to 2d 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.
KW - Dynamic programming
KW - Parameterized algorithms
KW - Tree inclusion
KW - Unordered trees
UR - http://www.scopus.com/inward/record.url?scp=85108503876&partnerID=8YFLogxK
U2 - 10.1016/j.tcs.2021.06.013
DO - 10.1016/j.tcs.2021.06.013
M3 - Journal article
AN - SCOPUS:85108503876
SN - 0304-3975
VL - 883
SP - 83
EP - 98
JO - Theoretical Computer Science
JF - Theoretical Computer Science
ER -