Approximation Algorithms Department of Mathematics and Computer Science Drexel University.

Slides:



Advertisements
Similar presentations
Approximation Algorithms
Advertisements

The Theory of NP-Completeness
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Combinatorial Algorithms
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
Introduction to Approximation Algorithms Lecture 12: Mar 1.
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.
Transitivity of  poly Theorem: Let ,  ’, and  ’’ be three decision problems such that   poly  ’ and  ’  poly  ’’. Then  poly  ’’. Proof:
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
The Theory of NP-Completeness
NP-Complete Problems Problems in Computer Science are classified into
Time Complexity.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Algoritmi on-line e risoluzione di problemi complessi Carlo Fantozzi
Black-box (oracle) Feed me a weighted graph G and I will tell you the weight of the max-weight matching of G.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
1 The Theory of NP-Completeness 2 NP P NPC NP: Non-deterministic Polynomial P: Polynomial NPC: Non-deterministic Polynomial Complete P=NP? X = P.
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.
CSCE350 Algorithms and Data Structure
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Design Techniques for Approximation Algorithms and Approximation Classes.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Tonga Institute of Higher Education Design and Analysis of Algorithms IT 254 Lecture 8: Complexity Theory.
The Complexity of Optimization Problems. Summary -Complexity of algorithms and problems -Complexity classes: P and NP -Reducibility -Karp reducibility.
Chapter 15 Approximation Algorithm Introduction Basic Definition Difference Bounds Relative Performance Bounds Polynomial approximation Schemes Fully Polynomial.
TECH Computer Science NP-Complete Problems Problems  Abstract Problems  Decision Problem, Optimal value, Optimal solution  Encodings  //Data Structure.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Computer Science Day 2013, May Distinguished Lecture: Andy Yao, Tsinghua University Welcome and the 'Lecturer of the Year' award.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
Unit 9: Coping with NP-Completeness
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Non-Approximability Results. Summary -Gap technique -Examples: MINIMUM GRAPH COLORING, MINIMUM TSP, MINIMUM BIN PACKING -The PCP theorem -Application:
Instructor Neelima Gupta Table of Contents Class NP Class NPC Approximation Algorithms.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
CSE 589 Part V One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important. Bertrand Russell.
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
NP-completeness NP-complete problems. Homework Vertex Cover Instance. A graph G and an integer k. Question. Is there a vertex cover of cardinality k?
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
1 The Theory of NP-Completeness 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
Approximation algorithms
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
The Theory of NP-Completeness
More NP-Complete and NP-hard Problems
Chapter 10 NP-Complete Problems.
Richard Anderson Lecture 26 NP-Completeness
Optimization problems such as
Richard Anderson Lecture 26 NP-Completeness
Hard Problems Introduction to NP
Approximation Algorithms
Computability and Complexity
ICS 353: Design and Analysis of Algorithms
Richard Anderson Lecture 25 NP-Completeness
Richard Anderson Lecture 28 NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
The Theory of NP-Completeness
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

Approximation Algorithms Department of Mathematics and Computer Science Drexel University

Today’s Lecture:  Wrapping it all up, Approximation classes: Absolute Approximation, and negative results. Relative Approximation:  r-approximation,  approximation Limits to approximation  Gap-technique.

Remember:  Given optimization problem P=(I,SOL,m,goal), an algorithm A ins an approximation algorithm for P if, for any given instance x in I, it returns an approximation solution, that is a feasible solution A(x) in Sol(x).  We accept a solution as an approximation that is feasible whose solution is “not far” from the optimum.  Our objective is to find how far a solution is from optimal.

Absolute approximation:  Given an optimization problem P, for any instance x and for any feasible solution y of x, the absolute error of y with respect to x is defined as  Where m*(x) denotes the measure f an optimal solution of instance x and m(x,y) denotes the measure of solution y.

Absolute approximate algorithm:  Given an optimization problem P, and an approximation algorithm A for P, we say that A is an absolute approximation algorithm if there exists a constant k such that, for any instance x of P in I, D(x,A(x))<= k.  Most of problem such as Minimum Traveling Salesman and Maximum Independent Set, so not allow for polynomial-time absolute approximation algorithms.

Example:  Positive Example: 6-coloring of a planar graphs.  Negative results: Unless P=NP, no polynomial time absolute approximation algorithm exists for Maximum Knapsack.

