Topics in Algorithms 2005 Max Cuts

Slides:



Advertisements
Similar presentations
Iterative Rounding and Iterative Relaxation
Advertisements

Submodular Set Function Maximization via the Multilinear Relaxation & Dependent Rounding Chandra Chekuri Univ. of Illinois, Urbana-Champaign.
NP-Hard Nattee Niparnan.
C&O 355 Lecture 23 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
Max Cut Problem Daniel Natapov.
Semi-Definite Algorithm for Max-CUT Ran Berenfeld May 10,2005.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Approximation Algoirthms: Semidefinite Programming Lecture 19: Mar 22.
Semidefinite Programming
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
Approximation Algorithms
Last class Decision/Optimization 3-SAT  Independent-Set Independent-Set  3-SAT P, NP Cook’s Theorem NP-hard, NP-complete 3-SAT  Clique, Subset-Sum,
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 24 Instructor: Paul Beame.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
Clique Cover Cook’s Theorem 3SAT and Independent Set
Randomized Algorithms Morteza ZadiMoghaddam Amin Sayedi.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
Design Techniques for Approximation Algorithms and Approximation Classes.
Approximating Minimum Bounded Degree Spanning Tree (MBDST) Mohit Singh and Lap Chi Lau “Approximating Minimum Bounded DegreeApproximating Minimum Bounded.
Topics in Algorithms 2005 Constructing Well-Connected Networks via Linear Programming and Primal Dual Algorithms Ramesh Hariharan.
NP Complexity By Mussie Araya. What is NP Complexity? Formal Definition: NP is the set of decision problems solvable in polynomial time by a non- deterministic.
Prabhas Chongstitvatana1 NP-complete proofs The circuit satisfiability proof of NP- completeness relies on a direct proof that L  p CIRCUIT-SAT for every.
1 3-COLOURING: Input: Graph G Question: Does there exist a way to 3-colour the vertices of G so that adjacent vertices are different colours? 1.What could.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
Linear Program Set Cover. Given a universe U of n elements, a collection of subsets of U, S = {S 1,…, S k }, and a cost function c: S → Q +. Find a minimum.
Implicit Hitting Set Problems Richard M. Karp Erick Moreno Centeno DIMACS 20 th Anniversary.
1 Suppose I construct a TM M f which: 1. Preserves its input u. 2. Simulates a machine M b on input ε. 3. If M b hangs on input ε, force an infinite loop.
NPC.
Given this 3-SAT problem: (x1 or x2 or x3) AND (¬x1 or ¬x2 or ¬x2) AND (¬x3 or ¬x1 or x2) 1. Draw the graph that you would use if you want to solve this.
Topics in Algorithms 2005 Linear Programming and Duality Ramesh Hariharan.
Non-LP-Based Approximation Algorithms Fabrizio Grandoni IDSIA
Instructor: Shengyu Zhang 1. Optimization Very often we need to solve an optimization problem.  Maximize the utility/payoff/gain/…  Minimize the cost/penalty/loss/…
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
Approximation Algorithms based on linear programming.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Approximation algorithms
The Theory of NP-Completeness
The NP class. NP-completeness
More NP-Complete and NP-hard Problems
Lap Chi Lau we will only use slides 4 to 19
Richard Anderson Lecture 26 NP-Completeness
Topics in Algorithms Lap Chi Lau.
Richard Anderson Lecture 26 NP-Completeness
Approximation algorithms
Randomized Algorithms
Richard Anderson Lecture 25 Min Cut Applications and NP-Completeness
Possibilities and Limitations in Computation
Lecture 8 – Nonlinear Programming Models
CS154, Lecture 16: More NP-Complete Problems; PCPs
ICS 353: Design and Analysis of Algorithms
Intro to NP Completeness
Richard Anderson Lecture 28 Coping with NP-Completeness
Prabhas Chongstitvatana
CSE 6408 Advanced Algorithms.
The Theory of NP-Completeness
CS154, Lecture 16: More NP-Complete Problems; PCPs
Richard Anderson Lecture 27 Survey of NP Complete Problems
Instructor: Aaron Roth
Instructor: Aaron Roth
ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS
Presentation transcript:

Topics in Algorithms 2005 Max Cuts Ramesh Hariharan

Undirected Unweighted Max Cut Cut: Partition of the vertex set Max Cut: Number of edges between the two sides of the partition should be maximized t s

Status Max Cut is NP-Complete!! Unlike Min-cut. If we can solve this problem we can solve the 3-SAT problem and we can solve any problem which can be solved in non-deterministic polynomial time by a Turing Machine. t s

