D1, C5 - The Travelling Salesman Problem Flashcards
What is the Travelling Salesman problem
Visiting every vertex / node in a network, starting and finishing at the same vertex
How is the Travelling Salesman problem different to route inspection / the Chinese Postman problem
Travelling Salesman - visit every vertex and finish at start
Chinese Postman - traverse every arc
What is the Classical Travelling Salesman problem
Each vertex is visited only once
What is the Practical Travelling Salesman problem
Each vertex is visited at least once
What is a walk
Begins at a vertex, traverses arcs and ends at a vertex
What is a tour
Visits every vertex (could be more than once) and returns to the starting vertex
What type of tour visits every vertex once
Hamiltonian Cycle
Why do we use upper / lower bounds for travelling salesman problems
There is no efficient algorithm to solve the problems so you want to know how ‘good’ our solution is
What does it mean if you solution to a travelling salesman problem equals the lower bound
It is an optimal solution
What is a table of least distances
A table of the shortest distances between vertices
How do you know the values for a table of least distances
Inspection
How would you find the minimum spanning tree when given a network
Prim’s algorithm
OR
Kruskal’s algorithm
How would you find the minimum spanning tree when given a (least) distance table
Prim’s algorithm
How do you find the upper bound for the travelling salesman problem
Weight of upper bound x 2
How do you find better solutions than the upper bound of the travelling salesman problem
Look for shortcuts