Hey fellow software engineers and programmers.
I have been assigned a task at my university where I need to create a genetic algorithm in python and adapt it to a practical problem that I haven't been assigned yet.
Before tackling that project my tutor asked me to create a simple crossover function where we can see that I choose two parents, so that a random crossover point between those two parents happens and that I get two offspring.
I am quite loss with that.
Has someone any idea of how to create such a small program?
The language it has to be written in is python 3
(as title states)
Cheers guys and girls.
Lou
Edit: Put in words it's like I need two parents such as Parent 1: 010010101 and parent 2: 0111101010 and then by doing this crossover I need two offspring, from these two parents, offspring 1 and offspring 2
I have been assigned a task at my university where I need to create a genetic algorithm in python and adapt it to a practical problem that I haven't been assigned yet.
Before tackling that project my tutor asked me to create a simple crossover function where we can see that I choose two parents, so that a random crossover point between those two parents happens and that I get two offspring.
I am quite loss with that.
Has someone any idea of how to create such a small program?
The language it has to be written in is python 3
(as title states)Cheers guys and girls.

Lou
Edit: Put in words it's like I need two parents such as Parent 1: 010010101 and parent 2: 0111101010 and then by doing this crossover I need two offspring, from these two parents, offspring 1 and offspring 2




Join us on our TWC Discord channel

![[Image: Davinci%202_d331aecb128a4ce38b4721925194469e.jpg]](http://www.accademiastudioitalia.com/en/cache/com_zoo/images/Davinci%202_d331aecb128a4ce38b4721925194469e.jpg)
.