Question: Brac University CSE 4 2 2 : Artificial Intelligence Question 1 ( CO 1 ) Maximum weight = 1 2 The above problem is a
Brac University
CSE: Artificial Intelligence
Question CO
Maximum weight
The above problem is a Knapsack problem. You have to carry the different objects in your bag in a way such that the reward is maximized without exceeding 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
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.
Question CO
Suppose you have an equation fx xx Assume x can be any number between to Now your job is to find an appropriate value of x such that the value of fx using Genetic Algorithm
Consider the fact that every chromosome will have genes, illustrate an appropriate encoding technique to create an initial population of randomly generated chromosomes.
Using an appropriate fitness function deduce the fittest chromosomes and perform a single pointer crossover from the middle to create two offspring.
Explain how you can mutate the offspring derived from B and comment on the fitness of the final produced offspring.
QuestionCO
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
