Traveling Salesman Inverted 112

Back to Problem Solutions forum

Andrey Chadin     2021-08-20 08:34:19
User avatar

Good everybody! Obviously that we take branch and bound method as default for solving. But what's wrong? For simple city with 50 city's i fast find way. But this task realy stomped my PC. May be for this problem need another theory? can someone give me kick to show direction for theory?

qwerty     2021-08-20 09:49:30

This problem does not require the exact solution.

A good heuristic is all what you need.

omsarmiento1953     2023-04-07 01:53:13

score = collected_money / (6 * 99)

I don't undestand collected_money? Is it the cumulative sum of money from travel? And the divisor (6*99): is it fixed-6 per road or 6 is only an example number and really varies with the road used.

gardengnome     2023-04-07 05:45:35
User avatar

Quote: "Here 6 is the maximum amount of money which could be saved on any road and 99 - maximum amount of roads which could be traversed."

Thus 6*99 is the maximum amount of money that you can save/collect by visiting all 100 cities, and dividing by it normalises the result to a number between 0.0 and 1.0.

Click on the View Stats link at the top of the problem page to see what others have achieved: path value = money saved, and score = score.

omsarmiento1953     2023-04-07 09:46:26

OK. I got the idea.

Please login and solve 5 problems to be able to post at forum