Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a GA is used to solve the traveling salesman problem ( TSP ) aiming to find the best route for visiting the cities 1

Consider a GA is used to solve the traveling salesman problem (TSP) aiming to find the best route for visiting the cities 1,2,3, and 4 starting from the home city 0 and returning back at the end to city 0. The distances between the cities and the initial population are as follows:
\table[[Distances],[City,1,2,3,4],[0,15,20,8,13],[1,,10,20,14],[2,,,7,5],[3,,,,9]]
\table[[The initial population,],[ndividual I,0,2,3,4,1,],[ndividual 2,0,1,2,3,4,],[ndividual 3,0,4,1,3,2,],[ndividual 4,0,3,1,2,4,]]
Determine the best route according to the following: (i) Sort the individuals from the best fitness (best route) to the worst one. (ii) Select the I"t parent from best and the worst individuals, and the 2nd parent from the remaining two individuals. (iii) Generate a new offspring using two-point erossover between 2 and 4 for both of the two pairs. (iv) Calculate the fitness of the new generation. (v) Select the new population using the weak parent replacement technique.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Using Language That Works

Answered: 1 week ago

Question

4. Are my sources relevant?

Answered: 1 week ago