arxiv: v2 [cs.cc] 29 Mar 2010

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

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

SAT-CNF Is N P-complete

8.1 Polynomial-Time Reductions

arxiv: v1 [cs.cc] 2 Sep 2017

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

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

8 NP-complete problem Hard problems: demo

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

Computability Theory

Chapter 8. NP and Computational Intractability. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Where Can We Draw The Line?

The NP-Completeness of Some Edge-Partition Problems

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

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

NP-Completeness. Algorithms

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

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

NP and computational intractability. Kleinberg and Tardos, chapter 8

ABSTRACT Finding a cut or nding a matching in a graph are so simple problems that hardly are considered problems at all. Finding a cut whose split edg

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

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

W4231: Analysis of Algorithms

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

CMPSCI611: The SUBSET-SUM Problem Lecture 18

1 Definition of Reduction

Homework 4 Solutions

Reductions. Linear Time Reductions. Desiderata. Reduction. Desiderata. Classify problems according to their computational requirements.

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

Algorithmic Aspects of Acyclic Edge Colorings

8.1 Polynomial-Time Reductions

On Approximating Minimum Vertex Cover for Graphs with Perfect Matching

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

NP-complete Reductions

Reductions and Satisfiability

Graphs with Two Disjoint Total Dominating Sets

NP-Complete Reductions 2

The Complexity of Camping

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

Exercises Computational Complexity

Structure and Intractability of Optimal Multi-Robot Path Planning on Graphs

9.1 Cook-Levin Theorem

Connecting face hitting sets in planar graphs

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

arxiv: v1 [cs.cc] 30 Jun 2017

Complexity of Disjoint Π-Vertex Deletion for Disconnected Forbidden Subgraphs

P and NP (Millenium problem)

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

VISUALIZING NP-COMPLETENESS THROUGH CIRCUIT-BASED WIDGETS

Solving Dominating Set in Larger Classes of Graphs: FPT Algorithms and Polynomial Kernels

CSCE750 Analysis of Algorithms Fall 2017 NP-Complete Problems

Terrain Guarding is NP-Hard

A Complexity Dichotomy for Finding Disjoint Solutions of Vertex Deletion Problems

Finding a winning strategy in variations of Kayles

Hardness of Approximation for the TSP. Michael Lampis LAMSADE Université Paris Dauphine

Eulerian disjoint paths problem in grid graphs is NP-complete

An exact algorithm for max-cut in sparse graphs

HW Graph Theory SOLUTIONS (hbovik) - Q

CS 580: Algorithm Design and Analysis

3/7/2018. CS 580: Algorithm Design and Analysis. 8.1 Polynomial-Time Reductions. Chapter 8. NP and Computational Intractability

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/27/18

SCHEDULING WITH RELEASE TIMES AND DEADLINES ON A MINIMUM NUMBER OF MACHINES *

Partitions of Graphs into Trees

Lecture 20: Satisfiability Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY

ALGORITHMS EXAMINATION Department of Computer Science New York University December 17, 2007

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

The Complexity of Minimizing Certain Cost Metrics for k-source Spanning Trees

Some Hardness Proofs

Vertex Cover Approximations

Complexity results for Minimum Sum Edge Coloring

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

Complexity Classes and Polynomial-time Reductions

Exact Algorithms Lecture 7: FPT Hardness and the ETH

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/18/14

Complexity Results on Graphs with Few Cliques

More NP-Complete Problems [HMU06,Chp.10b] Node Cover Independent Set Knapsack Real Games

Lecture 2: NP-Completeness

The Satisfiability Problem [HMU06,Chp.10b] Satisfiability (SAT) Problem Cook s Theorem: An NP-Complete Problem Restricted SAT: CSAT, k-sat, 3SAT

Tutorial for Algorithm s Theory Problem Set 5. January 17, 2013

Feedback Arc Set in Bipartite Tournaments is NP-Complete

Treewidth and graph minors

Near-colorings: non-colorable graphs and NP-completeness

arxiv: v1 [cs.cc] 29 May 2013

V1.0: Seth Gilbert, V1.1: Steven Halim August 30, Abstract. d(e), and we assume that the distance function is non-negative (i.e., d(x, y) 0).

Inapproximability of the Perimeter Defense Problem

On Covering a Graph Optimally with Induced Subgraphs

1 Introduction and Results

On the Complexity of Broadcast Scheduling. Problem

ON THE COMPLEXITY OF THE BROADCAST SCHEDULING PROBLEM

arxiv:cs/ v1 [cs.cc] 28 Apr 2003

Copyright 2000, Kevin Wayne 1

Permutation Routing in the Hypercube and Grid Topologies

Improved Results on Geometric Hitting Set Problems

W[1]-hardness. Dániel Marx. Recent Advances in Parameterized Complexity Tel Aviv, Israel, December 3, 2017

The Resolution Width Problem is EXPTIME-Complete

Paths, Flowers and Vertex Cover

Parameterized Complexity of Finding Subgraphs with Hereditary Properties

Lecture 24: More Reductions (1997) Steven Skiena. skiena

Linear Problem Kernels for NP-Hard Problems on Planar Graphs

