Travelling Salesman Problem
Calculate the minimum path to visit all N cities, starting and finish at the salesman's home.
N cities means (N-2)! candidates.
It's a NP problem.
Note that it is not necessary to record the entire root to the node, just a pointer to the previous node on the route
- Send out explorer's to all adjacent nodes.
- If the explorer is the first to reach that node, or the route it took was shorter than the previous explorer, send new explorers out to all adjacent nodes
- If the explorer is not the first to reach that node, compare the length of the route it took to get there. If it's shorter than the previous explorer's route, send out new explorere