NP-Completeness Show that Max Cut is NP-Complete: Reduce from 3-SAT Given a 3-SAT formula f find a graph G and a number k such that f is sat implies G has a cut of size k. f is not sat implies G has no cut of size k or larger.

Reduction from 3-SAT Reduce from 3-SAT: Put 2 vertices for each variable x, one for x and one for x Connect pairs of vertices x,x by k edges Put one vertex for each clause Connect literals in that clause to it The Max Cut will always split complement literal pairs why?? Ideally, the Max Cut should now equal the number of clauses satisfied plus nk where n is number of variables Problems! A clause could have more than 1 satisfying literal Clause vertices could get split as well

Reduction from 3-SAT Reduce from 3-SAT: We need to ensure that each satisfied clause contributes the exact same amount to each cut and each unsatisfied clause contributes a lesser amount. How do we ensure this?? We need to handle splitting of clause vertices. How? Trick Work with heterogeneous 3-SAT instead 3-SAT in which satisfiability requires the assignment to have at least one true and one false in each clause Heterogeneous 3-SAT is also NP-Complete. Exercise??

Reduction from hetero-3-SAT Reduce from hetero-3-SAT with m clauses and n variables: Put 2m vertices for each variable x, m for x and m for x There are 2 vertices associated with each clause Connect all m^2 pairs of vertices x,x by k edges each forcing them to come on different sides For each clause Connect the three literals for this clause together. The Max Cut is knm^2+2#satisfiable clauses. Why??

Approximation Algorithms Can we find a near optimal solution in polynomial time? E.g., What if we take a random cut? How does it compare to the min-cut? Show that the expected number of edges in the random cut is #edges/2. Exercise!! Thus a random cut is a expected factor ½ approximation

Approximation Algorithms How about a greedy algorithm. Switch sides for a vertex if it improves the cut. Will this terminate?? What approximation factor does it get??

For each vertex xi, xi = -1 or xi = 1 Beating the ½ factor Can you write max-cut as a linear/concave program (so local and global maxima are the same)? Maxe=(i,j) (1-x_i.x_j)/2 For each vertex xi, xi = -1 or xi = 1 Issues Not Linear. Is the objective function concave? Hoe does one relax the –1,1 constraints? Linear relaxation: xi >= -1 and xi <= 1 How does one solve a concave problem in polynomial time? How does one round linear solutions to integer solutions?

Concavity v <= 0 v δ2f/δxiδxj A twice differentiable function is concave if and only if its Hessian is negative semidefinite, i.e., for vectors v v v <= 0 δ2f/δxiδxj

Maximizing Concave Functions There are polynomial time algorithms to maximize concave function over any convex set (eg one obtained by intersection of linear inequalities) Reference: Solving Convex Programs by Random Walks By Bertsimas and Vempala

For each vertex xi, -1<=xi <=1 Beating the ½ factor Maxe=(i,j) (1-xi.xj)/2 For each vertex xi, -1<=xi <=1 Issues How does one round linear solutions to integer solutions? Think about this? Not sure what is known.

Another Relaxation Maxe=(i,j) (1-xi.xj)/2 For each vertex xi, -1<=xi <=1 Relax xis to be vectors or length 1 Issues Is the feasible region convex? How does one round?

SemiDefinite Formulation Maxe=(i,j) (1-dij)/2 The feasible region is convex The objective function is linear So solvable in polynomial time In addition, a nice geometric interpretation Due to Goemans and Williamson dij Is pos semidefinite

SemiDefinite Formulation Maxe=(i,j) (1-dij)/2 Rounding Solving the program yields a set of unit length vectors Use a random hyperplane through the origin to split the vectors into 2; this gives a cut How does the size of this cut compare to that of the semidef program optimum?? dij Is pos semidefinite

SemiDefinite Formulation Maxe=(i,j) (1-dij)/2 dij Is pos semidefinite dij = xi. xj The probability of the edge e appearing in the cut is arccos(dij)/π So the approx factor is 2 arccos(dij)/ π (1- dij) How low can 2θ/π (1- cos θ) be?? Exercise?? xi xj

References Bertsimas, Vempala on convex programming Goemans-Williamson’s paper on Max-Cut

Exercise Max-2-SAT Given a 2 SAT formula find an assignment which satisfies as many clauses as possible Can you give a simple randomized algorithm followed by a SemiDefinite relaxation and then Rounding algorithm?

Thank You