/* Ways to sort a population. */ #define NO_SORT -1 #define BY_FITNESS 0 #define BY_GENOME 1 #define BY_FITNESS_THEN_BY_GENOME 2 #define BY_GENOME_THEN_BY_FITNESS 3 extern VOID sort_population(); /* * This is to help people out with most of the machinations of crossing over * a whole population. You pass it a function to call to do the actual * crossover - it just selects parents and children etc. and calls your * function as many times as need be. See busy_beavers/busy_beavers.c and * crossover.c for more info. */ extern VOID general_crossover(); extern UNSIGNED chars_to_int(); extern VOID int_to_chars(); extern VOID to_gray(); extern VOID from_degray();