Implement a genetic algorithm to find a solution to the Traveling Salesman Probl
ID: 3867161 • Letter: I
Question
Explanation / Answer
Given the information, following alogorithm can be used to get the shortest path root for TSP:
1.Analyze all the rows (Horizontal data) and select the minimum value across all the rows
2. From the above step we get an edge with least value and two corresponding cities.
3. Choose any one of those two to start the journey
4. Look at the row corresponding to the other city (not chosen as a start point in step 3) in the data and choose a minimum value in that row to get
the other city to visit to.
5. Keep on repeating step 4 till all the cities get visited.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.