Genetic Algorithms Pt1 Flashcards
What is a gene in computer science?
A parameter that characterises an individual
What is a chromosome in computer science?
A string of genes, it gives characteristics of an individual. It’s a solution to the problem you want to solve
What is a population in computer science?
A group of individuals (solutions)
What is a genetic algorithm?
A search approach inspired by the natural selection theory
How can mutation be done?
By swapping 2 values
Nine things to think about when designing a genetic algorithm
Representation, Initialise, Evaluating, Select, Recombination, Mutation, Manage, Select, Stop
Crossover operation
Combinations of the characteristics of two solutions (parents) in order to generate a new solution (child)
1 point crossover
A point on both parents’ chromosomes is picked randomly and designated a crossover point
2 point crossover
Two crossover points are picked randomly from the parent chromosomes. The bits in between the two points are swapped between the parent organisms
Uniform crossover
Each bit is chosen from either parent with equal probability resulting in offspring which inherit more genetic info from one parent than the other
Position based crossover
Inserts a different number of randomly selected genes in one parent into the same position in one offspring then rounds off the other genes positions in the other parent