Assignment 5 FAQ

More errata for Figure 1
Individual.evaluate() returns double.

Note that the UML diagram is just a visual aid, everything is written in the tasks.

published on 18/02/2009 13:28:44 by Michael Orlov
Errata for Figure 1
In Fig. 1, Individual's clone() returns Object. It should return Individual, as written in Task 3.

See Covariant return.

published on 13/02/2009 14:50:35 by Michael Orlov
A detailed explanation of how to apply the cloning:
Thanks to yurib for his detailed reply in forum, which we're linking to here:

Clone explanation

published on 13/02/2009 09:59:06 by intro091
Task1, what is the meaning of: " ...It has a single floating point field that keeps the fitness value..."
Declare the fitness variable as a double type field.
published on 12/02/2009 10:17:08 by intro091
Using Double.NaN
Q. Is it ok to use Double.NaN as a special value?

A. Pay attention that you know how to work with NaN, since it is not equal to itself: Double.NaN != Double.NaN. You should use Double.isNaN(...) to check whether a number is a NaN.

published on 11/02/2009 18:44:58 by Michael Orlov
Handling exceptions in clone()
Q. Do I need to capture CloneNotSupportedException when implementing clone()?

A. Yes.

published on 11/02/2009 13:10:33 by Michael Orlov
Crossover in Task 10
Q. Picking a position inside the genome seems inconsistent with the example.

A. A position refers to positions between bits. The crossover examples are correct.

published on 06/02/2009 13:04:39 by Michael Orlov