Genetic algorithm assignment


Modify genetic algorithm code that designs a 6-bit parity checker to design a 2-bit adder. Graduate students need to make the GA design a three-bit adder without allowing the genetic algorithm to use XOR gates. A 2-bit adder adds 2, 2-bit inputs and produces a 3-bit output. A 3-bit adder adds two, 3-bit numbers and produces a 4-bit output.


Resources

The genetic algorithm can be run with a number of options. bin/run.sh is a shell script that uses three of the available options.

Read an explanation of the code and how to run the genetic algorithm

Turning it in Please turn in a graph of fitness versus number of generations for the run of the GA that produced a correct circuit. Also turn in the binary representation of the circuit as well as a corresponding circuit diagram. Turn in a diff listing of files that you changed (%diff file1 file2 lists all differences between file1 and file2). Finally, answer the question: How does your circuit work?


Sushil Louis
Last modified: Wed Oct 5 11:15:46 PST 2005