Question: AI genetics Algorithm ------------------------------- 1) Suppose a genetic algorithm uses chromosomes of the form x = abcdefgh with a fixed length of eight genes. Each

AI genetics Algorithm

-------------------------------

1) Suppose a genetic algorithm uses chromosomes of the form x = abcdefgh with a fixed length of eight genes.

Each gene can be any digit between 0 and 9. Let the fitness of individual x be calculated

as: f(x) = (a + b) (c + d) + (e + f) (g + h)

and let the initial population consist of four individuals with the following chromosomes:

x1 = 6 5 4 1 3 5 3 2

x2 = 8 7 1 2 6 6 0 1

x3 = 2 3 9 2 1 2 8 5

x4 = 4 1 8 5 2 0 9 4

a) Evaluate the fitness of each individual, showing all your workings, and arrange them in order with the fittest first and the least fit last.

b) Perform the following crossover operations:

i)Cross the fittest two individuals using onepoint crossover at the middle point.

ii)Cross the second and third fittest individuals using a twopoint crossover (points b and f).

iii)Cross the first and third fittest individuals using a uniform crossover

c) Suppose the new population consists of the six offspring individuals received by the crossover operations in the above question. Evaluate the fitness of the new population, showing all your workings.

d) By looking at the fitness function and considering that genes can only be digits between 0 and 9 find the chromosome representing the optimal solution (i.e. with the maximum fitness). Find the value of the maximum fitness.

e) By looking at the initial population of the algorithm can you say whether it will be able to reach the optimal solution without the mutation operator?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!