Top Banner
The Travelling Salesman Problem 1 / 14
14

The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

Jul 06, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

The Travelling Salesman Problem

1 / 14

Page 2: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

Overview

The Travelling Salesman Problem

Example

Lower Bounds for TSP

An Upper Bound for TSP

2 / 14

Page 3: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

Outline

The Travelling Salesman Problem

Example

Lower Bounds for TSP

An Upper Bound for TSP

3 / 14

Page 4: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

The Travelling Salesman Problem

Given a collection of cities and the cost of travel between eachpair of them, the travelling salesman problem, or TSP forshort, is to find the cheapest way of visiting all of the citiesand returning to your starting point.

4 / 14

Page 5: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

A Tour of 13509 U.S. Cities

5 / 14

Page 6: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

Outline

The Travelling Salesman Problem

Example

Lower Bounds for TSP

An Upper Bound for TSP

6 / 14

Page 7: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

Example

Try to solve the TSP for the following weighted graph.

a

b

c

d

e

f

2

99

4

6

4

8

6

8

8

4

3

Weight Matrix

a b c d e fa 0 2 9 0 9 4b 2 0 6 4 8 0c 9 6 0 6 8 8d 0 4 6 0 0 4e 9 8 8 0 0 3f 4 0 8 4 3 0

7 / 14

Page 8: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

The Hardness of TSP

FactIf there are n cities with complete set of routes between them,then the number of possible tours is (n−1)!

2.

Number of Cities Number of Tours Time5 12 12 microseconds8 2520 2.5 milliseconds

10 181,440 0.18 seconds12 19,958,400 20 seconds15 87,178,291,200 12.1 hours18 177,843,714,048,000 5.64 years20 60,822,550,204,416,000 1927 years

8 / 14

Page 9: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

Outline

The Travelling Salesman Problem

Example

Lower Bounds for TSP

An Upper Bound for TSP

9 / 14

Page 10: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

A Basic Lower Bound for TSP

Lower bounds can be found by using spanning trees.

Since removal of one edge from any Hamilton cycle yields aspanning tree, we see that

Solution to TSP > minimum length of a spanning tree (MST).

10 / 14

Page 11: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

A Better Lower Bound for TSP

Consider any vertex v in the graph G . Any Hamilton cycle inG has to consist of two edges from v , say vu and vw , and apath from u to w in the graph G \ {v} obtained from G byremoving v and its incident edges.

Since this path is a spanning tree of G \ {v}, we have

Solution to TSP ≥ (sum of lengths of two shortest edges from v)

+ (MST of G \ {v}).

11 / 14

Page 12: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

Outline

The Travelling Salesman Problem

Example

Lower Bounds for TSP

An Upper Bound for TSP

12 / 14

Page 13: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

An Upper Bound for TSP

Suppose that G is a complete graph with edge weights givenby distances satisfying the triangle inequality

d(x , z) ≤ d(x , y) + d(y , z)

where d(x , y) denotes the shortest distance along edges fromx to y .

Under these assumptions, we can construct a Hamilton cycleof G by taking a minimum spanning tree and then replacingedges with shortcuts, and obtain that

solution to TSP ≤ 2MST .

13 / 14

Page 14: The Travelling Salesman Problem · The Travelling Salesman Problem Given a collection of cities and the cost of travel between each pair of them, the travelling salesman problem,

Acknowledgements

Statements of results follow the notation and wording ofAnderson’s First Course in Discrete Mathematics.

14 / 14