Approximation Algorithms for TSP
Tsvi Kopelowitz
Ariel Rosenfeld
1
HC-Hamiltonian Cycle
2
TSP – Traveling Salesman Problem
3
Hardness of Approximation
Claim: For every c>1, there is no polynomial time algorithm which can approximate TSP within a factor of c, unless P=NP.
4
Proof
5
Example
6
G=
Example
1
1
1
1
1
1
1
1
1
1
1
1
c*n
c*n
c*n
c*n
c*n
c*n
c*n
c*n
7
G’=
Proof
�
8
Metric
9
Triangle Inequality
10
2-approximation
11
12
2-approximation
13
2-approximation
14
15
16
2-approximation
Claim: The above algorithm gives a 2-approximation for the TSP problem (in a metric graph with the triangle inequality).
Proof:
Definitions:
17
2-approximation
Proof Continued:
18
Example
19
h
c
b
a
d
e
g
f
MST
h
c
b
d
e
g
f
Input�(assume Euclidean distances)
a
20
h
c
b
a
d
e
g
f
Walk W�a b c b h b a d e f e g e d a
h
c
b
a
d
e
g
f
Hamiltonian Cycle H�a b c h d e f g a
2-approx.
1.5 TSP Approximation Algorithm�(Known as Christofides Heuristics)
21
1.5 Approximation
1. Compute MST graph T.
2. Compute a minimum-weighted matching graph M between all Odd- degree vertices.
3. Combine T and M as edge set and Compute an Euler Cycle.
4. Traverse each vertex taking shortcuts to avoid visited nodes.
22
1.5 Approximation
It creates a MWM on a set of the nodes having an odd degree.
Property of Euler Cycle (if all edges all of even-degree, EC exists)
MST < Euler Cycle <= MWM+MST <= 1.5 TSP
(need to show MWM <= ½ TSP)
23
1.5 approx.
h
c
b
a
d
e
g
f
MST T
h
c
b
e
g
f
Matching M
1.5-approximation
Claim: The above algorithm gives a 1.5-approximation for the TSP problem (in a metric graph with the triangle inequality).
Proof: Denote:
25
1.5-approximation
Proof Continued:
26
27
1.5-approximation
9
3
1
4
1
5
M’
1.5-approximation
Proof Continued:�
28
1.5-approximation
Proof Continued:
•�
29
h
c
b
e
g
f
Matching M
h
c
b
e
g
f
Optimal Tour Γ* on Odd Nodes
Separating the optimal tour of B into 2 matchings
Matching
h
c
b
a
d
e
g
f
G' = MST + Matching
h
c
b
e
g
f
Matching M