Optimization problems such as

Slides:



Advertisements
Similar presentations
Instructor Neelima Gupta Table of Contents Approximation Algorithms.
Advertisements

Approximation Algorithms
Design and Analysis of Algorithms Approximation algorithms for NP-complete problems Haidong Xue Summer 2012, at GSU.
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Polynomial-time reductions We have seen several reductions:
Approximation Algorithms for TSP
1 ©D.Moshkovitz Complexity The Traveling Salesman Problem.
1 The TSP : Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell ( )
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Combinatorial Algorithms
Lecture 21 Approximation Algorithms Introduction.
Chapter 10 Complexity of Approximation (1) L-Reduction Ding-Zhu Du.
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Introduction to Approximation Algorithms Lecture 12: Mar 1.
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
Approximation Algorithms: Concepts Approximation algorithm: An algorithm that returns near-optimal solutions (i.e. is "provably good“) is called an approximation.
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.
1 Traveling Salesman Problem (TSP) Given n £ n positive distance matrix (d ij ) find permutation  on {0,1,2,..,n-1} minimizing  i=0 n-1 d  (i),  (i+1.
CSE 326: Data Structures NP Completeness Ben Lerner Summer 2007.
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
Approximation Algorithms
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
The Traveling Salesperson Problem Algorithms and Networks.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Chapter 12 Coping with the Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
The Traveling Salesman Problem Approximation
NP-Completeness: 3D Matching
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Advanced Algorithm Design and Analysis (Lecture 13) SW5 fall 2004 Simonas Šaltenis E1-215b
Approximation Algorithms
Polynomial-time reductions We have seen several reductions:
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Approximation Algorithms These lecture slides are adapted from CLRS.
Computer Science Day 2013, May Distinguished Lecture: Andy Yao, Tsinghua University Welcome and the 'Lecturer of the Year' award.
The Traveling Salesman Problem Over Seventy Years of Research, and a Million in Cash Presented by Vladimir Coxall.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Approximation Algorithms for TSP Tsvi Kopelowitz 1.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
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.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
1 Minimum Spanning Tree: Solving TSP for Metric Graphs using MST Heuristic Soheil Shafiee Shabnam Aboughadareh.
Approximation algorithms
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
Approximation Algorithms
Design and Analysis of Approximation Algorithms
The Theory of NP-Completeness
The NP class. NP-completeness
Introduction to Approximation Algorithms
EMIS 8373: Integer Programming
An introduction to Approximation Algorithms Presented By Iman Sadeghi
School of Computing Clemson University Fall, 2012
Approximation Algorithms
Approximate Algorithms (chap. 35)
Hamiltonian Cycle and TSP
Approximation algorithms
CS4234 Optimiz(s)ation Algorithms
P and NP CISC4080, Computer Algorithms CIS, Fordham Univ.
Approximation Algorithms
Computability and Complexity
Approximation Algorithms for TSP
Richard Anderson Lecture 28 Coping with NP-Completeness
Approximation Algorithms
Minimum Spanning Trees
No Guarantee Unless P equals NP
The Theory of NP-Completeness
Approximation Algorithms
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial time algorithm (unless P=NP). But we have to solve these problems anyway – what do we do?

What to do… Worst case exponential time algorithms behaving well in practice. Branch and bound Branch and cut Branch and ….. Focus on special cases (e.g., special structure, pseudopolynomial algorithms, parameterized complexity) Approximation algorithms (6th question on the exam) and approximation heuristics (essentially 5th question on the exam).

Approximation algorithms Given minimization problem (e.g. min vertex cover, TSP,…) and an efficient algorithm that always returns some feasible solution. The algorithm is said to have approximation ratio  if for all instances, cost(sol. found)/cost(optimal sol.)  

Min vertex cover (node cover) Given an undirected graph G=(V,E), find the smallest subset C ⊆ V that covers E.

Approximation Ratio Theorem: Approx Vertex-Cover has approximation ratio 2.

General design/analysis trick We do not directly compare our solution to the optimal one – this would be difficult as we typically have no clue about the optimal solution. Instead, we compare our solution to some lower bound (for minimization problems) for the optimal solution. Our approximation algorithm often works by constructing some relaxation providing such a lower bound and turning the relaxed solution into a feasible solution without increasing the cost too much.

Traveling Salesman Problem (TSP) Given n  n positive distance matrix (dij) find permutation  on {0,1,2,..,n-1} minimizing i=0n-1 d(i), (i+1 mod n) The special case of dij being actual distances on a map is called the Euclidean TSP. (NOTE: input is the points on the map – the distances are implicit!) The special case of dij satistying the triangle inequality is called Metric TSP. We already saw an approximation algorithms for the metric case.

Lower bound/relaxation What are suitable relaxations of traveling salesman tours? Ideas from branch and bound: Cycle covers and minimum spanning trees. We can turn a minimum spanning tree into a traveling salesman tour without increasing the cost too much.

Approximation Ratio Theorem: Approx-TSP-Tour has approximation ratio 2.

Improvements Best known algorithm for metric TSP (Christofides algorithm) has approximation factor 3/2. Recall: Uses minimum spanning tree, but transforms the tree to an Eulerian graph by adding a matching instead of duplicating all edges. Why do we only consider metric case?

Appoximating general TSP is NP-hard If there is an efficient approximation algorithm for TSP with any approximation factor  then P=NP. Proof: We use a modification of the reduction of hamiltonian cycle to TSP.

Reduction Given instance (V,E) of hamiltonian cycle, construct TSP instance (V,d) as follows: d(u,v) = 1 if (u,v)  E d(u,v) =  |V| + 1 otherwise. Suppose we have an efficient approximation algorithm for TSP with approximation ratio . Run it on instance (V,d). (V,E) has a hamiltonian cycle if and only if the returned solution has length at most  |V|.

Remarks The reduction we constructed is called a gap creating reduction. Gap creating reductions have been constructed for many NP-hard optimization problems, proving a limit to their approximability by efficient algorithms. For instance, it is known that min vertex cover does not have an algorithm with approximation ratio better than 1.36. This reduction and most gap creating reductions are much harder to construct that the TSP reduction. Constructing them has been a major theme for complexity theory in the 1990’s.