We started working on the assignment but got stuck on the second function, run_one_step. What should we do?
This is by far the hardest function to implement in the assignment. I would suggest doing all the other functions first. • Am I right in understanding that to calculate the fitness, the program is run 60 times? Yes, for a given random starting position, you would run it 60 times. However, since you will be using 10 random starting positions, this comes to 600 times overall. • Just a quick question regarding crossover_individuals It says in the comments — takes the number of children to generate using crossover, — the population from which the parents will be selected, — and an infinite list of random numbers — notice that the double crossover operation is done only half as many times — as the number of required children as each double crossover results — in two children crossover_individuals n population r What should happen if n is odd and we are doing a double crossover ? You can assume n will always be even. • In the code GP_Imp.hs, what is (RobotPosition x y) supposed to do?