Decision - Travelling salesman problem Flashcards

1
Q

What is a heuristic algorithm?

A

An algorithm which will find a good solution, however it may not necessarily be the best solution. Such as the travelling salesman problem

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

What is a tour?

A

A walk which visits every vertex, returning to its starting vertex

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

What is the difference between a tour and a cycle?

A

A tour must visit every vertex, but it may also visit vertices more than once

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

What is a tour that visits every vertex exactly once?

A

A hamiltonian cycle

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

What is the practical travelling salesman problem?

A

The practical travelling salesman problem involves finding a tour of minimum total weight. Each vertex must be visited at least once before returning to the start

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

What is the classical travelling salesman problem?

A

The classical travelling salesman problem involves finding a hamiltonian cycle of minimum total weight. Each vertex must be visited exactly once before returning to the start

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

What are the steps to finding an upper bound for the practical travelling salesman problem?

A
  1. Turn the network into a complete network/matrix of least distances
  2. Find the minimum spanning tree for the network (either by using Prim’s or Kruskal’s algorithm). This ensures each vertex is included.
  3. Double the weight of this minimum spanning tree (in effect you are retracing your steps) so that completing the cycle is guaranteed. This is you intial upper bound
  4. Finally, seek “shortcuts” by inspection. Make use of some of the non-include arcs that enable you to bypass a longer repeat of some of the minimum spanning tree. This is your new lower upper bound. (This is often made easier by redrawing the minimum spanning tree in a straight line)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the steps to finding a lower bound for the classical travelling salesman problem?

A
  1. Remove each vertex in turn, together with its arcs
  2. Find the residual minimum spanning tree and its length (RMST) by using Prim’s or Kruskal’s algorithm on the resulting network (often easier to use Prim’s from a matrix)
  3. Add to the RMST the “cost” of reconnecting the deleted vertex by the 2 shortest, distinct, arcs and note the totals
  4. The greatest of these totals is used for the lower bound
  5. Make the lower bound as high as possible to reduce the interval in which the optimal solution is contained
  6. You have found an optimal solution if the lower bound gives a hamiltonian cycle, or if the lower bound has the same value as the upper bound
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a residual spanning tree?

A

The minimum spanning tree for the resulting network after removing a vertex

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

How can you use the nearest neighbout algorithm to find an upper bound for the travelling salesman problem?

A
  1. Select each vertex in turn as a starting point
  2. Go to the nearest vertex which has not been visited yet
  3. Repeat step 2 from the last vertex chosen until all vertices have been visited and then return to the start vertex using the shortest route
  4. Once all vertices have been used as the starting vertex, select the tour with the smallest length as the upper bound
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the triangle inequality state?

A

The longest side of any triangle ≤ the sum of the two shorter sides

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

In what case are the practical and classical travelling salesman problems equivalent?

A
  • If the network is complete
  • The direct path between any 2 vertices is also the shortest distance between any 2 vertices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you set up a travelling salesman problem?

A

Create a matrix of least distances, this makes the classical and practial problem the same and allows you to find both upper and lower bounds

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