Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The shortest path is found starting from City 1 and returning to it while visiting other cities only once. The coordinates of the cities :
The shortest path is found starting from City 1 and returning to it while visiting other cities only once.
The coordinates of the cities : City-1(0 ,0), City-2(2,6), City-3(8,4), City-4(7,2), City-5(1,6), City-6(4,9), City-7(3,2)
You need to find the tour in terms of the sequence of the cities visited and the traveling distance.
*There is one more condition that City-3 must be visited before City-7.
The code should be in C and I hope for it to be easy to change to assembly language!
This was all the info that I got! It is a TSP problem.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started