5 - Travelling salesman problem Flashcards

1
Q

What is the difference between the classical and practical travelling salesman problem?

A

Classical: each vertex is visited exactly once
Practical: each vertex is visited at least once

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

What is the triangle inequality?

A

longest side of a triangle is less than or equal to the sum of its sides

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

How can a minimum spanning tree be used to find an upper bound for the travelling salesman problem?

A
  1. Find minimum spanning tree using Kruskal’s or Prim’s
  2. Double this (complete cycle)
  3. Seek shortcuts by intuition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can a minmum spanning tree be used to find a lower bound for the travelling salesman problem?

A
  1. Remove each vertex and its arc
  2. Find residual minimum spanning tree and its length
  3. Add to RMST the cost of reconnecting the deleted node by two shortest arcs
  4. Greatest of these totals is the lower bound
  5. Make lower bound as high as possible to narrow inteveral for optimal solution
  6. An optimal solution is found if
    * Lower bound contains a Hamiltonian cycle
    * Lower bound = upper bound
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can an upper bound to the travelling salesman problem be found using the Nearest neighbour algorithm?

A
  1. Select each vertex in turn as a starting point
  2. Go the nearest vertex not yet selected
  3. Repeat step 2 until all vertices are visited and then return to the start vertex using the shortest route
  4. Once all vertices have been used as starting vertex, select tour with smallest length as upper bound

It’s basically prim’s but you go to the nearest from that vertex not the nearest from any labelled column

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