Lecture 24 Vertex Cover and Hamiltonian Cycle

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.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
1 NP-completeness Lecture 2: Jan P The class of problems that can be solved in polynomial time. e.g. gcd, shortest path, prime, etc. There are many.
Approximation Algorithms for TSP
1 The TSP : Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell ( )
Lecture 21 Approximation Algorithms Introduction.
Chapter 10 Complexity of Approximation (1) L-Reduction Ding-Zhu Du.
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Introduction to Approximation Algorithms Lecture 12: Mar 1.
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
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 Lecture for CS 302. What is a NP problem? Given an instance of the problem, V, and a ‘certificate’, C, we can verify V is in.
1 Approximation Algorithms CSC401 – Analysis of Algorithms Lecture Notes 18 Approximation Algorithms Objectives: Typical NP-complete problems Approximation.
Transitivity of  poly Theorem: Let ,  ’, and  ’’ be three decision problems such that   poly  ’ and  ’  poly  ’’. Then  poly  ’’. Proof:
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Vertex cover problem S  V such that for every {u,v}  E u  S or v  S (or both)
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
The Traveling Salesman Problem Approximation
University of Texas at Arlington Srikanth Vadada Kishan Kumar B P Fall CSE 5311 Solving Travelling Salesman Problem for Metric Graphs using MST.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Approximation Algorithms
Unit 9: Coping with NP-Completeness
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness and course wrap up.
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Approximation Algorithms for TSP Tsvi Kopelowitz 1.
MCS 312: NP Completeness and Approximation algorthms Instructor Neelima Gupta
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Algorithms for hard problems Introduction Juris Viksna, 2015.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
Approximation Algorithms Greedy Strategies. I hear, I forget. I learn, I remember. I do, I understand! 2 Max and Min  min f is equivalent to max –f.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
Approximation algorithms
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Design and Analysis of Approximation Algorithms
The Theory of NP-Completeness
More NP-complete problems
NP-completeness Ch.34.
Richard Anderson Lectures NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
Optimization problems such as
Lecture 2-2 NP Class.
An introduction to Approximation Algorithms Presented By Iman Sadeghi
Approximation Algorithms
Richard Anderson Lecture 26 NP-Completeness
Hamiltonian Cycle and TSP
Hamiltonian Cycle and TSP
Hard Problems Introduction to NP
Algorithms for hard problems
Lecture 5 NP Class.
Approximation Algorithms
Computability and Complexity
Approximation Algorithms for TSP
Lecture 24 NP-Complete Problems
ICS 353: Design and Analysis of Algorithms
Richard Anderson Lecture 25 NP-Completeness
Richard Anderson Lecture 28 NP-Completeness
Richard Anderson Lecture 28 Coping with NP-Completeness
GreedyMaxCut a b w c d e 1.
Approximation Algorithms
Approximation Algorithms
Richard Anderson Lecture 30 NP-Completeness
Computation Basics & NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
The Theory of NP-Completeness
Richard Anderson Lecture 27 Survey of NP Complete Problems
TSP问题难度证明 万子文.
Presentation transcript:

Lecture 24 Vertex Cover and Hamiltonian Cycle

Vertex Cover Given a graph G=(V,E), find a minimum subset C of vertices such that every edge is incident to a vertex in C.

Decision Version Given a graph G=(V,E) and positive integer k < |V|, is there a vertex cover C of size at most k?.

Vertex-Cover is NP-complete Proof.

2-approximation The vertex set of a maximal matching gives 2-approximation, i.e., approx / opt < 2

Performance Ratio

ρ-Approximation ρ-approximation is a polynomial-time approximation satisfying: 1 < approx(input)/opt(input) < ρ for MIN or 1 < opt(input)/approx(input) < ρ for MAX

Max Independent Set An independent set is a vertex subset such that no edge exists between any two in the subset. A vertex subset is a vertex cover if and only if its complement is an independent set. Given a graph, find a maximum independent set.

Complexity and Approximation Max Independent Set is NP-hard. For any constant c>1, there does not exist a polynomial-time c-approximation unless NP=P.

Max Clique A clique is a vertex subset which induces a complete subgraph. A vertex subset is a clique of graph G if and only if it is an independent set of the complement of G. :Max Clique: Given a graph, find a maximum clique.

Complexity and Approximation Max Clique is NP-hard. For any constant c>1, there does not exist a polynomial-time c-approximation unless NP=P.

Hamiltonian Cycle Given a graph G, does G contain a Hamiltonian cycle? Hamiltonian cycle is a cycle passing every vertex exactly once.

HC is NP-complete

Traveling Salesman Given n cities with a distance table, find a minimum total-distance tour to visit each city exactly once.

HC < m TSP p From a given graph G, we need to construct (n cities, a distance table, k).

Quiz Sample Is Traveling Salesman Problem NP-complete? Answer: No Because NP contains only decision problems, TSP does not belong to NP.

Quiz Sample TSP is NP-hard. Does this mean that for any A in NP, A < m TSP? Answer: No! It is in wide sense that if TSP can be solved in p.-t., then every problem in NP can be solved in p.-t.. p

Special Case Theorem Traveling around a minimum spanning tree is a 2-approximation.

Theorem Minimum spanning tree + minimum-length perfect matching on odd vertices is 1.5-approximation

Minimum perfect matching on odd vertices has weight at most 0.5 opt.