Given a graph G = (V, E) and a positive integer k, the PHYLOGENETIC k-ROOT PROBLEM asks for a (unrooted) tree T without degree-2 nodes such that its leaves are labeled by V and (u, v) ∈ E if and only if dT (u, v) ≤ k. If the vertices in V are also allowed to be internal nodes in T, then we have the Steiner k-ROOT PROBLEM. Moreover, if a particular subset S of V are required to be internal nodes in T, then we have the RESTRICTED STEINER k-ROOT PROBLEM. Phylogenetic k-roots and Steiner k-roots extend the standard notion of GRAPH ROOTS and are motivated by applications in computational biology. In this paper, we first present O(n + e)-time algorithms to determine if a (not necessarily connected) graph G = (V, E) has an S-restricted 1-root Steiner tree for a given subset S ⊂ V , and to determine if a connected graph G = (V, E) has an S-restricted 2-root Steiner tree for a given subset S ⊂ V, where n = |V| and e = |E|. We then use these two algorithms as subroutines to design O(n + e)-time algorithms to determine if a given (not necessarily connected) graph G = (V, E) has a 3-root phylogeny and to determine if a given connected graph G = (V, E) has a 4-root phylogeny.
[1]
Robert E. Tarjan,et al.
Simple Linear-Time Algorithms to Test Chordality of Graphs, Test Acyclicity of Hypergraphs, and Selectively Reduce Acyclic Hypergraphs
,
1984,
SIAM J. Comput..
[2]
Derek G. Corneil,et al.
Tree Powers
,
1998,
J. Algorithms.
[3]
Steven Skiena,et al.
Algorithms for Square Roots of Graphs
,
1991,
SIAM J. Discret. Math..
[4]
Robert E. Tarjan,et al.
Algorithmic Aspects of Vertex Elimination on Graphs
,
1976,
SIAM J. Comput..
[5]
Fanica Gavril,et al.
Algorithms for Minimum Coloring, Maximum Clique, Minimum Covering by Cliques, and Maximum Independent Set of a Chordal Graph
,
1972,
SIAM J. Comput..
[6]
A. Brandstädt,et al.
Graph Classes: A Survey
,
1987
.
[7]
Rajeev Motwani,et al.
Computing Roots of Graphs Is Hard
,
1994,
Discret. Appl. Math..
[8]
Dimitrios M. Thilikos,et al.
On Graph Powers for Leaf-Labeled Trees
,
2002,
J. Algorithms.