# Understanding genetic algorithms.

How do genetic algorithms work?

© SolutionLibrary Inc. solutionlibary.com 9836dcf9d7 https://solutionlibrary.com/computer-science/software-development/understanding-genetic-algorithms-2gu

#### Solution Preview

...s success in reaching the goal.

As an example, consider the problem of Graph Partitioning. In a graph G with n nodes, we want to find a way of partitioning the nodes into two smaller unconnected graphs that minimizes the number of edges that we have to break in order to do so. Each possible solution can be represented by a character string of length n (the number of nodes in the graph). Each character string will consist of 0's and 1's, indicating which group a particular node is assigned to. So the string 0110 would mean that nodes n1 and n4 were in group 0, while n2 and n3 were in group 1. If we maintain a population of 4 individuals while trying to find an optimum split, we may have the following members:

{1010,1001,0011,0011}

Notice that ...