The NP-Completeness of Some Edge-Partition Problems

Similar documents
The NP-completeness of some edge-partitioning. problems

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch]

arxiv: v2 [cs.cc] 29 Mar 2010

Reductions and Satisfiability

Localization in Graphs. Richardson, TX Azriel Rosenfeld. Center for Automation Research. College Park, MD

Packing Edge-Disjoint Triangles in Given Graphs

Computability Theory

NP-Completeness of 3SAT, 1-IN-3SAT and MAX 2SAT

Example of a Demonstration that a Problem is NP-Complete by reduction from CNF-SAT

Max-Cut and Max-Bisection are NP-hard on unit disk graphs

Graph Vertex Colorability & the Hardness. Mengfei Cao COMP-150 Graph Theory Tufts University

NP-completeness of 4-incidence colorability of semi-cubic graphs

A New Reduction from 3-SAT to Graph K- Colorability for Frequency Assignment Problem

arxiv: v1 [cs.cc] 2 Sep 2017

The strong chromatic number of a graph

Isomorphism of Graphs Which are k-separable*

Algorithmic Aspects of Acyclic Edge Colorings

On Approximating Minimum Vertex Cover for Graphs with Perfect Matching

The Complexity of the Network Design Problem

1 Introduction. 1. Prove the problem lies in the class NP. 2. Find an NP-complete problem that reduces to it.

Number Theory and Graph Theory

Vertex-Colouring Edge-Weightings

PCP and Hardness of Approximation

Abstract. A graph G is perfect if for every induced subgraph H of G, the chromatic number of H is equal to the size of the largest clique of H.

NP-Completeness. Algorithms

Max-Cut and Max-Bisection are NP-hard on unit disk graphs

On Universal Cycles of Labeled Graphs

Recognizing Interval Bigraphs by Forbidden Patterns

Deciding k-colorability of P 5 -free graphs in polynomial time

8 NP-complete problem Hard problems: demo

The Structure of Bull-Free Perfect Graphs

Trees with many leaves

Some Hardness Proofs

Graph Isomorphism Completeness for Chordal bipartite graphs and Strongly Chordal Graphs

NP-complete Reductions

1. Suppose you are given a magic black box that somehow answers the following decision problem in polynomial time:

Graph Theory S 1 I 2 I 1 S 2 I 1 I 2

Theorem 3.1 (Berge) A matching M in G is maximum if and only if there is no M- augmenting path.

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

Complexity Results on Graphs with Few Cliques

FOUR EDGE-INDEPENDENT SPANNING TREES 1

Chordal Graphs: Theory and Algorithms

by conservation of flow, hence the cancelation. Similarly, we have

On Covering a Graph Optimally with Induced Subgraphs

On Acyclic Vertex Coloring of Grid like graphs

Vertex 3-colorability of claw-free graphs

Math 170- Graph Theory Notes

SUBDIVISIONS OF TRANSITIVE TOURNAMENTS A.D. SCOTT

A Deterministic Polynomial-time Algorithm for the Clique Problem and the Equality of P and NP Complexity Classes

Discrete Mathematics

[8] that this cannot happen on the projective plane (cf. also [2]) and the results of Robertson, Seymour, and Thomas [5] on linkless embeddings of gra

Acyclic Edge Colorings of Graphs

Maximization Versions of Lights Out Games in Grids and Graphs

K 4 C 5. Figure 4.5: Some well known family of graphs

A Simplied NP-complete MAXSAT Problem. Abstract. It is shown that the MAX2SAT problem is NP-complete even if every variable

Discrete Applied Mathematics. A revision and extension of results on 4-regular, 4-connected, claw-free graphs

Treewidth and graph minors

Fundamental Properties of Graphs

Parameterized graph separation problems

Bar k-visibility Graphs: Bounds on the Number of Edges, Chromatic Number, and Thickness

Robert Cowen and Stephen H. Hechler. Received June 4, 2003; revised June 18, 2003

Extremal Graph Theory: Turán s Theorem

Graphs with Two Disjoint Total Dominating Sets

Best known solution time is Ω(V!) Check every permutation of vertices to see if there is a graph edge between adjacent vertices

Grundy chromatic number of the complement of bipartite graphs

SAT-CNF Is N P-complete

