On the Complexity of Finding 1-Center Spanning Trees
Abstract
We consider the problem of finding a spanning tree of a given undirected graph such that any other spanning tree can be obtained from by removing edges and subsequently adding edges, where is minimized over all spanning trees of . We refer to this minimum as the treeradius of .
Treeradius is an interesting graph parameter with natural interpretations: (1) It is the smallest radius of a Hamming ball centered at an extreme point of the spanning tree polytope that covers the entire polytope. (2) Any graph with bounded treeradius also has bounded treewidth. Consequently, if a problem admits a fixed-parameter algorithm parameterized by treewidth, it also admits a fixed-parameter algorithm parameterized by treeradius.
In this paper, we show that computing the exact treeradius for -vertex graphs requires time under the Exponential Time Hypothesis (ETH) and does not admit a PTAS, with an inapproximability bound of , unless P = NP. This hardness result is surprising, as treeradius has significantly higher ETH complexity compared to analogous problems on shortest path polytopes and star subgraph polytopes.
Keywords and phrases:
Treeradius, Spanning tree polytope, Shortest -path polytopeCopyright and License:
2012 ACM Subject Classification:
Theory of computation Graph algorithms analysisAcknowledgements:
We want to thank the anonymous reviewers for their valuable comments.Funding:
This research was supported in part by the National Science and Technology Council under contract NSTC 113-2628-E-003-001-MY3 and 113-2221-E-001-026.Editors:
Pat Morin and Eunjin OhSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
We consider the problem of finding a most representative spanning tree of a given undirected connected simple graph . A spanning tree of is considered most representative if any other spanning tree of can be obtained from by removing edges and subsequently adding edges, where is minimized over all spanning trees of . We refer to this minimum as treeradius. We show that if the treeradius of is bounded, then the treewidth of also is bounded. Consequently, if a problem admits a fixed-parameter algorithm parameterized by treewidth, it also admits a fixed-parameter algorithm parameterized by treeradius. Moreover, such a spanning tree has applications in devising algorithms for computing multi-objective spanning trees, which we discuss in Section 1.1.
The most representative spanning tree of corresponds to a discrete -center among the extreme points in the spanning tree polytope of , a concept that is well-established in the literature. Formally, for each spanning tree of , we define its indicator vector , where the th coordinate of is if the th edge in is included in , and otherwise. Placing the starting points of these indicator vectors at the origin in the space , the convex hull of their endpoints is the spanning tree polytope. Since all indicator vectors have the same number of coordinates with value , their endpoints are precisely the extreme points of the polytope. A discrete (resp. continuous) -center among these extreme points is an extreme point (resp. any point in the space) that minimizes the radius of the Hamming ball centered at and covering the entire polytope. If the representing point of a spanning tree corresponds to a discrete -center of the polytope, we refer to it as a -center spanning tree of . Clearly, the notion of a -center spanning tree is equivalent to that of the most representative spanning tree. An illustration of the spanning tree polytope is depicted in Figure 1.
Though a discrete 1-center in a set of points can be found in time using a naive algorithm and cannot be computed in time for any constant [1] unless the Hitting Set Conjecture [3] fails, finding a discrete 1-center among the extreme points in the spanning tree polytope is a fundamentally different and potentially more computationally intensive, as the number of spanning trees in can be exponential in . Assuming the Exponential Time Hypothesis (ETH) [16, 17], we have the following result:
Theorem 1.
Given an -vertex undirected connected simple graph , finding a 1-center spanning tree of requires time unless ETH fails and can be solved in time. Moreover, computing the treeradius of is APX-complete with inapproximability constant .
We say that a problem has ETH complexity if there exists an algorithm that solves it in time, and assuming ETH every algorithm solving this problem requires at least time, where and . We find the ETH complexity of 1-center spanning trees interesting when compared to the computation of discrete 1-centers among the extreme points of other polytopes associated with , as summarized in Theorem 2. Finding a discrete 1-center among the extreme points naturally generalizes to any graph problem where the solution is chosen from a collection of edge sets of equal size, ensuring a one-to-one correspondence between solutions and the extreme points of the polytope in . However, the polytopes we considered are not arbitrary and must satisfy the following conditions.
-
We exclude the polytopes where outputting an extreme point is intractable. This is because outputting a discrete 1-center among the extreme points is no easier, so the hardness result for outputting an extreme point already implies the hardness of finding a discrete 1-center among the extreme points.
Typical examples include finding a discrete 1-center among the extreme points in the Hamiltonian path polytopes and the -edge dominating set polytopes [13].
-
We exclude the polytopes where enumerating all extreme points can be solved in polynomial time. This is because outputting a discrete 1-center among the extreme points is easy if all extreme points are given.
Typical examples include finding a discrete 1-center among the extreme points of the minimum cut polytope, which has minimum cuts [15], and the -cycle polytope for any fixed , which contains -cycles. In both cases, all extreme points can be identified efficiently.
Theorem 2.
The ETH complexities of finding a discrete 1-center among the extreme points in the spanning tree polytope, the shortest -path polytope, and the star subgraph polytope of an -vertex graph are
In addition, we note that finding a continuous 1-center in a set of points is known to be NP-hard [12, 20] but admits a PTAS [21]. This complements the APX-hardness result in Theorem 1, as both problems involve finding a 1-center and have exponentially large solution spaces relative to their input sizes.
1.1 Applications
Finding a -center spanning tree has applications in devising algorithms for computing multi-objective spanning trees, such as max-color spanning trees [8, 23] and max-leaf spanning trees [7, 10, 19, 25].
For graph classes with treeradius at most , a 1-center spanning tree is a good approximation of a max-color spanning tree because can be obtained from by removing edges and subsequently adding edges. So the number of colors in cannot be less than that in by .
Similarly, for such graph classes, a 1-center spanning tree is also a good approximation of a max-leaf spanning tree . Because deleting edges and subsequently adding edges can change the degrees of at most nodes, the number of leaves in cannot be less than that in by .
1.2 Related Work
Finding a discrete (resp. continuous) 1-center has been widely studied when the input consists of a collection of strings. While related to our work, these studies differ in that our polytope is defined by specific edge subsets of an underlying graph, serving as a succinct representation of the polytope. In contrast, the strings in these related works are given explicitly and do not allow for such a compact representation. This distinction makes proving hardness in our setting more challenging.
The task in the previous work is defined as follows: given a set of length- strings over an alphabet , find a string that minimizes the radius of the Hamming ball centered at enclosing all strings in . There are two major variants:
1.3 Paper Organization
The paper is organized as follows. In Section 2, we establish our results on 1-center spanning trees, proving Theorem 1. Next, in Section 3 and Section 4, we analyze the problem of finding a discrete 1-center among the extreme points of the shortest -path polytope and the star subgraph polytope, thereby proving Theorem 2. In Section 5, we present an extremal bound on the number of vertices in a spanning tree polytope in three-dimensional space using 2-distance sets. Finally, in Section 6, we explore the relationship between treewidth and treeradius.
2 1-Center Spanning Tree
The graph under consideration is assumed to be connected, simple, and undirected. We use to denote the spanning subgraph of with edge set . For the difference of two sets and , when is a singleton, say , we write . The number of components of a graph is denoted by .
Let be a graph, and let be the set of spanning trees of . The 1-center spanning tree of is a spanning tree with minimum eccentricity, where the eccentricity of a spanning tree is defined as
Notice that the eccentricity of a 1-center spanning tree is exactly twice the treeradius of the graph. We start with a simple but essential observation regarding the eccentricity of a spanning tree.
Proposition 3.
Let be a graph of order , and let be a spanning tree of . Then , where .
Proof.
Take edges from to connect the components of . Along with a spanning forest of , we have a spanning tree that shares exactly edges with , and thus . On the other hand, every spanning tree of takes at least edges from to connect the components of , implying .
Remark 4.
As an immediate result, computing the eccentricity of a spanning tree can be done in linear time.
A cut is a set of edges whose removal disconnects the graph111In the literature, a cut typically refers to a partition of the vertices into two subsets. Here, we slightly override this definition to better align it with the notion of a -cut. Specifically, a cut in our context refers to a superset of the standard cut-set, the set of edges with end-vertices in different subsets of the partition., and a -cut for any integer is a cut whose removal results in at least components. From Proposition 3 we know that the edge set of a 1-center spanning tree is a cut that induces no cycle with as large as possible. It is worth noting that every connected graph contains a spanning tree with . A natural relaxation is to ask how a cut that induces no cycle can be computed, with the resulting components as many as possible. A cut that induces no cycle is called cycle-free.
Observation 5.
For , complete graph has a cycle-free -cut if and only if . Moreover, any subgraph of induced by a cycle-free -cut is isomorphic to .
We relate the eccentricity of a spanning tree with a cycle-free cut as follows.
Proposition 6.
Let be a graph of order . There is a spanning tree with if and only if has a cycle-free -cut.
Proof.
By Proposition 3, a spanning tree with is a -cut. Thus the necessity follows. For sufficiency, let be a cycle-free -cut. Since induces no cycle, there is a spanning tree of such that . It follows immediately that . By Proposition 3,
Definition 7 (Restatements of 1-Center Spanning Trees).
Let be a spanning tree of a graph . The following statements are equivalent:
-
(i)
is a spanning tree with minimum eccentricity.
-
(ii)
is a spanning tree that maximizes the number of components in .
-
(iii)
is a spanning tree consisting of the edges in a cycle-free -cut with the largest possible and the edges in a spanning tree of each component in .
We adopt these alternative definitions in the following sections. Our first main result, Theorem 1, is developed based on
The problems involved in the subsequent discussion, including the sources of hardness, are named below.
-
CenterSpanningTree: Given a graph , find a spanning tree of with minimum eccentricity. The optimal eccentricity is denoted by .
-
CycleFreeCut: Given a graph , find a cycle-free cut that maximizes .
-
CycleFreeCut-D: This is the decision variant of CycleFreeCut. Namely, for a given graph and an integer , determine whether there is a cycle-free -cut of .
-
-MaxIndepSet: Given a graph with maximum degree at most , find an independent set of maximum size. The optimal size is denoted by .
-
-IndependentSet: Given a graph with maximum degree at most and an integer , determine whether contains an independent set of size . We write IndependentSet if the graph under consideration has no degree constraint.
The following hardness results are known:
Theorem 8 (Johnson and Szegedy [18]).
There is no algorithm with running time to solve 3-MaxIndepSet unless the Exponential Time Hypothesis (ETH) fails.
Theorem 9 (Berman and Fujito [6]).
It is APX-hard to approximate 3-MaxIndepSet.
Theorem 10 (Chlebík and Chlebíková [11]).
It is NP-hard to approximate 4-MaxIndepSet within a factor of .
2.1 NP-Hardness
A split graph is a graph whose vertex set can be partitioned into two sets and , where is an independent set and is a clique.
Lemma 11.
Given a graph and a positive integer , it is NP-hard to determine whether has a cycle-free -cut, even when is a split graph.
Proof.
We reduce IndependentSet to CycleFreeCut-D. Precisely, for an instance of IndependentSet, we construct an instance of CycleFreeCut-D as follows (see Fig. 2). The vertex set of is , where and . Each member of corresponds to a vertex of , and each member of or corresponds to an edge of . We use the bijections , , and to describe the correspondences, and for convenience let , , and . Two vertices and of are adjacent if
-
and are incident in ; namely, one of them corresponds to an edge of and the other corresponds to an endpoint of the edge, or
-
.
We claim the following.
Claim 12.
has an independent set of size at least if and only if has a cycle-free -cut.
For , the claim holds due to Observation 5 so we assume that . For necessity, let be an independent set of size and let . Consider the set of edges . Clearly, contains at least components. Moreover, every member in has at most one neighbor in since otherwise the two neighbors and of have the corresponding vertices and adjacent in . Thus, there is no cycle between and , showing that is cycle-free.
For sufficiency, let be a cycle-free -cut of . We show that
-
is contained in a component of , and
-
the other components, each consisting of a single vertex, together correspond to an independent set of .
First, contains at least three components. If the clique is not contained in a component, then by Observation 5 there exists with in a component and contained in another. Without loss of generality, assume that . The third component contains a vertex, say , in . Let , , and . If is an endpoint of , then , , and form a triangle contained in . Otherwise, is an endpoint of an edge of . Let and . Then , , , and form a 4-cycle contained in . Therefore, is contained in a component of .
For the second, except the component containing , all components consist of vertices from . Since induces an independent set of , each of these components consists of a single vertex. In addition, let and be the endpoints of an edge in , and let , , and be the corresponding vertices in . If both and are in components not containing , then , , and form a 4-cycle, violating that is cycle-free. Thus, the components not containing correspond to an independent set of of size at least .
Since induces an independent set and induces a clique, the graph is a split graph. Thus, the theorem follows.
2.2 Exact 1-Center Spanning Trees in Sparse Graphs
Assuming ETH, solving 3-MaxIndepSet takes time, where is the number of vertices of the input graph [18], as stated in Theorem 8. The same result can be obtained for CenterSpanningTree; that is, finding a 1-center spanning tree in a graph takes time, assuming ETH, where is the number of vertices of the graph. This follows from the reduction given in Lemma 11 with the hardness source replaced with a 3-MaxIndepSet instance, making . Below, we strengthen the result, showing that the ETH lower bound of () still holds for finding a 1-center spanning tree in a sparse graph.
We modify the reduction given in the proof of Lemma 11. Recall that we reduce an independent set instance to a cycle-free cut instance , with (see Fig. 2). Instead of making a clique, we substitute it with a sparse structure, a complete -partite graph (see Fig. 3), to ensure the sparsity of the whole graph. Like a complete graph, a complete -partite graph admits cycle-free -cuts only if , as shown in Lemma 13. With this property, an argument similar to that given in the proof of Lemma 11 can be obtained. Details are given in the proof of Lemma 14.
Lemma 13.
For and , any complete -partite graph has no cycle-free -cut.
Proof.
Suppose to the contrary that there is a complete -partite graph that has a cycle-free -cut , for . Observe that there is a component of that intersects at least two partite sets since otherwise induces a . Let be such a component. We claim that there is a or a connecting and two other components and .
If intersects only two partite sets, we take as a component that intersects another partite set, say , and an arbitrary component other than and . Let and be two vertices from and , respectively, with . If and are adjacent, then there is a induced by , , and a vertex in ; otherwise, both and belong to , and there is a formed by , , and two vertices from different partite sets in .
If intersects three or more partite sets, and can be arbitrary. Then an argument similar to the above applies. Consequently, is not cycle-free in either case, which is a contradiction.
Lemma 14.
Assuming ETH, there is no -time algorithm to compute a 1-center spanning tree of an -vertex sparse graph.
Proof.
We reduce 3-IndependentSet to CycleFreeCut-D. Let be an instance of 3-IndependentSet. The reduced instance, , is constructed like the reduction given in the proof of Lemma 11. The vertex set is , where , . The correspondences are the following bijections:
-
,
-
, and
-
.
Also, for convenience, let , , and . The adjacency in is defined as follows. The subgraph induced by is a complete -partite graph, with partite sets , , and . In addition, for every edge of with endpoints and , we make a -cycle . See Fig. 3 for an illustration.
We claim that has an independent set of size if and only if has a cycle-free -cut. For sufficiency, let be a cycle-free -cut. Then has at least components. By Lemma 13, intersects at most two components so at least components consist of vertices from . Since induces an independent set of , each of these components consists of a single vertex. Let and be two such components. There is no edge of with endpoints and since otherwise , , , and form a -cycle. Thus, the components consisting of vertices in correspond to an independent set of , with size at least .
For necessity, let be an independent set of with . Let be the cut of such that the components are the subgraphs induced by the following vertex subsets:
-
, for each ,
-
, where is an arbitrary edge of , and
-
.
Clearly, is a -cut. We show that is cycle-free below. Let be the component induced by . Each vertex of has at most one neighbor outside , which implies that induces no cycle passing through . The remaining subgraph, induced by , contains at most two edges so there is no cycle, either. Thus, is a cycle-free -cut.
The graph in the reduced instance is sparse. The reason is that it has vertices and edges, where and are the numbers of vertices and edges of , respectively. In addition, when the maximum degree of is no more than three, we have , and by Theorem 8 the theorem follows.
Since the number of spanning trees in an -vertex sparse graph is of , the naive method of enumerating all spanning trees and keeping the one with minimum eccentricity is optimal for sparse graphs.
Corollary 15.
To compute a 1-center spanning tree of a sparse graph , the naive method of checking all spanning trees of is optimal, assuming ETH.
2.3 Approximation
We show that there is a PTAS reduction from -MaxIndepSet to CenterSpanningTree, with the error parameter linearly preserved.
Lemma 16.
Let and be instances of -MaxIndepSet and CenterSpanningTree, respectively, with reduced from by the reduction given in the proof of Lemma 11. For and , given a spanning tree of satisfying , an independent set of satisfying can be computed in polynomial time.
Proof.
Recall that for a given graph , the requested graph has , where there are one-to-one correspondences between and , and , and and , respectively. Each edge of corresponds to a -cycle in , and forms a clique (see Fig. 2). We show
-
(i)
how a spanning tree of corresponds to an independent set of , and
-
(ii)
the error parameter is linearly preserved; i.e., if , then .
Let . For (i), we choose to be the set of vertices that correspond to the single-vertex components of . Moreover, we claim the following.
Claim 17.
has an independent set of size if and only if has a spanning tree of eccentricity .
Since every spanning tree is a cycle-free cut, the sufficiency follows immediately from Claim 12. For necessity, by Claim 12 there is a cycle-free -cut, say , with . Specifically, there is a subset of forming of the components, where every single vertex forms one. The remaining component, say , is the subgraph induced by . Since is a clique and every vertex of has degree at least two in , there is a spanning tree of containing all edges in without disconnecting . By Proposition 3, . According to the analysis above, it can be further derived that
| (1) |
and
| (2) |
For (ii), assume that . We claim that . Let . Since the maximum degree of is upper bounded by , we have
| (3) |
The chromatic number of a graph is upper bounded by the maximum degree plus one [9]. It follows that
| (4) |
Along with Eq. (2),
| (5) |
Thus, we have
| (6) |
Corollary 18.
CenterSpanningTree is APX-complete even when the input is restricted to split graphs. Moreover, it is NP-hard to approximate within a factor of .
Proof.
The APX-hardness follows immediately from Lemma 16. For the inapproximability factor, by Theorem 10 we have that -MaxIndepSet is NP-hard to approximate within a factor of . Taking , , and in Lemma 16, the corollary is established.
Analogous to how we modify the proof of Lemma 11 to obtain Lemma 14, by replacing in Lemma 16 with the sparse graph in Lemma 14, we have the following results.
Corollary 19.
CenterSpanningTree is APX-complete even when the input is restricted to sparse graphs. Moreover, it is NP-hard to approximate within a factor of .
3 1-Center Shortest Path
Let be an undirected simple graph, and let and be two distinct vertices of . The set of shortest -paths is denoted by . For a path and two vertices and on , the subpath running between and is denoted by ; if and are adjacent on , we write when depicting the subpath. When referring to a path , we use the same symbol to denote the set of edges on the path. Analogous to the eccentricity of a spanning tree, the eccentricity of a shortest -path is defined to be
A shortest -path is said to be 1-center if
The distance between two vertices and is denoted by , which is the number of edges on a shortest -path. For an edge with endpoints and on a shortest -path, we denote it by if .
Notice that the two conditions for the polytopes we consider are satisfied since a shortest -path can be computed in polynomial time, whereas enumerating all shortest -paths requires exponential time in the worst case.
3.1 NP-Hardness
A double star , with and , consists of two stars, and , along with an additional edge, called the critical edge, connecting the two internal nodes. We distinguish the two stars, the and the , of a double star as the left star and the right star, respectively. For two sets and of disjoint paths, bridging and using a double star is to identify the leaves of the left star of with designated vertices on , respectively, and to identify the leaves of the right star with designated vertices on , respectively. For two paths and , we say that hits if , and touches if .
Lemma 20.
Given a graph and two distinct vertices and , it is NP-hard to determine whether contains a shortest -path that hits all shortest -paths in ; i.e., to determine if there is a path such that .
Proof.
We give a reduction from 3SAT. We assume that each clause contains exactly three literals and each variable appears in some clauses. Consider a 3SAT instance with variables and clauses . In the reduced instance , there are
-
two distinguished vertices, one for and the other for ;
-
variable gadgets, , each consisting of two s;
-
clause gadgets, , each consisting of three s;
-
an assignment gadget, consisting of double stars; for each double star, the internal nodes and of the left and the right stars are connected to and , respectively, each with a path of specific length. We denote the -path by and the -path by .
Each path in the variable gadgets and the clause gadgets is called a literal path. For the two literal paths in a variable gadget, one corresponds to the positive literal and the other the negative one. For the three literal paths in a clause gadget, there is a one-to-one correspondence to the literals in the clause. To ease the presentation, we embed each literal path in the plane horizontally, with a left end and a right end. Vertices on a literal path are numbered from left to right. Let , where is a variable gadget or a clause gadget. The gadgets are interrelated as follows. The left end of each literal path in a variable gadget is made adjacent to ; the right end of each literal path in a clause gadget is made adjacent to ; for each pair of literal paths , with in a variable gadget and in a clause gadget, if both and correspond to an identical literal, concatenate these two paths by making the right end of and the left end of adjacent. We call the resulting graph . See Fig. 4 for an example.
Consecutive variable gadgets, consecutive clause gadgets, and the literal paths in a clause gadget are bridged using the double stars in the assignment gadget. Details are given below.
-
Each of the first double stars is an , bridging a pair of consecutive variable gadgets. To bridge and , for , the designated sets of vertices are and .
-
The th double star is an , bridging the th variable gadget with the first clause gadget. The designated sets of vertices are and .
-
The following double stars are s. Except for the last one, every two of them bridge a clause gadget with itself, and the clause gadget with the next one; the last double star bridges the last clause gadget with itself only. For , to bridge with itself, the designated sets of vertices are and ; to bridge with , the designated sets of vertices are and .
For a critical edge of a double star in an assignment gadget, the numbers of vertices on and are chosen so that the path has length equal to a shortest -path in and remains a shortest -path in . This completes the construction of . See Fig. 5 for an example.
Observation 21.
If a shortest -path passes through no critical edges, then the subpath excluding and consists of two literal paths, one from a variable gadget and the other from a clause gadget. Moreover, the two literal paths correspond to the same literal.
We now show that is satisfiable if and only if there is a shortest -path that hits all shortest -paths in . For necessity, given a satisfiable assignment, we consider a shortest -path such that
-
passes through all critical edges in the assignment gadget;
-
touches the path corresponding to a true literal of every variable gadget;
-
touches two of the three paths of every clause gadget, excluding an arbitrary one corresponding to a true literal in the clause.
If there is a path not hit by , then contains no critical edges. By Observation 21, contains two disjoint subpaths corresponding to the same literal. However, the one from the variable gadget corresponds to a false literal, and the other, which is from a clause gadget, corresponds to a true literal. This leads to a contradiction, so is the requested path. For sufficiency, observe that the path contains all critical edges. In addition, touches exactly one literal path in each variable gadget. Let be the truth assignment such that true literals have their corresponding literal paths in the variable gadgets touched by . We claim that satisfies . Suppose to the contrary that there is a clause that contains no true literal. Then, there is a literal whose corresponding literal paths in the variable gadget and the clause gadget are not hit by , and so is the shortest -path that passes through these two literal paths, a contradiction.
Remark 22.
For a 3SAT instance of variables and clauses, the reduced instance in the proof above has vertices. It follows that computing a 1-center shortest path cannot be done in time, assuming ETH.
Corollary 23.
Let be an -vertex graph, and let and be two vertices of . Assuming ETH, there is no -time algorithm to compute a 1-center shortest -path of .
3.2 An Exact Algorithm to Compute a 1-Center Shortest -Path
A naive way to compute a 1-center shortest -path is to enumerate all shortest -paths, and keep the one with minimum eccentricity. The eccentricity of a given shortest -path can be computed in polynomial time by finding a shortest -path that uses the edges on as few as possible. Thus, this naive method takes time. In the following, we aim for developing a -time algorithm. To achieve the reduced running time, we consider another way, a dynamic programming algorithm, to compute the eccentricity of a shortest -path, say . The vertex set of the graph is partitioned into layers, depending on the distances from . For each vertex in layer , we record the least number of edges that an -path shares with . This value, which we call the intersection index of with respect to , can be computed recursively by finding an optimal path of the form , where is some vertex in layer .
To compute the eccentricity of a 1-center shortest -path, it suffices to compute for every shortest -path the intersection index of with respect to and maintain the minimum. We treat the intersection indices of the vertices in a layer with respect to as a function, called the index function of to the layer. A key observation is that for any layer, the number of different index functions is upper bounded by . The idea of our algorithm is to distinguish the layers by their “thickness”, the numbers of vertices in the layers. For thin layers, we maintain all possible index functions. On the other hand, we enumerate all subpaths passing through the thick layers and compute its eccentricity using the naive method mentioned above. These two parts can be combined and balanced so that the requested running time is achieved.
Precisely, let , and let for . The layered subgraph of with respect to and is defined as
-
and
-
.
Each is called a layer. A path is said to be forward if for all there exists some such that and . Notice that there is a one-to-one correspondence between the set of shortest -paths of and that of forward -paths of . In the following we show how a 1-center forward -path of is computed.
A layer is called thin if and thick otherwise. Let be an exact hitting set of the thick layers; namely for all
A forward path is -governed if every node on that belongs to a thick layer is in . Let be the set of all forward -paths in , and, for a given exact hitting set of thick layers, let be the set of -governed forward -paths in .
For every possible , we compute an -governed forward -path with minimum eccentricity; namely, such a path satisfies
Let be the thin layers. For each -governed forward -path , we associate functions , the index function of to layer , for , and functions , for , where
and
Notice that , the zero function, and . For , observe that
| (7) |
Let
and
Lemma 24.
Let and . Then, if and only if there exists , , and such that
Proof.
The necessity follows immediately from the definition. For sufficiency, we claim that there is an -governed forward -path such that and , and then by Eq. (7)
for all . Such a path can be constructed in a straightforward manner. Let such that and . Clearly, the path is the requested one.
Time complexity.
A thick layer has size greater than , so there are no more than ones. Since each thick layer has size at most , there are different exact hitting sets of the thick layers. For each exact hitting set of the thick layers, since all -governed forward -paths coincide on , there is exactly one function in , given and . This function can be computed in polynomial time by finding a forward -path that uses the edges on as little as possible. For , the set contains functions so along with Lemma 24 computing for all takes time. The overall running time is . See Algorithm 1 for the pseudocode.
4 1-Center Star Subgraph
We consider the problem of finding a discrete 1-center among the extreme points in the star subgraph polytope of an undirected graph. Given an undirected graph and an integer , one can identify all the star subgraphs with leaves. Each star subgraph corresponds to an indicator vector , where the th coordinate of is if the th edge in is included in , and otherwise. Placing the starting points of these indicator vectors at the origin in the space , the convex hull of their endpoints is the star subgraph polytope. Note that the indicator vector of each star subgraph corresponds to an extreme point in the star subgraph polytope because every contains exactly edges.
The two conditions for the polytopes we considered are clearly satisfied since a star subgraph can be output in time linear to the input size, whereas enumerating all star subgraphs requires time in the worst case, which is superpolynomial for superconstant .
We show that:
Lemma 25.
It takes linear time to find a star subgraph such that every other star subgraph can be obtained from with removing edges and subsequently adding edges and is minimized over all choices of star subgraphs with leaves.
Proof.
Assume that is the center node of the target . Classify the star subgraph other than into the following three categories. Let denotes the degree of node in .
-
shares the same center node with . Thus, . Then the largest Hamming distance from any such to is if or otherwise. Let be the largest Hamming distance in this case.
-
has the center node and , and does not contain as an edge. Thus, and . Then the largest Hamming distance from any such to is . Let be the largest Hamming distance in this case.
-
has the center node and , and contains as an edge. Thus, and . If , then the largest Hamming distance from any such to is . Otherwise , such a center node is the only chance that the choices of leaves of matter. If there are more than such center nodes , then the largest Hamming distance from to some star subgraph is . Otherwise, set as in this case.
Taking the maximum of , and gives the desired under the assumption that is the center node of the target . To find the optimal center, we iterate over all possible nodes as candidates. Since each category above requires time, and the process is performed for each of the edges in , the total running time remains linear in the input size.
5 An Extremal Bound
In this section, we show that the polytope depicted in Figure 1 contains the maximum number of vertices in three-dimensional space.
Lemma 26.
Any spanning tree polytope that is embeddable in three-dimensional space contains at most four vertices.
Proof.
We say a point set is a -distance set if the number of distinct pairwise distances between points in is exactly . In three-dimensional space, any 1-distance set contains at most points and any 2-distance set contains at most points [22].
Let be an undirected simple graph whose spanning tree polytope is embeddable in 3D. Then cannot contain any of the following graphs as a subgraph.
-
Any cycle of length . Here is why. Let be a spanning pseudotree of that contains the cycle . Then the number of vertices on the spanning tree polytope of is and each pair of the vertices has distance . This forms a 1-distance set of points, but every 1-distance set in 3D contains at most four points. Because these vertices is a subset of the vertices on the spanning tree polytope of , then the spanning tree polytope of cannot be embedded in 3D.
-
Any pair of edge-disjoint simple cycles. Suppose that contains a pair of edge-disjoint simple cycles and for some . Let be a connected spanning subgraph of that contains only the two cycles and . Then the number of vertices on the spanning tree polytope of is and each pair of the vertices has distance either 2 or 4. This forms a 2-distance set of points, but every 2-distance set in 3D contains at most 6 points. By a similar reason, the spanning tree polytope of cannot be embedded in 3D.
-
The diamond graph. Let be a connected spanning subgraph of that contains only the three simple cycles on the diamond. Then the number of vertices on the spanning tree polytope of is and each pair of the vertices has distance either 2 or 4. This forms a 2-distance set of points, but every 2-distance set in 3D contains at most 6 points. By a similar reason, the spanning tree polytope of cannot be embedded in 3D.
-
The complete bipartite graph. Let be a connected spanning subgraph of that contains only the three simple cycles on the . Then the number of vertices on the spanning tree polytope of is and each pair of the vertices has distance either 2 or 4. This forms a 2-distance set of points, but every 2-distance set in 3D contains at most 6 points. By a similar reason, the spanning tree polytope of cannot be embedded in 3D.
Thus, to have the spanning tree polytope of embeddable in 3D, contains at most one cycle of length 3 or 4. The latter attains the claimed extremal bound.
6 Concluding Remarks
As a final remark, we relate the two graph parameters: treeradius and treewidth, as stated in Theorem 28. Consequently, if a problem admits a fixed-parameter algorithm parameterized by treewidth, it also admits a fixed-parameter algorithm parameterized by treeradius.
Lemma 27 ([4]).
For any vertex in a graph , we have
Theorem 28.
For any graph ,
Proof.
Let be an edge subset that induces a forest in , and let , where is the number of vertices of and is the number of components of . By Proposition 3, it suffices to show that . Denote by the vertex sets of the nontrivial components of , i.e., components of at least vertices. Then
Since for , we have . Hence
Let be the graph obtained by removing all vertices contained in the nontrivial components of . As the remaining vertices in can only be joined by edges in , the graph is a forest and thus has treewidth . Applying Lemma 27 repeatedly yields
Remark 29.
Theorem 28 shows that if the treeradius of a graph is bounded then its treewidth is also bounded. Nonetheless, the converse does not hold in general. For example, as shown in Lemma 13, the complete tripartite graph has treeradius of , which grows unboundedly with , even though its treewidth is .
References
- [1] Amir Abboud, MohammadHossein Bateni, Vincent Cohen-Addad, Karthik C. S., and Saeed Seddighin. On complexity of 1-center in various metrics. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM), volume 275 of LIPIcs, pages 1:1–1:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPICS.APPROX/RANDOM.2023.1.
- [2] Amir Abboud, Nick Fischer, Elazar Goldenberg, Karthik C. S., and Ron Safier. Can you solve closest string faster than exhaustive search? In 31st Annual European Symposium on Algorithms (ESA), volume 274 of LIPIcs, pages 3:1–3:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPICS.ESA.2023.3.
- [3] Amir Abboud, Virginia Vassilevska Williams, and Joshua R. Wang. Approximation and fixed parameter subquadratic algorithms for radius and diameter in sparse graphs. In Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 377–391. SIAM, 2016. doi:10.1137/1.9781611974331.CH28.
- [4] Lowell W. Beineke, Robin J. Wilson, Ortrud R. Oellermann, Dirk Meierling, Lutz Volkmann, Matthias Kriesell, Kiyoshi Ando, R. J. Faudree, Michael Ferrara, Ronald J. Gould, Dieter Rautenbach, Bruce Reed, Ian Anderson, Keith Edwards, Graham Farr, Béla Bollobás, Oliver Riordan, F. T. Boesch, A. Satyanarayana, C. L. Suffel, Abdol-Hossein Esfahanian, R. A. Bailey, and Peter J. Cameron, editors. Topics in Structural Graph Theory. Encyclopedia of Mathematics and its Applications. Cambridge University Press, Cambridge, UK, 2012.
- [5] Amir Ben-Dor, Giuseppe Lancia, Jennifer Perone, and R. Ravi. Banishing bias from consensus sequences. In Combinatorial Pattern Matching, 8th Annual Symposium (CPM), volume 1264 of Lecture Notes in Computer Science, pages 247–261. Springer, 1997. doi:10.1007/3-540-63220-4_63.
- [6] Piotr Berman and Toshihiro Fujito. On approximation properties of the independent set problem for degree 3 graphs. In Algorithms and Data Structures, pages 449–460, Berlin, Heidelberg, 1995. Springer Berlin Heidelberg.
- [7] Paul S. Bonsma. Spanning trees with many leaves in graphs with minimum degree three. SIAM J. Discret. Math., 22(3):920–937, 2008. doi:10.1137/060664318.
- [8] Hajo Broersma and Xueliang Li. Spanning trees with many or few colors in edge-colored graphs. Discuss. Math. Graph Theory, 17(2):259–269, 1997. doi:10.7151/DMGT.1053.
- [9] R. L. Brooks. On colouring the nodes of a network. Mathematical Proceedings of the Cambridge Philosophical Society, 37(2):194–197, April 1941.
- [10] Yi-Jun Chang, Martin Farach-Colton, Tsan-sheng Hsu, and Meng-Tsung Tsai. Streaming complexity of spanning tree computation. In 37th International Symposium on Theoretical Aspects of Computer Science (STACS), volume 154 of LIPIcs, pages 34:1–34:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPICS.STACS.2020.34.
- [11] Miroslav Chlebík and Janka Chlebíková. Inapproximability results for bounded variants of optimization problems. In Fundamentals of Computation Theory, 14th International Symposium (FCT), volume 2751 of Lecture Notes in Computer Science, pages 27–38. Springer, 2003. doi:10.1007/978-3-540-45077-1_4.
- [12] Moti Frances and Ami Litman. On covering problems of codes. Theory Comput. Syst., 30(2):113–119, 1997. doi:10.1007/S002240000044.
- [13] M. R. Garey and David S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, 1979.
- [14] Leszek Gasieniec, Jesper Jansson, and Andrzej Lingas. Efficient approximation algorithms for the hamming center problem. In Proceedings of the Tenth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 905–906. ACM/SIAM, 1999. URL: http://dl.acm.org/citation.cfm?id=314500.315081.
- [15] R. E. Gomory and T. C. Hu. Multi-terminal network flows. Journal of the Society for Industrial and Applied Mathematics, 9(4):551–570, 1961.
- [16] Russell Impagliazzo and Ramamohan Paturi. On the complexity of k-SAT. J. Comput. Syst. Sci., 62(2):367–375, 2001. doi:10.1006/JCSS.2000.1727.
- [17] Russell Impagliazzo, Ramamohan Paturi, and Francis Zane. Which problems have strongly exponential complexity? J. Comput. Syst. Sci., 63(4):512–530, 2001. doi:10.1006/JCSS.2001.1774.
- [18] David S. Johnson and Mario Szegedy. What are the least tractable instances of max independent set? In Proceedings of the Tenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’99, pages 927–928, USA, 1999. Society for Industrial and Applied Mathematics. URL: http://dl.acm.org/citation.cfm?id=314500.315093.
- [19] Daniel J. Kleitman and Douglas B. West. Spanning trees with many leaves. SIAM J. Discret. Math., 4(1):99–106, 1991. doi:10.1137/0404010.
- [20] J. Kevin Lanctôt, Ming Li, Bin Ma, Shaojiu Wang, and Louxin Zhang. Distinguishing string selection problems. Inf. Comput., 185(1):41–55, 2003. doi:10.1016/S0890-5401(03)00057-9.
- [21] Ming Li, Bin Ma, and Lusheng Wang. On the closest string and substring problems. J. ACM, 49(2):157–171, 2002. doi:10.1145/506147.506150.
- [22] Petr Lisonek. New maximal two-distance sets. J. Comb. Theory A, 77(2):318–338, 1997. doi:10.1006/JCTA.1997.2749.
- [23] Christos H. Papadimitriou and Kenneth Steiglitz. Combinatorial Optimization: Algorithms and Complexity. Prentice-Hall, 1982.
- [24] Nikola Stojanovic, Piotr Berman, Deborah Gumucio, Ross C. Hardison, and Webb Miller. A linear-time algorithm for the 1-mismatch problem. In Algorithms and Data Structures, 5th International Workshop (WADS), volume 1272 of Lecture Notes in Computer Science, pages 126–135. Springer, 1997. doi:10.1007/3-540-63307-3_53.
- [25] Bang Ye Wu and Kun-Mao Chao. Spanning trees and optimization problems. Discrete mathematics and its applications. Chapman & Hall, 2004.
