Introduction to Algorithms Second Edition by

Slides:



Advertisements
Similar presentations
Weighted Matching-Algorithms, Hamiltonian Cycles and TSP
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.
Lecture 21 Approximation Algorithms Introduction.
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Approximation Algorithms
1 Approximation Algorithms CSC401 – Analysis of Algorithms Lecture Notes 18 Approximation Algorithms Objectives: Typical NP-complete problems Approximation.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2006 Lecture 7 Monday, 4/3/06 Approximation Algorithms.
CSE 326: Data Structures NP Completeness Ben Lerner Summer 2007.
CS3381 Des & Anal of Alg ( SemA) City Univ of HK / Dept of CS / Helena Wong 8. Approximation Alg Approximation.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2009 Lecture 7 Tuesday, 4/7/09 Approximation Algorithms.
Introduction to Algorithms Second Edition by Cormen, Leiserson, Rivest & Stein Appendix B.
An introduction to Approximation Algorithms Presented By Iman Sadeghi.
Approximation Algorithms
Programming & Data Structures
1 Approximation Through Scaling Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij.
Approximation Algorithms: The Subset-sum Problem
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
Approximation Algorithms
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
1 Approximate Algorithms (chap. 35) Motivation: –Many problems are NP-complete, so unlikely find efficient algorithms –Three ways to get around: If input.
CSCI 3160 Design and Analysis of Algorithms Chengyu Lin.
WK15. Vertex Cover and Approximation Algorithm By Lin, Jr-Shiun Choi, Jae Sung.
ON THE EFFICIENCY OF THE HAMMING C-CENTERSTRING PROBLEMS Amihood Amir Liam Roditty Jessica Ficler Oren Sar Shalom.
2101INT – Principles of Intelligence Systems Lecture 3.
Introduction to Algorithms (2 nd edition) by Cormen, Leiserson, Rivest & Stein Chapter 2: Getting Started (slides enhanced by N. Adlai A. DePano)
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2010 Lecture 7 Tuesday, 4/6/10 Approximation Algorithms 1.
Approximation algorithms
Design and Analysis of Approximation Algorithms
8.1 Determine whether the following statements are correct or not
The Subset-sum Problem
Introduction to Algorithms Second Edition by
Introduction to Algorithms Second Edition by
Optimization problems such as
Algorithm Design Methods
An introduction to Approximation Algorithms Presented By Iman Sadeghi
Approximation Algorithms
Approximate Algorithms (chap. 35)
Approximation algorithms
Approximation Algorithms
CSE 5311-Class Project Bipartite Matching using Network Flow
Approximation Algorithms
Computability and Complexity
Approximation algorithms
Introduction to Algorithms Second Edition by
Minimum Spanning Trees
Introduction to Algorithms Second Edition by
CMPT 438 Algorithms Instructor: Tina Tian.
Introduction to Algorithms Second Edition by
Introduction to Algorithms Second Edition by
Problem Solving 4.
Introduction to Algorithms Second Edition by
Introduction to Algorithms Second Edition by
Introduction to Algorithms Second Edition by
Introduction to Algorithms Second Edition by
Minimum Spanning Trees
Lecture 21 More Approximation Algorithms
Algorithm Design Methods
Introduction to Algorithms Second Edition by
Minimum Spanning Trees
Introduction to Algorithms Second Edition by
The Complexity of Approximation
Algorithm Design Methods
Minimum Spanning Trees
Lecture 24 Vertex Cover and Hamiltonian Cycle
Introduction to Algorithms Second Edition by
Presentation transcript:

Introduction to Algorithms Second Edition by Cormen, Leiserson, Rivest & Stein Chapter 35: Approximation Algorithms

A problem is NP-complete: what next? Abandoning it: often not an option. Textbook notes 3 options. If input is small, exponential time algorithms may be sufficient. Sometimes special cases that matter in practice can be solved in polynomial time. Example: Vertex cover on trees. Sometimes ‘near-optimal’ solutions (in the worst, or average case) that are good enough in practice can be found in polynomial time  ‘approximation algorithms’. An approximation algorithm A for an optimization problem has approximation ratio RO(n) if for any input of size n, the cost C of the solution of A is within a factor of RO(n) of the cost C* of an optimal solution: Max( C/C*, C*/C) <= RO(n)  A is a RO(n)-approximation algorithm

Theorem 35.1 APPROX-VERTEX_COVER is a polynomial time 2-appromixation algorithm Proof Edges form maximal matching. Take both ends of all edges. Discussion Is this a common-sense algorithm, or does it increase the prospects not a better approximation for ensuring 2-approximation?

Approximation scheme An approximation algorithm whose input is not only the input for the problem, but also a value EPSILON > 0, such that for any fixed EPSILON the scheme is a (1 + EPSILON)-approximation algorithm. An approximation scheme is polynomial if it runs in polynomial time for any fixed EPSILON > 0. It is fully polynomial if it runs in polynomial time both in the input size and 1/EPSILON. For example a run-time that is O((1/EPLSILON)2 n3)