3-colouring AT-free graphs in polynomial time

On the Balanced Case of the Brualdi-Shen Conjecture on 4-Cycle Decompositions of Eulerian Bipartite Tournaments

MAT 145: PROBLEM SET 6

Approximability Results for the p-center Problem

COMP260 Spring 2014 Notes: February 4th

COLORING EDGES AND VERTICES OF GRAPHS WITHOUT SHORT OR LONG CYCLES

W4231: Analysis of Algorithms

On vertex-coloring edge-weighting of graphs

Adjacent: Two distinct vertices u, v are adjacent if there is an edge with ends u, v. In this case we let uv denote such an edge.

Maximum colorful cliques in vertex-colored graphs

NP-completeness of generalized multi-skolem sequences

Cycles through specified vertices in triangle-free graphs

Infinite locally random graphs

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W.

NP versus PSPACE. Frank Vega. To cite this version: HAL Id: hal

Subdivisions of Graphs: A Generalization of Paths and Cycles

Coloring edges and vertices of graphs without short or long cycles

Graphic TSP in cubic graphs

Ma/CS 6b Class 5: Graph Connectivity

A Note on Vertex Arboricity of Toroidal Graphs without 7-Cycles 1

arxiv:math/ v1 [math.co] 20 Nov 2005

ON THE COMPLEXITY OF THE BROADCAST SCHEDULING PROBLEM

9.1 Cook-Levin Theorem

Bipartite Roots of Graphs

A THREE AND FIVE COLOR THEOREM

Eulerian disjoint paths problem in grid graphs is NP-complete

Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees

Math 443/543 Graph Theory Notes 11: Graph minors and Kuratowski s Theorem

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

NP-Hardness. We start by defining types of problem, and then move on to defining the polynomial-time reductions.

Graph Theory Questions from Past Papers

Exact Algorithms Lecture 7: FPT Hardness and the ETH

Triangle Graphs and Simple Trapezoid Graphs

Complexity and approximation of satisfactory partition problems

Transcription:

The NP-Completeness of Some Edge-Partition Problems Ian Holyer y SIAM J. COMPUT, Vol. 10, No. 4, November 1981 (pp. 713-717) c1981 Society for Industrial and Applied Mathematics 0097-5397/81/1004-0006 $1.00/0 Abstract. We show that for each fixed n 3 it is NP-complete to determine whether an arbitrary graph can be edge-partitioned into subgraphs isomorphic to the complete graph Kn. The NP-completeness of a number of other edge-partition problems follows immediately. Key words. computational complexity, NP-complete problems, edge-partition problems 1. Introduction. Many graph theory problems have been shown to be NP-complete and so are believed not to have polynomial time algorithms. Garey and Johnson [1] give an account of the theory of NP-completeness, a list of known NP-complete problems and a bibliography of the subject. In particular, they list several NP-complete vertex-partition problems [1, p. 193] including vertex-partition into cliques [] and vertex-partition into isomorphic subgraphs [3]. In this paper, we consider some similar problems for edge-partitions. We define the edgepartition problem EP n as follows. Given a graph G =(V;E), the problem is to determine whether the edge-set E can be partitioned into subsets E1, E, ::: in such a way that each E i generates a subgraph of G isomorphic to the complete graph K n on n vertices. Our main result is that the problem EP n is NP-complete for each n 3. From this we deduce that a number of other edge-partition problems are NP-complete. In order to show that EP n is NP-complete, we will exhibit a polynomial reduction from the known NP-complete problem 3SAT which is defined as follows. A set of clauses C = fc1;c;::: ;C r g in variables u1,u, :::,u s is given, each clause C i consisting of three literals l i;1;l i;;l i;3 where a literal l i;j is either a variable u k or its negation u k. The problem is to determine whether C is satisfiable, that is, whether there is a truth assignment to the variables which simultaneously satisfies all the clauses in C. A clause is satisfied if one or more of its literals has value true.. The main theorem. Our first task is to find a graph which can be edge-partitioned into K n s in exactly two distinct ways. Such a graph can be used as a switch to represent the two possible values true and false of a variable in an instance of 3SAT. For each n 3 and p 3 we define a graph H n;p =(V n;p ;E n;p ) by V n;p = (x =(x1;::: ;x n) Z np : nx x i 0 i=1 E n;p = fxy : there exist i; j such that y k x k for k 6= i; j and y i x i +1;y i x j, 1g where the equivalences are modulo p. Note that H n;p can be regarded as embedded in the (n, 1)-dimensional torus T n,1 = S 1 S 1 ::: S 1, and that the local structure of H n;p is the same for each p (see Fig. 1). The properties of H n;p are given in the following lemma. Received by the editors July 18, 1979, and in final form January 7, 1981 y University Computer Laboratory, University of Cambridge, Cambridge, England. This work was supported by the British Science Research Council. ) ; 1

(3,0,-3) (,0,-) (1,0,-1) (0,0,0) (1,-1,0) (,-,0) (3,-3,0) (i) (ii) Figure 1: (i) H3;3 embedded in the (-dimensional) torus. Opposite sides are identified as shown. (ii) The local structure of H4;p. The edges of a single K4 are shown. LEMMA. The graph H n;p has the following properties: (i) Thedegreeofeachvertexis, n. (ii) The largest complete subgraph is K n, and any K3 is contained in a unique K n. (iii) The number of K n s containing a particular vertex is n. (iv) Each edge occurs in just two K n s. (v) Each two distinct K n s are either edge-disjoint or have just one edge in common. (vi) There are just two distinct edge-partitions of H n;p into K n s. Proof. (i) By translational symmetry we need only consider 0 =(0;::: ;0). This is adjacent to (1;,1; 0;::: ; 0) and the distinct points obtained from it by permuting its coordinates (0; 1;,1 are distinct modulo p as p 3). There are clearly, n of these. (ii) By translation and coordinate permutation we may assume that a largest complete subgraph contains the vertices 0 =(0;::: ;0), (1;,1; 0;::: ; 0) and (1; 0;,1; 0;::: ; 0). It is then forced to be the standard K n, which we call K and whose vertices are: (0; 0; 0; ::: ; 0) (1;,1; 0;::: ; 0) (1; 0;,1;::: ; 0) ::: (1; 0; 0 ::: ;,1) (iii) The K n s containing 0 are obtained from K and its inverse,k by cyclic permutation of the coordinates. Thus there are n of them. (iv) We need only consider a particular edge containing the vertex 0 and check that it is contained in just two of the K n s given in (iii). (v) If two K n s are not disjoint, we may assume that they have vertex 0 in common. We may then use (iii) to check that they have just one more vertex in common. (vi) The edges containing 0 can be partitioned in at most two ways, and these extend to the whole of H n;p. All the K n s are obtained from K or,k by translation. One edge-partition consists of the translates of K, and the other consists of the translates of,k. We now make the following definitions. The T-partition of H n;p (corresponding to logical value true ) consists of the translates of K,and the F-partition (corresponding to false ) consists of the translates of,k. Two K n s in H n;p are called neighbors if they have a common edge. A patch is a subgraph of H n;p consisting of the vertices and edges of a particular K n and of

its neighbors. It is a T-patch if the central K n belongs to the T-partition, and it is an F-patch otherwise. Two patches P1, P in H n;p are called noninterfering if the distance d(x; y) in H n;p between vertices x V (P1) and y V (P) is always at least 10, say. THEOREM. The edge-partition problem EP n is NP-complete for each n 3. Proof. The problem EP n is clearly in NP. Suppose we have an instance C = fc1;c;::: ;C r g of 3SAT in s variables u1, u, :::, u s where each C i consists of literals l i;1, l i;, l i;3. We reduce this instance of 3SAT to an instance G n =(V n ;E n ) of EP n as follows. Choose p sufficiently large so that up to 3r noninterfering patches can be chosen in H n;p say p = 100r. Take a copy U i of H n;p to represent each variable u i and copies C i;1, C i; and C i;3 of H n;p to represent each clause C i. Join these copies of H n;p together as follows. If literal l i;j is u k, then identify an F-patch of C i;j with an F-patch of U k.ifl i;j is u k, then identify an F-patch of C i;j with a T-patch of U k as indicated for n =3in Fig.. a f e d b c c b d e f a Figure : The identification of an F-patch with a T-patch when n =3. Similarly labelled vertices (and the edges between them) are identified. Also join C i;1, C i; and C i;3 for each i by identifying one F-patch from each and then removing the edges of the central K n (see Fig. 3). Choose all those patches which occur in a single copy of H n;p to be noninterfering. Denote by G n = (V n ;E n ) the graph obtained in this way. We now show that there is an edge-partition of G n into K n s if and only if the instance C of 3SAT is satisfiable. Suppose that there is an edge-partition of G n into a set S of K n s, and consider a particular copy H of H n;p involved in the construction of G n.takea K n in S, saya, which is in H, but not near any join. Using the properties in the lemma, we see that the neighbors of A do not belong to S, the neighbors of the neighbors of A do belong to S, and so on. Continuing in this way, we deduce that all the edges of H, except perhaps those involved in joins, are T-partitioned, or all F-partitioned. Thus we may say that H is T-partitioned or F-partitioned. Now suppose l i;j is u k and consider the join between C i;j and U k. We claim that the edges in the vicinity of this join can be edge-partitioned into K n s if and only if at least one of C i;j, U k is T-partitioned. If (say) C i;j is T-partitioned, this accounts for all the edges of C i;j near the joining patch except for those of the patch itself. The patch can then be regarded as belonging to U k which can then be locally partitioned in either way. If on the other hand both C i;j and U k are F-partitioned, the argument of the previous paragraph shows that the edges of the patch not belonging to the central K n are forced to belong to the F-partitions of both C i;j and U k,whichis a contradiction. Similarly, if l i;j is u k, then either C i;j is F-partitioned or U k is T-partitioned. Now consider the join between C i;1, C i; and C i;3. We claim that the edges in the vicinity of this join can be edge-partitioned into K n s if and only if exactly one of C i;1, C i;, C i;3 is F- partitioned. The argument is the same as above, except that now, as the central K n is missing, the remaining edges of the patch must be claimed by an F-partition in exactly one of C i;1, C i;, C i;3. 3

Figure 3: The join between C i;1, C i; and C i;3 when n =3. Thus if G n can be edge-partitioned into K n s, then there is a truth assignment to u1, :::, u s which satisfies C, namely u k has value true if and only if U k is T-partitioned. If C is satisfiable, we partition G n by partitioning U k according to the truth of u k in a satisfying assignment, choosing one true literal l i;j for each i,andf-partitioning the corresponding C i;j. It should be clear that the above reduction from 3SAT to EP n can be carried out using a polynomial time algorithm, and so the proof of the theorem is complete. 3. Deductions. The following problems are now easily seen to be NP-complete. (i) Find the maximum number of edge-disjoint K n s in a graph (n 3). (ii) Find the maximum number of edge-disjoint maximal cliques in a graph. (iii) Edge-partition a graph into the minimum number of complete subgraphs. (iv) Edge-partition a graph into maximal cliques. (v) Edge-partition a graph into cycles C m of length m. For (i) we use the same construction as for EP n. For (ii), (iii) and (iv) we use the same construction as for EP3. Note that G3 contains no K4 s, and every edge K is in a K3, sothe maximal cliques coincide with the K3 s. For (v) we alter the construction for EP3 in the following way. Note that the edges in H3;p occur in three distinct directions, say a, b and c, and that the joins in the construction of G3 are made so that edges which are identified have the same direction. In G3, replace each edge with direction a (say) by a path of m, edges. We conjecture that the problem of edge-partitioning a graph into subgraphs isomorphic to a fixed graph H is NP-complete for all graphs H with at least 3 edges. The problem is polynomial if H has at most edges, and it is easy to show that the problem is NP-complete for a number of particular small, connected graphs H. The NP-completeness of the problem seems difficult to prove if H is disconnected, e.g., if H =3K, thatis,h has 6 vertices and 3 independent edges. REFERENCES [1] M.R. GAREY AND D.S. JOHNSON, Computers and Intractability, W.H.Freeman, San Francisco, 1979. 4

[] R.M. KARP, Reducibility among combinatorial problems, in Complexity of Computer Computations, R.E. Miller and J.W. Thatcher, eds., Plenum, New York, 197, pp. 85-103. [3] D.G. KIRKPATRICK AND P. HELL, On the complexity of a generalized matching problem, in Proc. 10th Annual ACM Symposium on Theory of Computing, Association for Computing Machinery, New York, 1978, pp. 40-45. 5