Travelling salesman problem Flashcards
Describe the travelling salesman problem.
You’re givn a graph of n cities with weighted, undirected edges. What is the shortest Hamiltonian cycle in the graph?
A Hamiltonian cycle is a graph cycle which starts in one city, travels through each other city exactly once, then finishes at the starting city.
What is the random construction method?
The random construction method is one where we generate a random permutation of all cities.
What is the iterative random construction method? How many times do we run it?
The iterative random method is one where we run the random method several times, then choose the best result.
It’s usually run 5 times, according to Nourddine.
What is the greedy construction method?
The greedy construction method is one where we start in a random city. At each step, we move to the next node with has the cheapest transition cost.
What is the random insertion method?
During each step in the random insertion method, we select a random city. We then try putting this in-between each other city in our current tour, to find out where it would cause the lowest increase in tour length.
What is the cheapest insertion method?
During each iteration:
1) Look at each unvisited city.
2) Try to insert it at any point in our current tour.
3) Select to keep the tour with the shortest length after doing this for all cities.
Describe the greedy improvement heuristic.
The greedy improvement heuristic takes some tour and tries to improve it by swapping cities pairwise. If the swap lowers the overall tour length, it’s accepted, otherwise it’s rejected.
The heuristic is run until some stopping criteria are met, and is usually bounded by:
- Time
- Number of iterations
- Rate of improvement over some window