online munca . 3 Ai t2.cove-201601 LITICIONDOLKU Mutation Crossover Fitness Evaluation Three classes have been provided for this task, Queens.java, Tester.java and Coordinate.java. Queens.java This class contains the four methods that you need to complete. At the moment they contain dummy code. This is what they need to do: randomGenotype() create a valid genotype of size 10, using random values a valid genotype contains each of the numbers 1 to 10 exactly once mutate() swap the position of two genes integers) within the genotype this happens with probability p so if p = 0.8, then 8 out of 10 times this method is called, a swap happens Crossover() o take two parents and performs cut-and-crosshill recombination (see class slides) . the crossover point should be halfway in the genotype so the first 5 genes are directly copied from one parent, and the remaining 5 genes are filled from the other measureFitness() measure the fitness of a genotype by counting the number of pairs of queens threatening each other . It begins with a maximum fitness value of 45, and then deducts 1 for every pair of queens found to be threatening each other You cannot change the signature of any of these methods! They must keep the same names, take exactly the same input parameters and provide exactly the same return types as they currently do. This is important for testing and assessing your code. You can only insert code in the places specified inside the methods. (See the actual code.) You must remove all dummy code (which is clearly labelled) and replace it with your own. You are allowed to write private worker' methods that are called from within the existing methods if it helps. But you cannot create any new public methods. Each method is worth 5 marks (50 a total of 20 marks for this assignment), but they are not of equal difficulty to codel Tester Jaya online munca . 3 Ai t2.cove-201601 LITICIONDOLKU Mutation Crossover Fitness Evaluation Three classes have been provided for this task, Queens.java, Tester.java and Coordinate.java. Queens.java This class contains the four methods that you need to complete. At the moment they contain dummy code. This is what they need to do: randomGenotype() create a valid genotype of size 10, using random values a valid genotype contains each of the numbers 1 to 10 exactly once mutate() swap the position of two genes integers) within the genotype this happens with probability p so if p = 0.8, then 8 out of 10 times this method is called, a swap happens Crossover() o take two parents and performs cut-and-crosshill recombination (see class slides) . the crossover point should be halfway in the genotype so the first 5 genes are directly copied from one parent, and the remaining 5 genes are filled from the other measureFitness() measure the fitness of a genotype by counting the number of pairs of queens threatening each other . It begins with a maximum fitness value of 45, and then deducts 1 for every pair of queens found to be threatening each other You cannot change the signature of any of these methods! They must keep the same names, take exactly the same input parameters and provide exactly the same return types as they currently do. This is important for testing and assessing your code. You can only insert code in the places specified inside the methods. (See the actual code.) You must remove all dummy code (which is clearly labelled) and replace it with your own. You are allowed to write private worker' methods that are called from within the existing methods if it helps. But you cannot create any new public methods. Each method is worth 5 marks (50 a total of 20 marks for this assignment), but they are not of equal difficulty to codel Tester Jaya