Decomposing a graph into subgraphs with small components
Abstract
The component size of a graph is the maximum number of edges in any connected component of the graph. Given a graph and two integers and , -Decomposition is the problem of deciding whether admits an edge partition into subgraphs with component size at most . We prove that for any fixed and , -Decomposition is NP-complete in bipartite graphs. Also, when both and are part of the input, -Decomposition is NP-complete even in trees. Moreover, -Decomposition in trees is W[1]-hard with parameter , and is FPT with parameter . In addition, we present approximation algorithms for decomposing a tree either into the minimum number of subgraphs with component size at most , or into subgraphs minimizing the maximum component size. En route to these results, we also obtain a fixed-parameter algorithm for Bin Packing with the bin capacity as parameter.
1 Introduction
Edge coloring is the problem of assigning a color to each edge of a graph such that no two adjacent edges have the same color. Any edge coloring of a graph with maximum degree requires at least colors. Vizing’s theorem states that colors suffice. The minimum number of colors in any edge coloring of a graph is its chromatic index. Deciding whether the chromatic index of a graph with maximum degree is or is generally a hard computational problem, although a constructive proof of Vizing’s theorem [25] implies a polynomial-time approximation algorithm with additive error at most . Holyer [15] proved that edge coloring cubic graphs with three colors, where , is already NP-complete. Extending this result, Leven and Galil [21] proved that edge coloring -regular graphs with colors is NP-complete for any . Cai and Ellis [3] further proved that edge coloring -regular line graphs of bipartite graphs with colors is NP-complete for any odd . On the other hand, it is known that colors always suffice for edge coloring bipartite graphs; see [4, Proposition 18.1.3] for a simple proof. Moreover, edge coloring bipartite graphs (or bipartite multigraphs) admits an efficient polynomial-time exact algorithm, even when is part of the input [6].
Define the component size of a graph as the maximum number of edges in any connected component of the graph. In this paper, we study the following problem that generalizes edge coloring:
Definition 1.
Given a graph and two integers and , -Decomposition is the problem of deciding whether admits an edge partition into subgraphs with component size at most .
We show that graph decomposition becomes hard, even in bipartite graphs, when the upper bound on the component size of the resulting subgraphs is relaxed from (as in edge coloring) to any fixed :
Theorem 1.
For any fixed and , -Decomposition is NP-complete in bipartite graphs.
The arboricity of a graph is the minimum number of parts in an edge partition of the graph such that each part induces a forest [26]. The trees in the forests may be restricted to various subclasses of trees, leading to several related concepts of arboricity. For example, the linear arboricity (respectively, star arboricity) of a graph is the minimum number of parts in an edge partition of the graph such that each part induces a disjoint union of paths (respectively, stars). While the arboricity of any graph can be computed in polynomial time [11], the arboricities with various restrictions on the trees often turn out to be hard to compute [17]. Our proof of Theorem 1 shows that arboricity and star arboricity with bounded component size are also hard to compute:
Corollary 1.
For any fixed and , deciding whether a bipartite graph admits an edge partition into forests with component size at most is NP-complete.
Corollary 2.
For any fixed and , deciding whether a bipartite graph admits an edge partition into forests of stars with component size at most is NP-complete.
The linear -arboricity of a graph is the minimum number of parts in an edge partition of the graph into linear -forests, i.e., disjoint unions of paths of length at most [1]. Note that linear -arboricity is simply chromatic index. Thus the aforementioned results on edge coloring [15, 21, 3] imply that determining the linear -arboricity of a graph is hard. Bermond, Fouquet, Habib, and Peroche [1] proved that deciding whether a cubic graph has linear -arboricity at most is NP-complete, and conjectured that determining the linear -arboricity of a graph is hard for all . Since linear -arboricity is equivalent to arboricity and star arboricity with component size at most , the case of this conjecture is confirmed by our Corollary 1 and Corollary 2:
Corollary 3.
For any fixed , deciding whether a bipartite graph has linear -arboricity is NP-complete.
For two graphs and , an -decomposition of is an edge partition of into subgraphs isomorphic to . For any fixed graph , the problem of deciding whether an input graph admits an -decomposition is NP-complete when has a component of at least three edges [7], and is polynomially solvable when every component of has at most two edges [2], in contrast to Corollary 3.
We established in Theorem 1 that -Decomposition is NP-complete in bipartite graphs. It is natural to ask whether the problem remains hard in simpler graphs. Our next theorem characterizes the complexity of -Decomposition in trees:
Theorem 2.
When both and are part of the input, -Decomposition in trees is NP-complete, is W[1]-hard with parameter , and is FPT with parameter .
Theorem 2 implies that for any fixed , -Decomposition in trees can be solved in polynomial time. For the related arboricity problem of deciding whether a tree admits an edge partition into linear -forests, Chang, Chen, Fu, and Huang [5] presented an algorithm that runs in polynomial time when is fixed.
The decision problem -Decomposition may be extended to two different optimization problems:
Definition 2.
Given a graph and an integer , Minimum-Color Decomposition is the problem of decomposing into the minimum number of subgraphs with component size at most .
Definition 3.
Given a graph and an integer , Minimum-Size Decomposition is the problem of decomposing into subgraphs minimizing the maximum component size.
Theorem 1 implies that Minimum-Color Decomposition for any fixed and Minimum-Size Decomposition for any fixed are APX-hard and inapproximable within a factor of in bipartite graphs. The previous results on edge coloring [15, 21, 3] imply that Minimum-Color Decomposition for is APX-hard and inapproximable within a factor of in general graphs. In the next two theorems, we show that both minimization problems can be approximated very well in trees:
Theorem 3.
There is a linear-time approximation algorithm for Minimum-Color Decomposition in trees that finds an edge partition of any tree into at most subgraphs with component size at most , where is the smallest number such that can be decomposed into subgraphs with component size at most .
Theorem 4.
There is a polynomial-time approximation scheme for Minimum-Size Decomposition in trees that finds an edge partition of any tree into subgraphs with component size at most , where is the smallest number such that can be decomposed into subgraphs with component size at most .
Kleinberg, Motwani, Raghavan, and Venkatasubramanian [19] introduced -Fragmented Coloring, the problem of vertex partitioning a graph into induced subgraphs such that the number of vertices in each component of each subgraph is at most . Our problem -Decomposition is equivalent to -Fragmented Coloring in line graphs, since edge partitioning a graph is the same as vertex partitioning the line graph .
The problem -Fragmented Coloring in general graphs is easily shown to be NP-hard for any and , because the graph property of at most vertices in each component is additive and induced-hereditary, while vertex partitioning into fixed additive induced-hereditary properties is NP-hard in general [10], except the special case of bipartite testing, i.e., vertex partitioning into two independent sets. Also, the problem is trivial in bipartite graphs (and hence in trees), since every bipartite graph has a vertex partition into two induced subgraphs in which every component has only one vertex.
Our proofs of Theorem 2, Theorem 3, and Theorem 4 are based on a close relationship between -Decomposition in trees and the classical problem of Bin Packing:
Definition 4.
Given items of integer weights , , and bins of integer capacity , Bin Packing is the problem of deciding whether the items can be packed into the bins, that is, whether the set of items can be partitioned into subsets, such that the total weight of the items in each subset is at most . Unary Bin Packing is the version of Bin Packing where all integers in the problem instance are encoded in unary.
It is well-known that Bin Packing is strongly NP-hard [12], and hence Unary Bin Packing is NP-hard, when both and are part of the input. In terms of parameterized complexity, Jansen et al. [16] proved that Unary Bin Packing, even with the condition , is already W[1]-hard with parameter . In the following theorem, we obtain a fixed-parameter algorithm for Bin Packing with parameter :
Theorem 5.
Bin Packing admits an exact algorithm running in time, where is the size of the problem instance encoded in binary.
Hochbaum and Shmoys [13] introduced the notion of dual approximation algorithms that approximate the feasibility of a problem rather than its optimality. The existence of dual approximation algorithms for Bin Packing, similar to the one in the following theorem, are known [14, Sections 9.3.2.1 and 9.3.2.2]. We obtain a simple alternative via Theorem 5.
Theorem 6.
Bin Packing admits a dual approximation algorithm that, given items and bins of capacity , and given , either decides that the items can be packed into enlarged bins of capacity and returns yes, or decides that the items cannot be packed into bins of capacity and returns no, in time, where is the size of the problem instance encoded in binary.
Throughout the paper, the size of a graph is the number of edges in it. We may refer to an edge partition of a graph into subgraphs and the corresponding -color assignment to the edges interchangeably.
2 Hardness of decomposing bipartite graphs
In this section we prove Theorem 1, Corollary 1, and Corollary 2. Fix any and . The problem -Decomposition and the related arboricity problems are clearly in NP. We prove their NP-hardness in bipartite graphs in the following.
2.1 Building blocks
The building blocks of our construction are a series of bipartite graphs for . is the star with one edge designated as an outlet. For , has outlets and is constructed recursively as follows. Take disjoint copies of and disjoint copies of . Attach a distinct outlet from each copy of to the center of each copy of . Then designate the edges of all copies of in the resulting graph as its outlets. Refer to Figures 1 and 2 for some examples.
It is easy to verify that is bipartite. Since it includes copies of and copies of , its size is at most
(1) |


