I\'m trying to solve the TSP with Branch and bound algorithm.
I must build a matrix with costs but I have this problem: I have city with coordinates x and y.
Step by step explanation of branch and bound method:
I hope my answer will be useful for somebody.
Here you go: http://lcm.csa.iisc.ernet.in/dsa/node187.html - it seems to explain fairly well how this should be approached.
Archive.org link
This PDF document gives a more detailed explanation of the Branch and Bound implementation for the Traveling Salesperson Problem:
Part 1: A solution with nodes containing partial tours with constraints http://www.jot.fm/issues/issue_2003_03/column7.pdf
Part 2 PDF can also be found. http://www.jot.fm/issues/issue_2003_05/column7/