Question: Question 1 : Create a 0 / 1 Knapsack problem by your own. There must be 8 different products ( A - H ) for
Question:
Create a Knapsack problem by your own. There must be different products
AH for your problem. You have to carry the different products in your bag in a way
such that the reward is maximized set the reward by yourself without exceeding
the weight limit set the weight limit You can carry an object exactly once but
you always have to carry the object labeled H Assuming you are asked to use
Genetic Algorithm for this problem, answer the following questions.
Encode the problem and create an initial population of different chromosomes.
Chromosome length must be
Explain what would be an appropriate fitness function for this problem. Use the
fitness function and perform natural selection to choose the fittest chromosomes.
Using the selected chromosomes perform a singlepoint crossover to get
offspring.
Perform mutation and check the fitness of the final offspring. Explain your work.
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
