Solution to travelling salesman problem with 5 cities.
Humans' minds are not very good on solving 10 simultaneous input variables problem but our human minds are good in discovering patterns and in creating computer algorithm to automate the computation or decision making so we can make calculation or decision almost instantaneously. Hence personal augmented intelligence (AI) chatbot will happen soon.
IN-V-BAT-AI is demonstrating it is possible for every person to have a personal augmented intelligence (AI) chatbot at affordable cost.
This is interactive so try it. if the edge or line has no distance enter 1e9 (meaning 1,000,000,000) there is no available road to connect or there is no line (also called as edge, path, circuit, and so on.)
|
a to b |
a to e |
a to d |
a to c |
|
b to e |
b to c |
c to d |
c to e |
|
d to e |
b to d |
|
|
|
|
|
|
shortest distance |

24 Possible combinations of car tour visiting all five (5) cities starting from city A as the default starting point and returning to the same starting point. The travelling salesman problem is to find the shortest route distance. Another contraint of the problem that must be satisfied is you must visit each city once.
| solution 1 A B C D E A |
solution 2 A B C E D A |
solution 3 A B D C E A |
solution 4 A B D E C A |
| solution 5 A B E C D A |
solution 6 A B E D C A |
solution 7 A C B D E A |
solution 8 A C B E D A |
| solution 9 A C D B E A |
solution 10 A C D E B A |
solution 11 A C E D B A |
solution 12 A C E B D A |
| solution 13 A D C E B A |
solution 14 A D C B E A |
solution 15 A D B C E A |
solution 16 A D B E C A |
| solution 17 A D E B C A |
solution 18 A D E C B A |
solution 19 A E D B C A |
solution 20 A E D C B A |
| solution 21 A E C D B A |
solution 22 A E C B D A |
solution 23 A E B C D A |
solution 24 A E B D C A |