Podcast
Questions and Answers
Who is credited with laying the groundwork for the development of genetic algorithms (GAs) through their work on adaptive systems?
Who is credited with laying the groundwork for the development of genetic algorithms (GAs) through their work on adaptive systems?
- Alan Turing
- John Holland (correct)
- Charles Darwin
- John Koza
In what period did genetic algorithms begin to be applied to a wide array of subjects?
In what period did genetic algorithms begin to be applied to a wide array of subjects?
- Early 1960s
- Late 1990s
- Early to mid-1980s (correct)
- Mid 1970s
Which term did John Koza coin to describe the use of genetic algorithms to evolve programs for specific tasks?
Which term did John Koza coin to describe the use of genetic algorithms to evolve programs for specific tasks?
- Algorithmic Evolution
- Evolutionary Programming
- Genetic Programming (correct)
- Adaptive Computation
What is the primary purpose of a genetic algorithm?
What is the primary purpose of a genetic algorithm?
Which biological process is NOT a primary inspiration for techniques used in genetic algorithms?
Which biological process is NOT a primary inspiration for techniques used in genetic algorithms?
What is the initial state of evolution in a genetic algorithm?
What is the initial state of evolution in a genetic algorithm?
What criteria might cause a genetic algorithm to stop iterating?
What criteria might cause a genetic algorithm to stop iterating?
In the context of genetic algorithms, what does the term 'individual' refer to?
In the context of genetic algorithms, what does the term 'individual' refer to?
In genetic algorithms, what is the role of the 'fitness' function?
In genetic algorithms, what is the role of the 'fitness' function?
In the context of a genetic algorithm, what is a 'genome'?
In the context of a genetic algorithm, what is a 'genome'?
Which of the following is a step in a basic genetic algorithm?
Which of the following is a step in a basic genetic algorithm?
What is the termination condition for a basic genetic algorithm?
What is the termination condition for a basic genetic algorithm?
In the MAXONE problem, what does the fitness of a candidate solution represent?
In the MAXONE problem, what does the fitness of a candidate solution represent?
If you 'toss a fair coin 60 times' to generate an initial population for a genetic algorithm, what are you creating?
If you 'toss a fair coin 60 times' to generate an initial population for a genetic algorithm, what are you creating?
In the selection step of a genetic algorithm, how are individuals chosen for reproduction?
In the selection step of a genetic algorithm, how are individuals chosen for reproduction?
What is the purpose of the crossover step in a genetic algorithm?
What is the purpose of the crossover step in a genetic algorithm?
What is the crossover point in a genetic algorithm?
What is the crossover point in a genetic algorithm?
What role does mutation play in a genetic algorithm?
What role does mutation play in a genetic algorithm?
Which of the following statements is true regarding the convergence of genetic algorithms?
Which of the following statements is true regarding the convergence of genetic algorithms?
What is the biological basis for genetic information storage?
What is the biological basis for genetic information storage?
What is a chromosome composed of?
What is a chromosome composed of?
What is the relationship between genes and proteins?
What is the relationship between genes and proteins?
What is the term for the entire combination of genes in an organism?
What is the term for the entire combination of genes in an organism?
What does an organism's genotype directly influence?
What does an organism's genotype directly influence?
What is the primary difference between mitosis and meiosis?
What is the primary difference between mitosis and meiosis?
What is the result of the crossover stage in meiosis?
What is the result of the crossover stage in meiosis?
What is natural selection?
What is natural selection?
Which of the following is NOT considered a GA operator?
Which of the following is NOT considered a GA operator?
Which of the following is an example of a common representation method in genetic algorithms?
Which of the following is an example of a common representation method in genetic algorithms?
What is the main concept behind roulette-wheel selection in genetic algorithms?
What is the main concept behind roulette-wheel selection in genetic algorithms?
In 'elitist selection', what is the primary criterion for selecting individuals for the next generation?
In 'elitist selection', what is the primary criterion for selecting individuals for the next generation?
What are the two primary methods of reproduction in genetic algorithms?
What are the two primary methods of reproduction in genetic algorithms?
What is the main purpose of crossover in genetic algorithms?
What is the main purpose of crossover in genetic algorithms?
What does a 'uniform crossover' involve?
What does a 'uniform crossover' involve?
What is the approach to finding the solution for the Traveling Salesman Problem using genetic algorithms?
What is the approach to finding the solution for the Traveling Salesman Problem using genetic algorithms?
Which of the following describes an 'order-based GA' in the context of the Traveling Salesman Problem?
Which of the following describes an 'order-based GA' in the context of the Traveling Salesman Problem?
In the context of the Traveling Salesman Problem, what does mutation involve?
In the context of the Traveling Salesman Problem, what does mutation involve?
Which real-world application uses a genetic algorithm?
Which real-world application uses a genetic algorithm?
Which of the following is a benefit of using genetic algorithms?
Which of the following is a benefit of using genetic algorithms?
Which of the following statements is true about the solutions provided by genetic algorithms?
Which of the following statements is true about the solutions provided by genetic algorithms?
Flashcards
Genetic Algorithm
Genetic Algorithm
A search technique used in computing to find true or approximate solutions to optimization and search problems.
Individual (in GA)
Individual (in GA)
Any possible solution within a genetic algorithm.
Population (in GA)
Population (in GA)
A group of all individuals or possible solutions.
Fitness (in GA)
Fitness (in GA)
Signup and view all the flashcards
Trait (in GA)
Trait (in GA)
Signup and view all the flashcards
Genome
Genome
Signup and view all the flashcards
Genetic Algorithm Steps
Genetic Algorithm Steps
Signup and view all the flashcards
MAXONE Problem in GA
MAXONE Problem in GA
Signup and view all the flashcards
Step 1: Selection
Step 1: Selection
Signup and view all the flashcards
Step 2: Crossover
Step 2: Crossover
Signup and view all the flashcards
Step 3: Mutations
Step 3: Mutations
Signup and view all the flashcards
Genetic Algorithm over time
Genetic Algorithm over time
Signup and view all the flashcards
The Nucleus
The Nucleus
Signup and view all the flashcards
Chromosomes
Chromosomes
Signup and view all the flashcards
Genotype
Genotype
Signup and view all the flashcards
Phenotype
Phenotype
Signup and view all the flashcards
Meiosis
Meiosis
Signup and view all the flashcards
Mutations
Mutations
Signup and view all the flashcards
Natural Selection
Natural Selection
Signup and view all the flashcards
GA Operators
GA Operators
Signup and view all the flashcards
Representation Methods
Representation Methods
Signup and view all the flashcards
Methods of Selection
Methods of Selection
Signup and view all the flashcards
Roulette Wheel Selection
Roulette Wheel Selection
Signup and view all the flashcards
Crossover
Crossover
Signup and view all the flashcards
Crossover strategies
Crossover strategies
Signup and view all the flashcards
Mutations
Mutations
Signup and view all the flashcards
Traveling Salesman Problem
Traveling Salesman Problem
Signup and view all the flashcards
Representation.
Representation.
Signup and view all the flashcards
Crossover: inversion!
Crossover: inversion!
Signup and view all the flashcards
Mutation.
Mutation.
Signup and view all the flashcards
Control
Control
Signup and view all the flashcards
Design
Design
Signup and view all the flashcards
Game Playing
Game Playing
Signup and view all the flashcards
Security
Security
Signup and view all the flashcards
Robotics
Robotics
Signup and view all the flashcards
Benefits of GA
Benefits of GA
Signup and view all the flashcards
Study Notes
- Genetic algorithms are algorithms in nature
History of Genetic Algorithms
- John Holland's work in 1962 on adaptive systems provided a basis for future growth with genetic algorithms (GAs)
- The book Adaptation in Natural and Artificial Systems by Holland and his students was published in 1975
- From the early to mid-1980s, genetic algorithms were applied to many subjects
- John Koza used a genetic algorithm in 1992 to help generate programs to perform tasks and called it genetic programming (GP)
Genetic Algorithms Explained
- Genetic algorithm (GA) serve as a search technique to find or approximate solutions for optimization and search problems
- GAs are classified as global search heuristics
- GAs are a class of evolutionary algorithms which use evolutionary biology techniques of inheritance, mutation, selection, and crossover (recombination)
- Evolution starts from a population of random individuals and happens over many generations
- In each generation, individual fitness is assessed, multiple individuals are selected based on fitness from the current population, and modified to form a new population
- The new population is used in the next iteration of the algorithm
- The algorithm concludes when a maximum number of generations occurs, or a satisfactory fitness level is reached for the population
Vocabulary
- Individual: any possible solution to the algorithm
- Population: group of all individuals
- Fitness: target function we are optimizing where each individual has fitness
- Trait: possible aspect/feature of an individual
- Genome: the collection of all chromosomes (traits) for an individual
Basic Genetic Algorithms
- Algorithms start with a large "population" of generated "attempted solutions" to a problem
- Repeated actions include evaluating attempted solutions then probabilistically keeping a subset of the best solutions, and using these solutions to generate a new population
- Algorithms stop after a satisfactory solution is found or time runs out
MAXONE Problem
- Suppose the goal is to maximize the number of ones in a string of binary digits, the answer is known in advance
- It can be thought of as maximizing the number of correct answers
- An individual is encoded as a string of binary digits
- The fitness, f, of a candidate solution is the number of ones in its genetic code
- A population of n random strings is started, where l = 10 and n = 6 example where a coin is tossed 60 times to get initial population
The Genetic Algorithm Steps
- Step 1 is Selection
- Step 2 is Crossover
- Step 3 is Mutations
First Step: Selection
- Randomly using a biased coin, select a subset of the individuals based on fitness
- Individual i will have a probability to be chosen
Second Step: Crossover
- Mate strings for crossover by determining whether to perform the crossover or not using a predefined probability like 0.6
- Extract the crossover points randomly
Third Step: Mutations
- Apply random mutations where a small probability of error (for instance 0.1) is allowed for each bit copied to the new population
- Iterate to improve population fitness
Biological Motivation
- Genetic information is stored in the chromosomes
- Chromosomes are built of DNA
- Genes are encoded and code in the chromosomes
- Genes have a unique position on the chromosome
- The entire combination of genes is the genotype
- Genotype leads to a phenotype like eye color, height, or disease predisposition
- The phenotype is changed by changes to the underlying genetic code
Reproduction
- Reproduction of genetical information in both mitosis and meiosis
- Mitosis copies the same genetic information into a new offspring, without information exchange
- Mitosis is the normal way of expanding multicellular structures like organs
- Meiosis is the basis of sexual reproduction; meiotic division creates gametes
- Reproduction occurs between two gametes to create a new individual
- Crossovers lead to a new genotype
Mutations
- In any copying process, errors and single point mutations commonly occur
- Other errors affect longer regions (deletion, inversions, substitutions)
Natural Selection
- Natural selection is the "preservation of favorable variations and rejection of unfavorable variations"
- There are more individuals born than can survive, so there is a continuous struggle for life
- Individuals with an advantage have a greater chance for survival resulting in survival of the fittest
GA Operators
- Methods of representation, selection, and reproduction are GA operators
Common Representation Methods
- Binary strings
- Arrays of integers (usually bound)
- Arrays of letters
- etc
Selection Methods
- Roulette-wheel selection
- Elitist selection
- Fitness-proportionate selection
- Scaling selection
- Rank selection
- etc...
Roulette Wheel Selection
- This method acts as a game of roulette
- Each individual gets a slice of the wheel, but more fit ones obtain larger slices than less fit ones
Other Selection Methods
- Elitist selection: Chose only the most fit members of each generation
- Cutoff selection: Select only those that are above a certain cutoff for the target function
Methods of Reproduction
- Crossover and Mutation are primary methods
Reproduction by Crossover
- Two parents produce two offspring
- Chromosomes of the parents are copied to the next generation
- The parents are randomly recombined (crossed-over) to form the new offspring
Possible Crossover Strategies
- Randomly select a single point for crossover or multiple points
- Uniform crossover
Two-Point Crossover
- Avoids genes at the beginning and end of chromosomes from always being split among parents
Single vs. Multi Point Crossover
- Single point crossover involves one cross point
- Multi point crossover involves multiple cross points
Uniform Crossover
- A random subset is chosen
- The subset is taken from parent 1 while other bits come from parent 2
Reproduction by Mutations
- Generating new offspring from a single parent
Traveling Salesman Problem
- Find the shortest tour of a given set of cities by visiting each city only once and minimizing the total distance traveled
- Representation is a list of city numbers; an order-based GA
- Crossover combines inversion and recombination through a "Order1 crossover"
- Mutation may reorder the list
GA Applications
- Control (gas pipeline, missile evasion)
- Design (aircraft, keyboard, communication networks)
- Game playing (poker, checkers)
- Security (encryption/decryption)
- Robotics (trajectory planning)
Benefits of Genetic Algorithms
- Easy to understand conceptually
- Modular which is separate from application
- Supports multi-objective optimization
- Always an answer; the answer improves with time
- Easy to exploit previous or alternate solutions
- Flexible building blocks for hybrid applications
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.