Relative approximation:  Given an approximation problem P, for any instance x and for any feasible solution y of x, the realtive error of y with respect to x is defined as  Both in the case of maximization and minimization the relative error is 0 when the solution is optimal.

Bonded performance:  Given an approximation problem P, for any instance x of P and for any feasible solution y of x, the performance of y with respect to x is defined as  Both in the case of minimization and maximization problems, the value of performance ratio for an optimal solution is 1.

r-approximation algorithm:  Given an approximation problem P, and an approximation algorithm A for P, we say A is an r- approximate for P if given any instance x of P, the performance ratio of approximation solution A(x) is bounded by r, that is  Notice that if a given approximation algorithm A for problem P, we have that, for all instances x of P, m(x,A(x))<=rm*(x)+k, then A is (r+k)-approximation

r-approximate Max-Sat  Remember: Set C of disjunctive clauses of a set of variables V. Truth assignment f from V to {True,False}. Goal: Maximum number of clauses satisfied.  Greedy Algorithm (program 3.1): Identify the literal with maximum frequency. Set the value appropriately and clean up the function.  This is 2-approximation algorithm.

Class APX  NPO problems P that admit a polynomial-time r–approximation algorithm, for given constant r  1 then P is said to be r-approximable  Examples: MINIMUM BIN PACKING, MAXIMUM SAT, MAXIMUM CUT, MINIMUM VERTEX COVER

TSP  Is an important example of an NPO that can not be r-approximated, no matter how large is the performance ratio r.  If Minimum TSP belong to APX, then P=NP.  If P is not equal to NP then APX is a subset of NPO.

Practicality of APX  In practice knowing that a problem belongs to APX is partially satisfactory.  For some problems we can find arbitrary close approximate solutions.  The idea is that, we have two inputs to our algorithm, the instance x and the error r>1, and the algorithm can produce an r-approximate solution for any given value of r.

Limits of approximation and Gap Theorem  Sometimes the the approximation technique can lead to very tight approximation solutions, but then a threshold t exists such that r- approximability, with r<t, becomes computationally intractable.  Let P’ be an NP-complete decision problem and let P be an NPO minimization approximation problem. Let us assume that there is two polynomial time functions f from instance of P’ to instance of P and c from instances of P’ to N, and a constant gap>0, such that for any instance x of P’,  Then no polynomial time r-approx. algorithm can exist with r<1+gap, unless P=NP.

Application:  Consider: minimum graph coloring We will use gap-method as reduction from coloring for planar graphs. Remember planar graphs are colorable with atmost 4 colors. The problem of deciding whether a planar graph is colorable with at most 3 colors is NP-complete.

Hardness of graph coloring  f(G)=G where G is a planar graph If G is 3-colorable, then m*(f(G))=3 If G is not 3-colorable, then m*(f(G))=4=3(1+1/3) Gap: gap=1/3  Theorem: MINIMUM GRAPH COLORING has no r-approximation algorithm with r<4/3 (unless P=NP)

Bin-Packing:  Consider: bisection-problem We would like to decide whether a set of integers I can be partitioned into two equal sets. The problem is known to be NP-hard.  Construct an instance of Bin-packing:  f(I)=(I,B) where B is the set of bins each equal to half the total sum If I is a YES-instance, then m*(f(I))=2 If G is a NO-instance, then m*(f(G))  3=2(1+1/2) Gap: g=1/2

Bin-packing  Theorem: MINIMUM BIN PACKING has no r- approximation algorithm with r<3/2 (unless P=NP).

MINIMUM TSP  INSTANCE: Complete graph G=(V,E), weight function on E  SOLUTION: A tour of all vertices, that is, a permutation π of V  MEASURE: Cost of the tour, i.e.,  1  k  |V|-1 w(v π[k], v π[k+1] )+w(v π[|V|], v π[1] )

Inapproximability of TSB.  Let us choose the Hamiltonian circuit as NP- Complete Problem.  Remember: It is NP-hard to decide whether a graph contains an Hamiltonian circuit.  For any g>0, f(G=(V,E))=(G’=(V,V 2 ),w) where w(u,v)=1 if (u,v) is in E, otherwise w(u,v)=1+|V|g

Reduction:  If G has an Hamiltonian circuit, then m*(f(G))=|V|  If G has no Hamiltonian circuit, then m*(f(G))  |V|-1+1+|V|g=|V|(1+g) Gap: any g>0  MINIMUM TSP has no r-approximation algorithm with r>1 (unless P=NP).