/
vadimka
/
SimpleGeneticAlgorithm
Обзор
Документация
Войти
/
vadimka
/
SimpleGeneticAlgorithm
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
cross.h
18 строк
551 B
Vadim Kaluga
cross for all families
24 фев 2024, 13:23
24 фев 2024, 13:23
6afc6b4
Код
Авторство
О чём код?
#ifndef __CROSS #define __CROSS #include "chromosome.h" #include "parentselection.h" struct childs { struct chromosome* one; struct chromosome* two; }; /* одноточечный бинарный кроссинговер */ struct childs* single_point_cross(struct parents *family, int point); /* одноточечный бинарный кроссинговер для множества семей */ struct childs* all_single_point_cross(struct parents *families, int size, int point_min, int point_max); #endif /* __CROSS */