for (i = 1; i < num_gene; i++)
{
j = geqo_randint(root, i, 0); /* i != j check avoids fetching uninitialized array element */ if (i != j)
tour[i] = tour[j];
tour[j] = (Gene) (i + 1);
}
}
/* city table is used in these recombination methods: */ #ifdefined(CX) || defined(PX) || defined(OX1) || defined(OX2)
/* alloc_city_table * *allocatememoryforcitytable
*/
City *
alloc_city_table(PlannerInfo *root, int num_gene)
{
City *city_table;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.