Week 2: TSP - Branch and Bound, Approximation Methods Flashcards
Branch-and-bound Method
This is an improvement on exhaustive search, as it eliminates solutions that can’t be more optimal than the current most optimal solution.
The speed is rather slow. A complete tour must be calculated to verify how its compares to other branches.
Approximate Algorithms
These algorithms compute decent solutions and are bounded by how close they are to the optimal solution.
The speed is fast, usually in polynomial time.
Heuristics
This approach incorporates information about special cases and instances, but there’s no guarantee for optimality.
The speed is fast.
Meta-heuristics
These are general heuristic techniques that can be applied to many different problems.
Examples: simulated annealing, genetic algorithms
Hamiltonian Cycles
A NP-Complete problem where you pass through every vertex of a connected graph exactly once.
Travelling Salesman Problem
Given a weighted connected graph G, find the minimum weight Hamiltonian Cycle.
Branch-and-bound for TSP
Follow the partial tour given. For the last node in the partial tour, all nodes except the nodes in the partial tour can be visited. For the remaining nodes, nodes not in the subtour and the root node can be visited. The goal is to minimise the cost whenever possible.
The resulting calculation is the bound of a subtour. Terminate the algorithm once it’s clear that the current best cost can’t be improved by visiting other branches.
Christofides’ Algorithm
This is an approximation algorithm, with a factor of 1.5, for finding a Minimum Cost Spanning Tree.
- Find an MST
- Find the nodes of the tree with odd degrees, and find the matches that have the minimum costs.
- Perform Euler’s tour.
- Delete the second instance of a node, as there can only be one instance of each node barring the return to the source.
Dijkstra’s Algorithm
Assuming the graph has positive weights, start at the source node. Go to the unvisited nodes, and keep the path with the shortest distance. Repeat until the destination is reached.
Triangle Inequality
A complete graph satisfies the triangle inequality if the direct distance between any pair of nodes is less than or equal to the distance of a indirect detour from the first node to the second node.