Skip to content

Commit

Permalink
Merge pull request #376 from nature-of-code/notion-update-docs
Browse files Browse the repository at this point in the history
[Notion] Update docs
  • Loading branch information
shiffman committed Aug 7, 2023
2 parents d55dd4a + ec78984 commit 3a668a7
Show file tree
Hide file tree
Showing 6 changed files with 264 additions and 9 deletions.
2 changes: 2 additions & 0 deletions content/09_ga.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ <h3 id="b-create-a-mating-pool">B) Create a mating pool.</h3>
<img src="images/09_ga/09_ga_2.png" alt="Figure 9.2: A “wheel of fortune” where each slice of the wheel is sized according to a fitness value.">
<figcaption>Figure 9.2: A “wheel of fortune” where each slice of the wheel is sized according to a fitness value.</figcaption>
</figure>
<p></p>
<p></p>
<p>Spin the wheel and you’ll notice that Element B has the highest chance of being selected, followed by A, then E, then D, and finally C. This probability-based selection according to fitness is an excellent approach. One, it guarantees that the highest-scoring elements will be most likely to reproduce. Two, it does not entirely eliminate any variation from the population. Unlike with the elitist method, even the lowest-scoring element (in this case C) has a chance to pass its information down to the next generation. It’s quite possible (and often the case) that even low-scoring elements have a tiny nugget of genetic code that is truly useful and should not entirely be eliminated from the population. For example, in the case of evolving “to be or not to be”, we might have the following elements.</p>
<table>
<tbody>
Expand Down
Loading

0 comments on commit 3a668a7

Please sign in to comment.