TSP问题难度证明 151220102 万子文.

Slides:



Advertisements
Similar presentations
Limitation of Computation Power – P, NP, and NP-complete
Advertisements

Simple Graph Warmup. Cycles in Simple Graphs A cycle in a simple graph is a sequence of vertices v 0, …, v n for some n>0, where v 0, ….v n-1 are distinct,
Polynomial-time reductions We have seen several reductions:
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.
What is Intractable? Some problems seem too hard to solve efficiently. Question 1: Does an efficient algorithm exist?  An O(a ) algorithm, where a > 1,
1 ©D.Moshkovitz Complexity The Traveling Salesman Problem.
NP and NP Complete. Definitions A problem is in the class P if there is a polynomial time solution to the problem A problem is in the class NP if there.
1 The TSP : Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell ( )
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 NP-Completeness Objectives: At the end of the lesson, students should be able to: 1. Differentiate between class P, NP, and NPC 2. Reduce a known NPC.
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)
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
MCS 312: NP Completeness and Approximation algorithms Instructor Neelima Gupta
Prabhas Chongstitvatana1 NP-complete proofs The circuit satisfiability proof of NP- completeness relies on a direct proof that L  p CIRCUIT-SAT for every.
Polynomial-time reductions We have seen several reductions:
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.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
MCS 312: NP Completeness and Approximation algorthms Instructor Neelima Gupta
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?
David Luebke 1 2/18/2016 CS 332: Algorithms NP Completeness Continued: Reductions.
1 Ch 10 - NP-completeness Tractable and intractable problems Decision/Optimization problems Deterministic/NonDeterministic algorithms Classes P and NP.
Lecture. Today Problem set 9 out (due next Thursday) Topics: –Complexity Theory –Optimization versus Decision Problems –P and NP –Efficient Verification.
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.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
34.NP Completeness. Computer Theory Lab. Chapter 34P.2.
CSE 332: NP Completeness, Part II Richard Anderson Spring 2016.
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
Limitation of Computation Power – P, NP, and NP-complete
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
More NP-Complete and NP-hard Problems
More NP-complete problems
P & NP.
Richard Anderson Lectures NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
Lecture 2-2 NP Class.
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness Proofs
Richard Anderson Lecture 26 NP-Completeness
Hard Problems Introduction to NP
Lecture 5 NP Class.
Computability and Complexity
Approximation Algorithms for TSP
Lecture 24 NP-Complete Problems
ICS 353: Design and Analysis of Algorithms
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
Connected Components Minimum Spanning Tree
Richard Anderson Lecture 25 NP-Completeness
Genome Assembly.
Richard Anderson Lecture 28 NP-Completeness
Richard Anderson Lecture 29 NP-Completeness
Chapter 34: NP-Completeness
Approximation Algorithms
Richard Anderson Lecture 30 NP-Completeness
A path that uses every vertex of the graph exactly once.
Computation Basics & NP-Completeness
Prabhas Chongstitvatana
CS 3343: Analysis of Algorithms
Richard Anderson Lecture 26 NP-Completeness
Richard Anderson Lecture 27 Survey of NP Complete Problems
Lecture 24 Classical NP-hard Problems
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Hamiltonian Circuit (HC) problem
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

TSP问题难度证明 151220102 万子文

The traveling-saleman problem A complete graph with n vertices Make a tour or a hamiltonian cycle Integer cost c(i,j) to travel from I to j Minimize the cost

The formal language

TSP belongs to NP The certificate is a sequence of n vertices in the tour Algorithm A(G,c,k,s) The verification process: (1)each vertex exactly once (2)the sum of edge cost is at most k

TSP is NP-hard Suppose we have a HAM-CYCLE problem (G=(V,E)),then we can construct G’=(V,E’) E’={(i,j)| i,j belongs to V and i!=j} The instance of TSP is (G’,c,0),which can easily create in polynomial time.

G has a hamiltonian iff G’ has a tour of cost at most 0. (1)Suppose G has a hamiltonian cycle h,each edge in h belongs to E,thus h is a tour in G’ with cost 0 (2)h’ is a tour with cost 0,each edge must in E,h’ is a hamiltonian cycle in G.

Q&A