Genetic Algorithms in Elixir: chapter 1, bitstring is wrong type

In chapter 1, page6: “Remember, the problem wants the maximum sum of bitstrings of length N.”

Bitstrings are not the same as lists.

The program generates lists, so, bitstring should be replaced by list.

So population consists of 100 times 1000-lenght lists

1 Like