Genetic algorithm Flashcards

1
Q

Describe the genetic algorithm quickly?

A

With the genetic algorithm, we encode some solutions as “individuals”. They have some fitness - how well they do (eg. cycle length in TSP).

The algorithm loop looks like this:

  • Increase population by mating individuals (crossover, mutate).
  • Let individuals compete (eg. sort list by fitness).
  • Repeat until stopping conditions are met.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe crossover roughly.

A

In the mating process, two parents are combined to make two new children.

Crossover is the method in which the material is exchanged. We set some point in the material from which to start (two point: and end) and exchange everything in this interval.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do single-point and two-point crossover differ?

A

In single points crossover, you set a point. The children swap everything from this point to the end.

In two points crossover, you define two points to make an interval. The children swap only these intervals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does mutation work?

A

With some random chance, the genetic material of an individual/child is changed by some small amount.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly