The algorithm makes a random population at the beginning and then tries to approach a special string in every generation. Population size, number of generations, and goal string can be modified by you.
There are two ways to run algorithm:
- Install dependencies:
pip3 install -r requirements.txt
- Declare population size, number of generation & goal string in genetic.py
- Run genetic.py
You only need to open the Genetic.ipnyb with Jupiter notebook, modify population size, number of generation & goal string, and run cells in order one by one.