D1, C5 - The Travelling Salesman Problem Flashcards

1
Q

What is the Travelling Salesman problem

A

Visiting every vertex / node in a network, starting and finishing at the same vertex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How is the Travelling Salesman problem different to route inspection / the Chinese Postman problem

A

Travelling Salesman - visit every vertex and finish at start
Chinese Postman - traverse every arc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Classical Travelling Salesman problem

A

Each vertex is visited only once

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Practical Travelling Salesman problem

A

Each vertex is visited at least once

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a walk

A

Begins at a vertex, traverses arcs and ends at a vertex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a tour

A

Visits every vertex (could be more than once) and returns to the starting vertex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What type of tour visits every vertex once

A

Hamiltonian Cycle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why do we use upper / lower bounds for travelling salesman problems

A

There is no efficient algorithm to solve the problems so you want to know how ‘good’ our solution is

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does it mean if you solution to a travelling salesman problem equals the lower bound

A

It is an optimal solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a table of least distances

A

A table of the shortest distances between vertices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you know the values for a table of least distances

A

Inspection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How would you find the minimum spanning tree when given a network

A

Prim’s algorithm
OR
Kruskal’s algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How would you find the minimum spanning tree when given a (least) distance table

A

Prim’s algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you find the upper bound for the travelling salesman problem

A

Weight of upper bound x 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do you find better solutions than the upper bound of the travelling salesman problem

A

Look for shortcuts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the steps to find the lower bound using a minimum spanning tree

A

1) Remove a vertex
2) Find the residual minimum spanning tree
3) Add back the removed vertex by using the two shortest arcs
4) OPTIONAL, you can: Repeat steps 1-3, removing different vertices and pick the solution with the highest weight. If the solution is a Hamiltonian Cycle (or UB = LB), then have found an optimal solution

17
Q

What is a residual minimum spanning tree

A

A spanning tree of the remaining vertices when one is removed

18
Q

You have found two lower bounds, 678m and 712m, which is the better lower bound and why

A

712m is the better lower bound since we want the optimal solution interval (LB to UB) to be as small as possible
(712 is the biggest)

19
Q

The lower bound is 712m and does not form a Hamiltonian Cycle while the upper bound is 1093m, what is the smallest interval that must contain the optimal route

A

712 < optimal solution <= 1093
The optimal solution can ONLY equal the lower bound if the LB is a Hamiltonian Cycle

20
Q

When can the optimal solution = the LB

A

When the LB forms a Hamiltonian Cycle

21
Q

What does the nearest neighbour algorithm do

A

Finds an upper bound

22
Q

What are the steps for the nearest neighbour algorithm

A

1) Start with any vertex
2) Select the nearest vertex that has not yet been visited
3) Repeat until all vertices have been visited and make sure you return to starting vertex
4) Choose a different starting vertex and repeat steps 2-3
5) When all vertices have been selected as starting vertices, choose the tour with the lowest weight as an upper bound

23
Q

Why do we use the nearest neighbour algorithm instead of the minimum spanning tree method

A

For very large networks, the MST would take ages

24
Q

When performing the nearest neighbour algorithm (similar to Prim’s), why don’t you cross out the row for the starting vertex

A

Because you need to get back to the start

25
Q

You have found upper bounds of 1250m, 1237m, and 1233m, which should you pick for the upper bound for the optimal solution interval and why

A

LB < optimal solution <= 1233m
Because we want the optimal solution interval as small as possible (smallest UP)