Question: Four knights are placed on a 3 3 chessboard: two white knights occupy the bottom corners ( a 1 and c 1 ) , and
Four knights are placed on a chessboard: two white knights occupy the bottom corners a and c and two black knights occupy the top corners a and c
We need to apply a Genetic Algorithm GA to determine the sequence of moves required to rearrange the knights into the final configuration shown in the figure
Remember that knights move in an Lshape
:Instructions
This is a team work assignment with maximum students
Submit a PDF file that contains the students names and numbers
:and answers the following questions
What is the representation of a chromosome, and what is its length? Why
Give an example of two parents and their children after crossover. Explain
Give an example of a chromosome before and after mutation. Explain
Write a detailed C code for the fitness function. Explain how it works
:Bonus
Answer the questions but we need the GA to find the shortest sequence of moves
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
