From adee9044bf048b9ad8cdafcd589c1ac8b5b1ee88 Mon Sep 17 00:00:00 2001 From: Mick de Peinder Date: Sat, 4 May 2019 13:12:11 +0200 Subject: [PATCH 1/2] Create Readme.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ebecb92 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# GeneticAlgorithmCPP +Genetic algorithm programmed in C++ using raw pointers. In practice smart pointers are better to use but just for some practice I decided to use raw pointers. + +## Note ## +This algorithm is not perfect and there are many vectors than can affect the outcome and/or the performance. +For instance the mutation chance of 1% might be too high, or the population size might be too low/high. +Besides, there are different methods of selection and crossover. + +Tweaking these vectors is key to good outcome and/or performance. + +In this example the goal of the algorithm was to guess a string of characters. This is just to demonstrate the function of the genetic algorithm. +If you want to use this algorithm for your own use you can simply substitute the individual's gene by your own object. Do not forget to change the way fitness is calculated and how mutation is implemented. + +### Screenshot ### From f7f8c2c7bca6335b0c4686d6e822f7cb01554a8f Mon Sep 17 00:00:00 2001 From: Mick de Peinder Date: Sat, 4 May 2019 13:13:43 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ebecb92..575df5e 100644 --- a/README.md +++ b/README.md @@ -11,4 +11,4 @@ Tweaking these vectors is key to good outcome and/or performance. In this example the goal of the algorithm was to guess a string of characters. This is just to demonstrate the function of the genetic algorithm. If you want to use this algorithm for your own use you can simply substitute the individual's gene by your own object. Do not forget to change the way fitness is calculated and how mutation is implemented. -### Screenshot ### +## Screenshot ##