C.6.1 Exercises

  1.   Multiple choice and true/false: Choose the correct answer for each of the following questions.

1.1.   Given a binary string 1101001100101101 and another binary string yxyyxyxxyyyxyxxy in which the values 0 and 1 are denoted by x and y, what offspring result from applying 1-point crossover on the two strings at a randomly selected recombination point?

   a.  yxxyyyxyxxy11010 and yxyyx01100101101

   b.  11010yxxyyyxyxxy and yxyyx01100101101

   c.  11010yxxyyyxyxxy and 01100101101yxyyx

   d.  None of the above

1.2.   In binary genetic algorithms, how does the bitwise mutation operator work?

   a.  It swaps the positions of two randomly chosen bits.

   b.  It averages the values of two randomly chosen bits.

   c.  It flips ...

Get Optimization Algorithms now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.