Lecture 26: The Travelling Salesman Problem
The Travelling Salesman Problem (TSP):
Given distances between n cities and a bound D, is there a tour (visit all cities and return home) of cost at most D? Note that using TSP to prove NP-completeness of other problems is quite hard.
Claim: “TSP is NP-complete”
Proof: TSP is in the set NP. Given a valid tour, we can check that it is valid and has a cost <= D in polynomial time. Then, we want to show that Hamiltonian Cycle reduces to TSP in polynomial time. Given an HC problem as a graph G, we can show how to build the travelling salesman problem. Using the same vertices, place an edge between each pair with cost 1 if the edge exists in G, otherwise place the edge with cost 2.
Claim: “G has a Hamiltonian Cycle if and only if G’ has a TSP tour of cost <= n (vertices)”
Proof (=>): Assume G has a HC. Then the cycle in G’ is a tour and its cost is <= n.
Proof (<=): Assume G’ has a TSP tour of cost <= n. Every node is visited, and each edge has cost 1. The corresponding cycle is a valid HC.
3D Matching:
Given disjoint sets X, Y, and Z each of size n and given a set of triples T is a subset of (X, Y, Z) is there a subset of T of size n that covers all X + Y + Z? We can show that 3-SAT reduces to 3D Matching in polynomial time, so 3D matching is NP-complete.
Graph Coloring:
A graph g is said to have a k-coloring if there is a way to assign colors to vertices such that all adjacent verticex do not share the same color. Given a graph g and a bound k, is G k-colorable? Graph coloring is NP-complete, but on planar graphs 2-coloring has a simple DFS algorithm, and >=4-coloring simply returns “yes.”
Subset Sum:
Given w1, … , wn in {Naturals} and a target wi is there a subset of w1, … , wn whose sum is exactly wi?
NP-Complete “Types”:
All the NP Complete problems we have covered so far can be grouped by similarity into the following categories:
- Packing problems: Set Packing, Independent Set
- Covering problems: Vertex & Set Cover
- Partitioning problems: 3D Matching, Graph coloring
- Sequencing problems: Hamiltonian Cycle, Hamiltonian Path, Travelling Salesman Problem
- Numerical problems: Subset sum
- Constraint problems: SAT, 3-SAT, and Circuit-SAT
This entry was posted on Wednesday, March 30th, 2005 at 5:44 pm and is tagged with travelling salesman problem, tsp tour, colorable graph, np completeness, polynomial time, graph coloring, subset sum, complete graph, planar graphs, hamiltonian cycle, wn, target, independent set, d note, gt 4, dfs, naturals, similarity, distances, algorithm. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.
Leave a Reply
Please take time to enjoy the archives: May 2005 (1) April 2005 (11) March 2005 (11) February 2005 (15) January 2005 (7)
Fresh, related resources:
- British female models. The best and largest dating site for tall ...
Female super models: fashion, modelling, beauty & evolution nude women, body, breasts, ass india (38), art er japan shunga (36), gay er art (26), art art british. Related to the travelling salesman problem were treated in yo female ... - dna
A number of other problems, including simulation of various abstract machines, the boolean satisfiability problem, and the bounded version of the travelling salesman problem, have since been analysed using DNA computing. ... - Dr. Vassilios Vassiliadis, Curriculum Vitae (26 July 2007)
Morrisby (best research report prize), Novel Solutions to the Travelling Salesman Problem, 2005-2006. MPhil projects student supervision. G. Katsoulis, Supply-Chain Scheduling of Oil Tanker Fleets, 2004-2005. ... - DP (and strings alignment)
REBurkard, VGDe?neko "Polynomially solvable cases of the traveling salesman problem and a new exponential neighborhood" Computing 54:191?211, 1995 http://www.springerlink.com/content/y2j711753rq11131/ ... - Target? TARGET? We don't need no stinkin' Target!
In fact, the second-most-common solution (26%) has no ?variable? nodes at all, making this network a viable solution to the ?Traveling Salesman Problem? for this 5-node system. Now, I could have implemented a ?Fitness Function? that was ...