Lemma 1.
admits an edge partition into subgraphs with component size at most . Moreover, in any edge partition of into subgraphs with component size at most , each component must be a star , and the outlets must belong to the same subgraph.
Proof.
We prove the lemma by induction on . For the base case when , the lemma clearly holds for . Now let for the inductive step.
We first show that admits an edge partition into subgraphs with component size at most . By the induction hypothesis, admits an edge partition into subgraphs in which each component is a star , and the outlets are in the same subgraph. Consider the -color assignment to the edges of corresponding to this edge partition. Then by rotation of colors, there is an edge partition of the union of the copies of in , such that the outlets from different copies have different colors. Thus the outlets from the copies of have different colors. Assign the remaining color to all edges of the disjoint copies of in . This color assignment corresponds to an edge partition of into subgraphs in which each component is a star , and the outlets are all in the same subgraph.
We next show that in any edge partition of into subgraphs with component size at most , each component must be a star , and the outlets must be in the same subgraph. Consider an arbitrary edge partition of into subgraphs with at most edges in each component, and the corresponding -color assignment to the edges of . Then in the derived edge partition of each copy of in , each component is a star , and all outlets are in the same subgraph, by the induction hypothesis. Moreover, since each component in each copy of already has the maximum allowable size , the outlets from different copies of must have different colors to avoid forming larger components. Then all edges of the disjoint copies of in must have the only remaining color. ∎
2.2 Reduction for
Our proof for the case of Theorem 1, Corollary 1, and Corollary 2 is based on a reduction from the NP-complete problem 2-Colorability of 3-Uniform Hypergraphs [23].
A -uniform hypergraph consists of a set of vertices and a set of hyperedges, where each hyperedge in is a subset of exactly vertices in . A hypergraph is -colorable if its vertices can be colored with colors such that in each hyperedge, not all vertices have the same color.
Given a -uniform hypergraph , we will construct a bipartite graph with maximum degree such that is -colorable if and only if admits an edge partition into subgraphs with component size at most .
Let be the maximum degree of , that is, the maximum number of hyperedges in which a vertex is contained. Let be the smallest integer such that .
Include in a distinct copy of for each vertex in , and a distinct copy of for each hyperedge in . For each hyperedge in , which consists of three vertices, take distinct outlets from the corresponding three copies of , with at least one outlet from each copy, then attach the outlets to the leaves of the copy of corresponding to the hyperedge, with one outlet to each leaf. This completes the construction of .
Recall that has outlets. Since , each copy of can contribute at least distinct outlets to each adjacent copy of . On the other hand, of the three copies of adjacent to each copy of , each must contribute at least and hence at most of the outlets. Thus there are enough outlets from each copy of to the adjacent copies of .
By our choice of , we have and hence . Recall (1) that the size of is at most . Since and , we have
The reduction is clearly polynomial. The following lemma completes the proof for the case of Theorem 1, Corollary 1 and Corollary 2:
Lemma 2.
is -colorable if and only if admits an edge partition into two subgraphs with component size at most , if and only if admits an edge partition into two forests with component size at most , if and only if admits an edge partition into two forests of stars with component size at most .
Proof.
It suffices to prove a cycle of four implications:
-
1.
if is -colorable, then admits an edge partition into two forests of stars with component size at most ,
-
2.
if admits an edge partition into two forests of stars with component size at most , then admits an edge partition into two forests with component size at most ,
-
3.
if admits an edge partition into two forests with component size at most , then admits an edge partition into two subgraphs with component size at most ,
-
4.
if admits an edge partition into two subgraphs with component size at most , then is -colorable.
We first prove implication 1. Suppose that there is a -coloring of the vertices of such that in each hyperedge, not all three vertices have the same color. Color the edges in each copy of in with two colors to partition them into two subgraphs as in Lemma 1, such that all outlets in each copy of have the same color as the corresponding vertex in . Next color the edges in each copy of in corresponding to a hyperedge in , such that each edge of has a color different (note that there are only two colors available) from the adjacent outlet. Since in each hyperedge of not all three vertices have the same color, and since the outlets adjacent to the edges of include at least one outlet from each of the three copies of , it follows that not all edges have the same color. Thus we obtain an edge partition of into two subgraphs with component size at most . Note that the two subgraphs are indeed two forests of stars.
Implications 2 and 3 are trivial.
We next prove implication 4. Suppose that admits an edge partition into two subgraphs with component size at most . Color the edges of with two colors according to this partition. Then it follows by Lemma 1 that in each copy of in , each component is a star with edges, and all outlets have the same color. Assign this color to the corresponding vertex in . Since each outlet of is already in a component of the maximum allowable size , each edge of must have a color different from its adjacent outlet. In each copy of , not all edges can have the same color under the constraint of component size at most . Correspondingly, in each hyperedge of , not all three vertices have the same color either. Thus is -colorable. ∎
2.3 Reduction for
Our proof for the case of Theorem 1, Corollary 1, and Corollary 2 is based on a reduction from the NP-complete problem -Colorability, which asks whether a given graph admits a vertex coloring with colors. Maffray and Preissmann [24] proved that for any , -Colorability is NP-hard even in triangle-free graphs. Emden-Weinert, Hougardy, and Kreuter [9] proved that for any , -Colorability is NP-hard in graphs with maximum degree . Note that -Colorability for is just bipartite testing which is well-known to be solvable in polynomial time. Thus we had to prove the case by reduction from a different problem.
Let be an input graph for -Colorability. Construct as follows. Let be the smallest integer such that is at least the maximum degree of . For each vertex in , include in a distinct copy of . For each edge in , which consists of two vertices, take a distinct outlet from the copy of for each vertex, then join the two ends of the two outlets into one vertex.
It is easy to verify that is bipartite, and the reduction is polynomial. Moreover, by a similar argument as in the proof of Lemma 2, is -colorable if and only if admits an edge partition into subgraphs with component size at most , if and only if admits an edge partition into forests with component size at most , if and only if admits an edge partition into forests of stars with component size at most .
3 Fixed-parameter algorithm for bin packing
In this section we prove Theorem 5 by obtaining a fixed-parameter algorithm for Bin Packing with parameter .
Recall Definition 4 that the input to Bin Packing consists of items of integer weights , , and bins of integer capacity . The problem has a solution only if and , which we assume. Let be the size of the problem instance encoded in binary. Then . In particular, we have .
For , let be the number of items with weight . In time, we can compute for all . Then . With the multiplicities for , we no longer need for . Henceforth, we work on the integers only. Without loss of generality, we increase until . Note that each has magnitude at most , where . It remains to decide whether the items with multiplicities can be partitioned into subsets, each of total weight exactly .
Consider the two vectors and in . Then the condition becomes . For , let
Then is the set of vectors corresponding to all feasible patterns of item multiplicities for a single bin, and we can reformulate the problem as deciding whether there exists a multiset of vectors in whose sum is .
Recall that the partition number for is the number of multisets of positive integers summing up to . In particular, . Then, by definition, the size of is exactly . Moreover, the size of is at most for all .
It is known that [22, Theorem 15.7]. Let be the smallest integer such that for all . Since , we have .
Let , , be the vectors in . For any index set , the vector , where for all , is called an integer conical combination of vectors in . Consider the integer conical hull of consisting of all integer conical combinations of vectors in :
We prove the following lemma using a common technique for Carathéodory bounds; see for example [8, Lemma 3].
Lemma 3.
Every vector in can be represented as the integer conical combination of at most distinct vectors in .
Proof.
Let be any set of distinct indices from , where . Then has distinct subsets. Denote by the size of a set . For each subset , where , the vector satisfies
and hence with . Thus is one of the vectors in .
Consider any vector , where for all . Suppose that . Then by our choice of , we have . Note that the number of vectors in is at most . Thus the number of distinct subsets of exceeds the number of vectors in . By the pigeonhole principle, there are two distinct subsets and of such that . Then and are two distinct and disjoint subsets of such that . Assume without loss of generality that .
Let . We can rewrite as follows:
where
Note that for all , and that for at least one index . Thus is expressed as the integer conical combination of at most distinct vectors in .
By repeating the above argument, we can eventually obtain a representation of as the integer conical combination of at most distinct vectors in . ∎
If there is a multiset of vectors in summing up to , then is an integer conical combination of vectors in , and hence is included in , and hence by Lemma 3 can be represented as an integer conical combination of distinct vectors in . Thus to decide whether there exists a multiset of vectors in whose sum is , we can enumerate all subsets of of size , then for each subset , check whether has a solution with for all .
The checking step reduces to an integer linear program, with linear constraints on at most variables , and with integer coefficients at most , where .
We now analyze the running time of our algorithm. Recall that converting the item weights to multiplicities takes time. Finding the vectors in , for , takes time. The number of subsets of of size is at most .
Solving an integer linear program with variables and constraints and with maximum coefficient takes time111See discussion at https://cstheory.stackexchange.com/questions/16530 for more refined estimates. [20, 18]. In our setting, this is .
Thus the total running time is , which simplifies to , since . This completes the proof of Theorem 5.
4 Dual approximation algorithm for bin packing
In this section we prove Theorem 6.
Fix any . Separate the items into two groups: small items of weight at most , and large items of weight greater than .
Let . Note that . For each large item of weight , let be the largest integer such that . Then .
The algorithm works as follows. If the total weight of the items exceeds , then clearly the items cannot be packed into bins of capacity , so return no. Otherwise, construct a set of scaled items including one item of weight for each large item of weight . Use the fixed-parameter algorithm in Theorem 5 to decide whether the set of at most scaled items can be packed into scaled bins of capacity , then return the answer accordingly.
Lemma 4.
If the scaled items can be packed into scaled bins of capacity , then the items can be packed into enlarged bins of capacity .
Proof.
For each large item of weight , the corresponding scaled item has weight
Thus each scaled bin of capacity can hold at most scaled items.
For the scaled items in each scaled bin, the sum of their weights is at most , and hence the sum of is at most . Recall that , and hence . Corresponding to the at most scaled items in each scaled bin, the total weight of the large items can exceed by at most , and hence is at most . Thus we can pack all large items into enlarged bins of capacity .
Since the total weight of both large and small items is at most , at least one of the enlarged bins is filled to at most of its capacity , and hence can always accommodate one more small item of weight at most . Thus we can pack all small items into the enlarged bins after the large items. ∎
Lemma 5.
If the scaled items cannot be packed into scaled bins of capacity , then the items cannot be packed into bins of capacity .
Proof.
We prove the contrapositive. Suppose that the items of total weight at most can be packed into bins of capacity . Then by discarding the small items and rounding down the weights of the large items to integer multiples of , the rounded items of weights can be packed into bins of capacity , and hence the scaled items of integer weights can be packed into scaled bins of capacity . ∎
5 Parameterized complexity of decomposing trees
In this section we prove Theorem 2. The problem -Decomposition is clearly in NP. In the following, we prove that when both and are part of the input, -Decomposition in trees is not only NP-hard but also W[1]-hard with parameter , and is FPT with parameter .
5.1 NP-hardness and W[1]-hardness with parameter
We give a polynomial reduction from Unary Bin Packing with bins to -Decomposition in trees. Recall that Unary Bin Packing is W[1]-hard with parameter [16].
Given items of weights , , and bins of capacity , we construct a tree with edges as follows. For each item of weight , make a star with edges. Then select an arbitrary leaf from each star, and merge the leaves selected from the stars into one center vertex, denoted by .
We claim that the items can be packed into bins of capacity if and only if the tree can be decomposed into subgraphs with component size at most .
We first prove the direct implication of the claim. Suppose that the items can be packed into bins of capacity . We color the edges of the tree with colors as follows. First color the edges incident to the center vertex with colors corresponding to the items in the bins. Then for each star with edges, color additional edges with the same color as the edge incident to the center vertex , and color the remaining edges with the other colors, edges of each color. Then the edges of each color induce a forest with component size at most .
We next prove the reverse implication of the claim. Suppose that the tree can be decomposed into subgraphs with component size at most . Color the edges of with colors corresponding to the subgraphs. Then in the star with edges corresponding to the item of weight , the edge incident to the center vertex must have the same color as at least other edges, because the other colors can accommodate at most edges. Note that for each of the colors, the edges of this color that are incident to , as well as the other edges of the same color in their respective stars, are all connected, and form one component of size at most . Put the items into bins corresponding to the colors of the edges incident to . Then the items in each bin must have total weight at most too.
5.2 FPT with parameter
We present a fixed-parameter algorithm for -Decomposition in trees with parameter . Let be a tree with vertices and edges, rooted at an arbitrary vertex of degree .
For each edge between a vertex and its parent in , denote by the subtree of rooted at plus the edge , and denote by the minimum such that admits an edge partition into subgraphs with component size at most , under the constraint that is in a component of size at most . If no such exists, let . Then admits an edge partition into subgraphs with component size at most if and only if for all edges .
We can compute by dynamic programming, following a post-order traversal of the rooted tree . For each edge incident to a leaf, we clearly have . For each edge between an internal node and its parent, and for a candidate size , we can check whether as follows.
Let be the number of edges incident to . Construct items corresponding to the edges. Each edge between and a child corresponds to an item of weight , which has been computed following the post-order traversal. The edge between and its parent corresponds to an item of weight , where the surplus of in addition to for the edge accounts for the difference between the desired component size for and the upper bound . Then admits an edge partition into subgraphs with component size at most , where is in a component of size at most , if and only if the items can be packed into bins of capacity .
By Theorem 5, there is a fixed-parameter algorithm for Bin Packing that decides whether the items thus constructed can be packed into bins of capacity in time, where is the encoding size of the Bin Packing instance with items. By one invocation of this fixed-parameter algorithm with , we either find that and abort the traversal of , or find that . In the latter case, we can then determine the exact value of in by a binary search, using the fixed-parameter algorithm as a decision procedure.
The total running time of the algorithm is
Thus -Decomposition in trees is FPT with parameter . This completes the proof of Theorem 2.
6 Approximation algorithms for decomposing trees
In this section we prove Theorem 3 and Theorem 4. Let be a tree with vertices, edges, and maximum degree , rooted at an arbitrary vertex of degree .
6.1 Approximating Minimum-Color Decomposition
We first present a linear-time approximation algorithm for Minimum-Color Decomposition.
Perform a pre-order traversal of the rooted tree . The root is incident to only one edge, which is colored arbitrarily. At each vertex other than the root, color the at most edges to its children with at most colors (at most edges of each color), all different from the color of the edge from its parent.
It is straightforward to verify that the edges of each color induce a forest with component size at most , and moreover each component is a star with at most edges.
Let and . The minimum number of subgraphs with component size at most into which can be decomposed is at least . On the other hand, our algorithm colors the edges of with colors, where . This completes the proof of Theorem 3.
6.2 Approximating Minimum-Size Decomposition
We next present a polynomial-time approximation scheme for Minimum-Size Decomposition.
We first note that our approximation algorithm for Minimum-Color Decomposition can be slightly modified to yield a -approximation for Minimum-Size Decomposition as follows. During the pre-order traversal of the rooted tree , at each vertex other than the root, color the at most edges to its children with at most colors (at most edges of each color), all different from the color of the edge from its parent. Let and . In any edge partition of into subgraphs, there is a subgraph with component size at least . On the other hand, our algorithm colors the edges of with colors such that the edges of each color induce a forest with component size at most , where
Now fix any . To obtain a -approximation of the optimal component size , it suffices to perform a binary search in the integer range , using a subroutine that decides either or for any candidate component size . When the search range is reduced to with , we must have , and the subroutine with decomposes the tree into subgraphs with component size at most .
The subroutine on a candidate component size is similar to our fixed-parameter algorithm with parameter in Theorem 2. As before, for each edge between a vertex and its parent in the rooted tree , denote by the subtree of rooted at plus the edge , and denote by the minimum such that admits an edge partition into subgraphs with component size at most , under the constraint that is in a component of size at most . If no such exists, let .
By definition, if , then is the unique integer that satisfies the following two conditions:
-
A.
admits an edge partition into subgraphs with component size at most , where is in a component of size at most .
-
B.
does not admit any edge partition into subgraphs with component size at most , where is in a component of size at most .
Instead of computing directly, the subroutine tries to find a feasible value that satisfies the following two conditions, and records it in :
-
C.
admits an edge partition into subgraphs with component size at most , where is in a component of size at most .
-
B.
does not admit any edge partition into subgraphs with component size at most , where is in a component of size at most .
The subroutine computes by dynamic programming, following a post-order traversal of the rooted tree . For each edge incident to a leaf, set . For each edge between an internal node and its parent, check whether there exists a feasible value for that satisfies conditions C and B, as follows.
Let be the number of edges incident to . Construct items corresponding to the edges. Each edge between and a child corresponds to an item of weight . The edge between and its parent corresponds to an item of weight .
By Theorem 6, there is a dual approximation algorithm for Bin Packing that, given the items and bins of capacity , either decides that the items can be packed into enlarged bins of capacity and returns yes, or decides that the items cannot be packed into bins of capacity and returns no.
First call this dual approximation algorithm with . If its answer is no, then abort the traversal of , and declare that . Otherwise, find a feasible value for that satisfies both conditions C and B by a binary search, using the dual approximation algorithm as a decision procedure.
If the traversal of finishes successfully, declare that .
The correctness of the subroutine can be verified by induction following the post-order traversal. In particular, for all edges such that a feasible value is found for , we have because they satisfy the same condition B, while condition C is a relaxation of condition A. Also observe that the answers of the dual approximation algorithm have the following two implications:
-
•
If the items can be packed into enlarged bins of capacity , then admits an edge partition into subgraphs with component size at most , where is in a component of size at most .
-
•
If the items cannot be packed into bins of capacity , then does not admit any edge partition into subgraphs with component size at most , where is in a component of size at most .
By Theorem 6, the running time of the dual approximation algorithm on the items is , where is the encoding size of the problem instance. The total running time of the algorithm, including the nested binary searches on and on , is
Thus we have a polynomial-time approximation scheme for Minimum-Size Decomposition. This completes the proof of Theorem 4.
7 Concluding remark
In our study of graph decomposition problems in this paper, the focus is on bipartite graphs and trees. It may be interesting to investigate the complexities of these problems on other important graph classes too.
References
- [1] J. C. Bermond, J. L. Fouquet, M. Habib, and B. Peroche. On linear -arboricity. Discrete Mathematics, 52:123–132, 1984.
- [2] K. Bryś and Z. Lonc. Polynomial cases of graph decomposition: a complete solution of Holyer’s problem. Discrete Mathematics, 309:1294–1326, 2009.
- [3] L. Cai and J. A. Ellis. NP-completeness of edge-colouring some restricted graphs. Discrete Applied Mathematics, 30:15–27, 1991.
- [4] P. J. Cameron. Combinatorics: Topics, Techniques, Algorithms. Cambridge University Press, 1994.
- [5] G. J. Chang, B.-L. Chen, H.-L. Fu, and K.-C. Huang. Linear -arboricities on trees. Discrete Applied Mathematics, 103:281–287, 2000.
- [6] R. Cole, K. Ost, and S. Schirra. Edge-coloring bipartite multigraphs in time. Combinatorica, 21:5–12, 2001.
- [7] D. Dor and M. Tarsi. Graph decomposition is NP-complete: a complete proof of Holyer’s conjecture. SIAM Journal on Computing, 26:1166–1187, 1997.
- [8] F. Eisenbrand and G. Shmonin. Carathéodory bounds for integer cones. Operations Research Letters, 34:564–568, 2006.
- [9] T. Emden-Weinert, S. Hougardy, and B. Kreuter. Uniquely colourable graphs and the hardness of colouring graphs of large girth. Combinatorics, Probability and Computing, 7:375–386, 1998.
- [10] A. Farrugia. Vertex-partitioning into fixed additive induced-hereditary properties is NP-hard. The Electronic Journal of Combinatorics, 11:#R46, 2004.
- [11] H. N. Gabow and H. H. Westermann. Forests, frames, and games: algorithms for matroid sums and applications. Algorithmica, 7:465–497, 1992.
- [12] M. R. Garey and D. S. Johnson. Computers and Intractability: A Guide to the Theory of NP-completeness. W. H. Freeman and Company, 1979.
- [13] D. S. Hochbaum and D. B. Shmoys. Using dual approximation algorithms for scheduling problems: theoretical and practical results. Journal of the ACM, 34:144–162, 1987.
- [14] D. S. Hochbaum (editor). Approximation Algorithms for NP-hard Problems. PWS Publishing Company, 1997.
- [15] I. Holyer. The NP-completeness of edge-coloring. SIAM Journal on Computing, 10:718-720, 1981.
- [16] K. Jansen, S. Kratsch, D. Marx, and I. Schlotter. Bin packing with fixed number of bins revisited. Journal of Computer and System Sciences, 79:39–49, 2013.
- [17] M. Jiang. Trees, paths, stars, caterpillars and spiders. Algorithmica, 80:1964-1982, 2018.
- [18] R. Kannan. Minkowski’s convex body theorem and integer programming. Mathematics of Operations Research, 12:415–440, 1987.
- [19] J. Kleinberg, R. Motwani, P. Raghavan, and S. Venkatasubramanian. Storage management for evolving databases. In Proceedings of the 38th Annual Symposium on Foundations of Computer Science (FOCS’97), pages 353–362, 1997.
- [20] H. W. Lenstra Jr. Integer programming with a fixed number of variables. Mathematics of Operations Research, 8:538–548, 1983.
- [21] D. Leven and Z. Galil. NP completeness of finding the chromatic index of regular graphs. Journal of Algorithms, 4:35–44, 1983.
- [22] J. H. van Lint and R. M. Wilson. A Course in Combinatorics. Second Edition. Cambridge University Press, 2001.
- [23] L. Lovász. Coverings and colorings of hypergraphs. In Proceedings of the 4th Southeastern Conference on Combinatorics, Graph Theory and Computing, pages 3–12, Utilitas Mathematica Publishing, Winnipeg, 1973.
- [24] F. Maffray and M. Preissmann. On the NP-completeness of the -colorability problem for triangle-free graphs. Discrete Mathematics, 162:313–317, 1996.
- [25] J. Misra and D. Gries. A constructive proof of Vizing’s theorem. Information Processing Letters, 41:131–133, 1992.
- [26] C. St.J. A. Nash-Williams. Decomposition of finite graphs into forests. Journal of the London Mathematical Society, 39:12, 1964.