Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started