# Genetic Algorithms in Elixir: Possible typo in uniform reinsertion code (page 134)

**URL:** <https://forum.devtalk.com/t/genetic-algorithms-in-elixir-possible-typo-in-uniform-reinsertion-code-page-134/96293>\
**Category:** PragProg Customers\
**Tags:** book-genetic-algorithms-in-elixir, errata\
**Created:** [12 February 2023 22:45 UTC](https://forum.devtalk.com/t/genetic-algorithms-in-elixir-possible-typo-in-uniform-reinsertion-code-page-134/96293 "2023-02-12T22:45:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![directive](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/d/a3d4f5/32.png) [@directive](https://forum.devtalk.com/u/directive)\
**Post date:** [12 February 2023 22:45 UTC](https://forum.devtalk.com/t/genetic-algorithms-in-elixir-possible-typo-in-uniform-reinsertion-code-page-134/96293/1 "2023-02-12T22:45:21Z")

</div>

Should this section of text on page 134:

Finally, test your problem with uniform reinsertion. To do this, take the same  
approach you took with elitist reinsertion:

```auto
soln = Genetic.run(Schedule,
                   reinserton_strategy:
                     &Toolbox.Reinsertion.elitist(&1, &2, &3, 0.1),
                   selection_rate: 0.8,
                   mutation_rate: 0.1)
IO.write("\n")
IO.inspect(soln)

```

be this instead:

Finally, test your problem with uniform reinsertion. To do this, take the same  
approach you took with elitist reinsertion:

```auto
soln = Genetic.run(Schedule,
                   reinserton_strategy:
                     &Toolbox.Reinsertion.uniform(&1, &2, &3, 0.1),
                   selection_rate: 0.8,
                   mutation_rate: 0.1)
IO.write("\n")
IO.inspect(soln)

```

The elitist call being replaced by the uniform?