New Worst-Case Upper Bound for #2-SAT and #3-SAT with the Number of Clauses as the Parameter

Transcription:

On a variant of Monotone NAE-3SAT and the Triangle-Free Cut problem. arxiv:1003.3704v2 [cs.cc] 29 Mar 2010 Peiyush Jain, Microsoft Corporation. June 28, 2018 Abstract In this paper we define a restricted version of Monotone NAE-3SAT and show that it remains NP-Complete even under that restriction. We expect this result would be useful in proving NP-Completeness results for problems on k-colourable graphs (k 5). We also prove the NP- Completeness of the Triangle-Free Cut problem. 1 Introduction SAT was first proven to be NP-Complete in a seminal paper by Cook [1] which led to the current theory around NP-Completeness. Many variants of SAT have been shown to be NP-Complete and the Not-All-Equal 3SAT [2] (or NAE-3SAT in short) has been found to be particularly useful. SAT variants have been especially useful in proving NP-Completeness of various graph related problems for restricted classes of graphs. For instance, the planar version of 3SAT, Planar-3SAT is known to be NP- Complete [4] and has been useful in proving NP-Completeness of planar graph related problems. Unfortunately, the planar version of NAE-3SAT is in P [5]. We consider a version of NAE-3SAT which might prove useful in proving NP-Completeness results of k-colourable graphs, for k 5. For instance, from the result of this paper, it immediately follows that MAX- CUT is NP-Complete for 5-colourable graphs. Of course, this is weaker than the currently known result that MAXCUT is NP-Complete for 3- colourable graphs [7], but we expect this result might still prove to be useful for other problems. We also show that the triangle-free cut problem is NP-Complete. This is the vertex colouring variant of the Monochromatic Triangle Problem, which is known to be NP-Complete [3]. 1

2 Preliminaries In this section we define the problems about which we are going to prove NP-Completeness results. 2.1 k-colourable Monotone NAE-3SAT Given any monotone CNF expression φ with exactly three distinct (unnegated) literals per clause, we associate a simple undirected graph G(φ) with φ as follows: Each variable of φ is a vertex of the graph, and two vertices have an edge between them iff they appear in some clause together. A variant is to have an additional vertex for each clause and connect them to the variables which appear in them. The result of this paper holds true for both the variants. We can now define our problem. Definition. The k-colourable Monotone NAE-3SAT decision problem: Given a monotone CNF expression φ with exactly three distinct variables in each clause, such that the corresponding graph G(φ) defined earlier is k-colourable, is the expression φ not-all-equal satisfiable? It is easy to see that 4-colourable monotone NAE-3SAT is in P. We show that 5-colourable Monotone NAE-3SAT is NP-Complete, by going via a reduction that also proves the NP-Completeness of the Triangle-Free cut problem (defined below). 2.2 Triangle Free Cut Suppose we are given a graph and we want to know if there is a colouring of the vertices with two colours so that there is no monochromatic triangle. This problem can be stated in terms of cuts and triangle-free graphs. Definition. Triangle-Free Cut: Given a simple, undirected graph G(V, E) with vertex set V and edge set E, a cut of G is a partition of V into two non-empty sets V 1 and V V 1. We say that the cut is triangle-free if the induced sub-graphs of G on V 1 and V V 1 both do not contains any triangles. Thus we have: Definition. The Triangle-Free Cut decision problem: Given a simple, undirected graph G(V, E), is there a triangle-free cut of G? It is easy to see that this problem is in NP. For the class of 4-colourable graphs, the problem of determining the existence of a triangle-free cut is trivial: Just form a cut by putting vertices 2

of two colours in one set and the remaining coloured vertices in the other. We show that Triangle-Free Cut problem is NP-Complete for the class of 5-colourable and bounded degree ( 8) graphs. 3 NP-Completeness of Triangle-Free Cut We start with the version of Monotone-NAE-3SAT in which each clause has exactly three distinct variables [6]. Given such a Monotone-NAE- 3SAT expression, we construct a graph which has a triangle free cut if and only if the expression is NAE-satisfiable. We show that the constructed graph has the property that it is 5-colourable and has maximum degree 8. i.e. we prove the following theorem: Theorem 1. The Triangle-Free Cut decision problem is NP-Complete for the class of 5-colourable and maximum degree 8 graphs. Proof. Suppose we are given a monotone expression with variables x 1, x 2,..., x n and clauses c 1,..., c m. We first transform this expression as follows: If a variable x = x 1(say) appears k > 1 times, we replace it with k variables y j, 1 j k and add k 1 clauses to ensure that the y j variables get the same truth values. wlog, assume that x = x 1 appears in clauses c 1, c 2,..., c k. Say c i = (x a i b i), 1 i k We replace these clauses with the k new clauses: c i = (y i a i b i), 1 i k and add k 1 new clauses c i = (y i y i+1), 1 i k 1 We do this for each repeated variable. This transformation is a polynomial time transform and the resulting expression is NAE-satisfiable if and only if the original expression is NAE-satisfiable. The resulting expression has the following properties: 1. Each clause is of the form (x y z) or (x y). 2. Each variable appears no more than three times. 3. Any two variables appear together in no more than one clause. 4. A variable appears exactly once in a clause with three literals. 5. If a variable appears exactly once or twice, it appears un-negated. 6. If a variable appears thrice, the negated literal appears exactly once. We now construct a graph G(V, E) from the expression we just created. We associate a vertex with each variable. For any clause with exactly three variables (note that the literals here are unnegated), we connect 3

