3: Algorithms on Graphs II Flashcards
Route Inspection Algorithm (4)
- Identify any nodes with odd degree
- Consider all possible complete pairings of these nodes
- Select the complete pairing that has the least sum (of shortest paths between each pair)
- Add a repeat of the arcs indicated by this pairing to the network
Walk in a Network
A finite sequence of edges such that the end vertex of one edge is the start vertex of the next
Tour
A walk, which visits every vertex, returning to its start vertex
In the Classical Travelling Salesman Problem, ____
Each vertex must be visited exactly once before returning to the start
In the Practical Travelling Salesman Problem, ____
Each vertex must be visited at least once before returning to the start
Triangle Inequality
The longest side of any triangle ≤ the sum of the two shorter sides
Minimum Spanning Tree Method for an Upper Bound (3)
- Find the minimum spanning tree for the network
- Double this minimum connector
- Seek ‘shortcuts’, making use of some of the non-included arcs that enable you to bypass a repeat of some of the minimum spanning tree
Initial Upper Bound
Found by finding the weight of the minimum spanning tree for the network and doubling it
You can use the minimum spanning tree method to find an upper bound for ____
The practical travelling salesman problem
You can use the minimum spanning tree method to find a lower bound for ____
The classical travelling salesman problem
Minimum Spanning Tree Method for a Lower Bound (5)
- Remove each vertex in turn, together with its arcs
- Find the residual minimum spanning tree (RMST) and its length
- Add to the RMST the ‘cost’ of reconnecting the deleted vertex by the two shortest, distinct arcs and note the totals
- The greatest of these totals is used for the lower bound
- You have found an optimal solution if the lower bound gives a Hamiltonian cycle or if it has the same value as the upper bound