next up previous
Next: The basic tree Up: Genetic Programming in C/C++ Previous: Assigning a fitness

Implementation in C

One would ask, why a C implementation of genetic programming is at all desirable. Koza does explain why he chose LISP, and the following lists reasons why C might be viewed as a bad tool to construct a genetic programming platform:

But a compiled language implementation does provide the following advantages: As was stated previously, the major hangup with using C for genetic programming is the lack of an intuitive interface to writing self-modifying code. However, by developing an alternative representation for what a ``program'' is, we were able to develop a simple structure to hold the population of programs, in addition to some relatively short code to genetically manipulate these structures.



next up previous
Next: The basic tree Up: Genetic Programming in C/C++ Previous: Assigning a fitness