Decision 1 Unit 6 Flashcards
What is the Travelling Salesperson used for?
When all nodes need to be visited once and start/finish at the same node.
What is the Nearest Neighbour algorithm?
Choose a starting node and choose the least weight arc to the next unused node. Carry on until all nodes have been used then go straight to the end node.
How to find the upper bound?
Use the Nearest Neighbour algorithm. The lower the upper bound the better.
How to find the lower bound?
Choose a special node and remove it.
Make a minimum spanning tree using Primm’s or Kruskal’s from the remaining arcs.
Then add the special node back in by finding the two lowest weights and add them in.
What is the tour and improvement algorithm?
If the 1st and 3rd nodes, and 2nd and 4th nodes connect with a lower weight than 1st and 2nd, and 3rd and 4th then swap them round.