Lecture 29
Lecture 29
Lecture No. 29
1
TSP with triangle inequality
Approx-TSP Tour
Input: A complete graph G (V, E)
Output: A Hamiltonian cycle
1. Select a “root” vertex r ∈V [G].
2. Use MST-Prim (G, c, r) to compute a minimum
spanning tree from r.
3. Let L to be the sequence of vertices visited in a
preorder tree walk of T.
4. Return the Hamiltonian cycle H that visits the vertices in
the order L.
TSP with triangle inequality
Theorem:
APPROX-TSP-TOUR is a polynomial-time 2-approximation
algorithm for the TSP problem with triangle inequality.
Theorem: There exists a 1.5-approximation algorithm
for TSP with triangle inequality. Christofides Algorithm
Theorem:
NNA is an O(log n)-approximation algorithm
Exercise:
NNA is not an O(1)-approximation algorithm.
General TSP (without triangle inequality)