the corresponding vertices, forming a triangle. Observe that no two such triangles have a common vertex or edge. For clauses of the form (x y), we connect them using the gluedtetrahedra gadget in figure 1. Figure 1: Tetrahedra Gadget In the gadget, notice that x and y are not adjacent, of degree 3 and that it is 5-colourable even if we assign arbitrary colours to x and y. Also notice that any triangle-free cut of this gadget necessarily has x and y in the same set and that there actually exists a triangle-free cut of this gadget. Now the graph so formed is 5-colourable: We pick a three literal clause and colour the corresponding vertices of the triangle arbitrarily with three different colours. Given any clause of the form (x y), we already have a colouring of x and y and the vertices in the gadget connecting them can be coloured so as to maintain 5-colourability. Also notice that the maximum degree of any vertex in this graph is 8, as it can be part of atmost two gadgets and one triangle. Now consider any triangle in the graph. This is either a triangle formed due to a three variable clause, or is a triangle completely within a gadget instance. We now claim that this graph has a triangle-free cut if and only if the expression is NAE-Satisfiable. 4

3.1 NAE-Satisfiablity implies existence of trianglefree cut Assume the expression was NAE-Satisfiable. Now put the variables which are set to true in one set and the variables which are set to false in another. We now show that this can be extended to give a triangle-free cut of the graph. For any triangle which is formed because of a clause, since not all variables are true (or false), at least one edge of the triangle is part of the cut. Any clause of the form (x y) is NAE-Satisfiable iff both x and y get assigned true, or both get assigned false. Now this implies that the corresponding gadget vertices can be assigned to the vertex sets so that all the triangles in the gadget are cut by the cut. Thus, if the expression is NAE-Satisfiable, then the graph has a trianglefree cut. 3.2 Existence of triangle-free cut implies NAE- Satisfiability Now assume that the graph has a triangle-free cut. Pick any one vertex set of the cut and set the variables in those to true. Set the remaining variables to false. Now this assignment makes the expression NAE-satisfiable. Each triangle corresponding to a three variable clause has at least one true and one false vertex, thus making the clause NAE-Satisfiable. For any clause of the form (x y), x and y are necessarily in the same set, thus making the clause NAE-Satisfiable. This proves the NP-Completeness of the triangle-free cut problem on 5-colourable, bounded degree ( 8) graphs. 4 NP-Completeness of k-colourable Monotone- NAE-3SAT We prove the following: Theorem 2. k-colourable Monotone-NAE-3SAT is NP-Complete for k 5. Moreover, it remains NP-Complete if each variable is restricted to appear no more than 7 times. Proof. It is easy to see that the above reduction to triangle-free cut carries over to the 5-colourable Monotone NAE-3SAT in a natural manner (by making the vertices variables, and triangles the clauses) such that the graph has a triangle free cut if and only if the corresponding 5-colourable Monotone NAE-3SAT expression is satisfiable. Moreover, each vertex of the graph appears in at most 7 triangles (2 gadgets and 1 clause triangle 5

or 5 triangles for a gadget vertex) and so each variable in the expression appears no more than 7 times. Thus 5-colourable Monotone NAE-3SAT is NP-Complete and remains so even under the restriction that each variable appears no more than 7 times. 5 Conclusion We have shown that the decision versions of k-colourable Monotone NAE- 3SAT and Triangle-Free Cut problem for k-colourable graphs are NP- Complete for k 5. The next steps would be to prove the NP-Completeness (or give polynomial time algorithms) of the corresponding search problems when k = 3 or k = 4. References [1] Cook, S. A. 1971. The complexity of theorem-proving procedures. In Proceedings of the Third Annual ACM Symposium on theory of Computing (Shaker Heights, Ohio, United States, May 03-05, 1971). STOC 71. ACM, New York, NY, 151-158. [2] T. J. Schaeffer. 1978. The complexity of satisfiability problems, Proc. 10th STOC, (1978), pp. 216 226. [3] M.R. Garey, D.S. Johnson. 1979. Computers and Intractability, A Guide to the Theory of NP-Completeness, W.H. Freeman and Co., New York, 1979. [4] D. Lichtenstein. 1981. Planar formulae and their uses, SIAM J. on Computing 11 (1981). [5] Moret, B. M. 1988. Planar NAE3SAT is in P. SIGACT News 19, 2 (Jun. 1988), 51-54. [6] Moret, B. M. 1998. The Theory of Computation, Addison-Wesley- Longman, 1998. Chapter 7, Problem 7.1, Part 2. [7] H. L. Bodlaender and K. Jansen. 2000. On the complexity of the maximum cut problem. Nordic Journal of Computing, 7(1):14-31, 2000. 6