In the MAXONE problem, we want to maximize the number of ones in a string of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In the MAXONE problem, we want to maximize the number of ones in a string of 1 binary digits. The fitness of a candidate solution to the MAXONE problem is the number of ones in its genetic code, the string of 1 binary digits. We start with a population of n random strings. Suppose that 110 and n = 6 and we get the following initial population: sl=1111010101 f(s1)= %f($1)= s2 = 0111000101 f(s2) = %f(s2) $3 = 1110110101 f(83) = %f($3) $4 = 0100010011 f(s4)= %f($4) $5 = 1110111101 f($5)= %f($5) = $6 = 0100110000 f(86) = %f($6) = where f is the fitness function, which associates with every binary string s its fitness f(s). a) Calculate the individual and the total fitness values of the population. By using the roulette wheel method, find the fitness proportions. Sort the strings according to their fitness proportions. Do not take the smallest percentage string. Reuse the one with the largest percentage instead. b) Suppose that the crossover probability is 0.6. Perform crossover only for couples (s1,s3) and (s4,s5). The crossover point is 2 for the first couple and 5 for the second couple. Replace offsprings with the parents in the population. c) Suppose that the mutation probability is 0.1. By using the current population after part b) apply mutation at 6th gene to the first string, 5th and 10th genes to the second string. Replace offsprings with their parents. Calculate the total fitness, is the total fitness of the population improved? In the MAXONE problem, we want to maximize the number of ones in a string of 1 binary digits. The fitness of a candidate solution to the MAXONE problem is the number of ones in its genetic code, the string of 1 binary digits. We start with a population of n random strings. Suppose that 110 and n = 6 and we get the following initial population: sl=1111010101 f(s1)= %f($1)= s2 = 0111000101 f(s2) = %f(s2) $3 = 1110110101 f(83) = %f($3) $4 = 0100010011 f(s4)= %f($4) $5 = 1110111101 f($5)= %f($5) = $6 = 0100110000 f(86) = %f($6) = where f is the fitness function, which associates with every binary string s its fitness f(s). a) Calculate the individual and the total fitness values of the population. By using the roulette wheel method, find the fitness proportions. Sort the strings according to their fitness proportions. Do not take the smallest percentage string. Reuse the one with the largest percentage instead. b) Suppose that the crossover probability is 0.6. Perform crossover only for couples (s1,s3) and (s4,s5). The crossover point is 2 for the first couple and 5 for the second couple. Replace offsprings with the parents in the population. c) Suppose that the mutation probability is 0.1. By using the current population after part b) apply mutation at 6th gene to the first string, 5th and 10th genes to the second string. Replace offsprings with their parents. Calculate the total fitness, is the total fitness of the population improved?
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
The new line character is utilized solely as the last person in each message. On association with the server, a client can possibly (I) question the situation with a client by sending the client's...
-
Write a data type Interval that implements the following API: An interval is defined to be the set of all points on the line greater than or equal to min and less than or equal to max. In particular,...
-
This problem is designed to give you practice in reading a game matrix and to check that you understand the definition of a dominant strategy. Consider the following game matrix. (a) If (top, left)...
-
What happens to the value of the induced drag coefficient for an aircraft that increases speed in level flight? (a) It increases, (b) It decreases, (c) It does not change.
-
How number of instantaneous centres are determined?
-
Diana and Ryan Workman were married on January 1 of last year. Diana has an eight-year-old son, Jorge, from her previous marriage. Ryan works as a computer programmer at Datafile Inc. (DI) earning a...
-
On 1 January 2011, Long John Ltd acquired 80% of the ordinary shares of a subsidiary, Silver Inc for 600,000. Silver Inc does its accounts in a currency called "bans". On 1 January 2011, the retained...
-
Using the rationalizing substitution t = +4 we find (x+1) 4 4dr R(t)dt, where R(t) is a polynomial in t (i) R(t) sqrt(t)(t-3) By the above substitution, or some other way, we find (x + 1) + 4dr =...
-
Why are logical models valuable tools for systems analysts?
-
Of the four primary categories of actors, who is the primary system actor?
-
Do you think people are always absolutely truthful in their responses to interview questions?
-
How are use cases used throughout the entire system development life cycle?
-
What is an entity? What are entity instances?
-
Read the chipotle case study and write a summary of the case study. Be sure to discuss reasons why chipotle would use internal governance mechanisms to monitor and control managers decisions.
-
PC Contractors, Inc., was an excavating business in Kansas City, Missouri. Union Bank made loans to PC, subject to a perfected security interest in its equipment and other assets, including...
-
Dunkirk Consulting wishes to predict the amount of overhead expense that will be incurred by a consulting contract, to develop more accurate bids for future con- tracts. Dunkirk has the following...
-
Block Commodities has gathered the following information concerning rock salt deliveries to its clients, which it believes are highly seasonal: a. Suppose Block Commodities calculated a set of...
-
A manager has been using a certain technique to forecast demand for project man- agement software at her store. Actual demand and her corresponding predictions are shown below: a. What was the...
Study smarter with the SolutionInn App