6. Genetic Algorithms Flashcards

1
Q

How is the Darwinian theory (the principle of the survival of the fittest) of evolution applied as a model for technical optimization procedures?

A

The take on optimization inspired by the Darwinian theory of evolution has been used as a model for technical optimization procedures. Here the environment is static though.

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

How does the evolution algorithm work?

A

An evolutionary algorithm starts by randomly generating a set of potential solutions, which are evaluated using a fitness function. The best solutions are selected and evolved over successive generations. This process repeats until a near-optimal solution is found and the fitness function stabilizes.

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

What is a population in the evolutionary algorithm?

A

A set of feasible solutions that may contain the best solution for a specific problem.

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

How does the technique that is used for Genetic A work?

A

This technique evolves a population by combining and modifying traits, similar to how offspring inherit genes from parents. The fittest individuals are chosen to create the next generation, gradually improving toward the goal.

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

What evolution algorithms do we know of?

A

Genetic Algorithms, Swarm Algorithms, Ant Colony algorithms

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

Hoes does the Swarm A work?

A

Simulate the movement of a group of animals (e.g., fish or birds) towards a specific target.

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

How does the Ant Colony A work?

A

These algorithms mimic how ants find the shortest path to food. As ants travel, they leave a chemical trail called a pheromone. Other ants follow stronger pheromone trails, reinforcing the path. This indirect communication, called “stigmergy,” helps them work together efficiently.

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

What is a common use care in feature selection?

A

The algorithm picks the best combination of features to improve a machine learning model’s performance.

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

GAs are commonly used in hyperparameter tuning. What is it?

A

A variable that influences a model’s behavior and output but is not adjusted by the training process. Examples of hyperparameters are the number of clusters in k-means, or limits on the depth of trees in decision tree learning. In particular, GA gained notable popularity in the optimization of structures and learning rules for artificial neural networks.

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

How are the individual properties represented?

A

By a piece of code that can be modified to yield new examples. (1000011, 1000101)

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

Is global optimalit achieved?

A

No. It’s a heuristic technique which can´t guarantee it. But the results are suficient for many purposes.

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

How do genetic changes happen?

A

Crossover and mutation of the genetic structure.

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

What are the five phases in GA?

A
  1. Creation of population 2. Evaluation of fittest function 3. Selection of fittest 4. Crossover 5. Mutation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the first phase about?

A

The individuals of the population are generated randomly in such a way that the corresponding chromosomes have a high coverage of the solution domain. The number of genes in individuals’ chromosomes is dependent on the problem.

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

What is the input and output in the fittest function?

A

Input –> the chromosone of the individual, Output –> fittest score of the individual

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

What is the selection phase about?

A

The individuals with the highest fitness scores are selected for generating the new population. Individuals with a fitness score that is higher than a specific threshold are selected, where the threshold constitutes a parameter that is defined according to the problem.

17
Q

What is cross-over about?

A

Mixing the genes from the parents’ pair of chromosomes. There are two types of crossover methods: single- and multi-point

18
Q

What is locus?

A

A specific location, or locus, is a point in the chromosome.

19
Q

Explain single and multi-point cross-over.

A

In single-point crossover, the procedure randomly chooses a locus and exchanges the subsequences before and after that locus between two chromosomes to create two offspring. Multi-point crossover selects a set of points at random. Chromosomes are cut at the crossover points. Corresponding sections are swapped.

20
Q

What is mutation about?

A

The flipping of random genes at arbitraty locations in the individual chromosome.

21
Q

How does the final phase play out?

A

The genetic algorithm goes through multiple iterations, where each iteration is formed by the above mentioned five phases. The iteration stops when an acceptable level of fitness is achieved by at least one individual, when no further improvement in fitness can be achieved, or when a pre-defined maximum number of iterations has been reached.

22
Q

The application of a genetic algorithm to solve the knapsack problem.

A

To solve the knapsack problem with a genetic algorithm, potential solutions are represented as chromosomes, where each gene indicates if an item is included in the knapsack. The fitness function evaluates each solution based on the total value of selected items, penalizing those that exceed the knapsack’s weight limit. The algorithm selects the fittest solutions, applies crossover and mutation to create a new generation of solutions, and repeats this process until it finds an optimal or near-optimal solution that maximizes value without exceeding the weight limit.