[SOLVED] SOLVED:Honors Lab 2

20.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

The ProblemA genetic algorithm consists of a population of individuals, where each individual is a bit string (i.e., a list of 0’s and 1’s) and an associated fitness value indicating the goodness or badness of the individual. At the start of the genetic algorithm, each individual in the population is randomly initialized and the its fitness assessed. Your Task 1. Create a population of 100 random individuals. Each individual should be a list of length 100 and a float value that represents its fitness. (Hint: Extend the code you wrote for part 1 that created one random individual.) 2. Evaluate the fitness of all the individuals in your population using the counting ones fitness function you wrote last week. Store the fitness value with the individual. 1

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.