Genetic Algorithms

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

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?

  • 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?

  • Algorithmic Evolution
  • Evolutionary Programming
  • Genetic Programming (correct)
  • Adaptive Computation

What is the primary purpose of a genetic algorithm?

<p>To find true or approximate solutions to optimization and search problems (B)</p> Signup and view all the answers

Which biological process is NOT a primary inspiration for techniques used in genetic algorithms?

<p>Mitosis (B)</p> Signup and view all the answers

What is the initial state of evolution in a genetic algorithm?

<p>A population of randomly generated individuals (B)</p> Signup and view all the answers

What criteria might cause a genetic algorithm to stop iterating?

<p>When a maximum number of generations has been produced or a satisfactory fitness level is achieved (C)</p> Signup and view all the answers

In the context of genetic algorithms, what does the term 'individual' refer to?

<p>Any potential solution to the problem (D)</p> Signup and view all the answers

In genetic algorithms, what is the role of the 'fitness' function?

<p>To evaluate how well each individual solves the problem (C)</p> Signup and view all the answers

In the context of a genetic algorithm, what is a 'genome'?

<p>A collection of all chromosomes (traits) for an individual (B)</p> Signup and view all the answers

Which of the following is a step in a basic genetic algorithm?

<p>Evaluating each of the attempted solutions (D)</p> Signup and view all the answers

What is the termination condition for a basic genetic algorithm?

<p>When a satisfactory solution is found or the allocated time runs out (B)</p> Signup and view all the answers

In the MAXONE problem, what does the fitness of a candidate solution represent?

<p>The number of ones in its binary string (B)</p> Signup and view all the answers

If you 'toss a fair coin 60 times' to generate an initial population for a genetic algorithm, what are you creating?

<p>A random set of binary strings (C)</p> Signup and view all the answers

In the selection step of a genetic algorithm, how are individuals chosen for reproduction?

<p>Based on their fitness, with higher fitness individuals having a greater chance of being selected (A)</p> Signup and view all the answers

What is the purpose of the crossover step in a genetic algorithm?

<p>To combine the genetic material of two individuals to create offspring (C)</p> Signup and view all the answers

What is the crossover point in a genetic algorithm?

<p>A randomly selected position where genetic material is exchanged between two individuals (D)</p> Signup and view all the answers

What role does mutation play in a genetic algorithm?

<p>It introduces new genetic material into the population. (A)</p> Signup and view all the answers

Which of the following statements is true regarding the convergence of genetic algorithms?

<p>Genetic algorithms do not have any convergence rules or guarantee. (B)</p> Signup and view all the answers

What is the biological basis for genetic information storage?

<p>Chromosomes (D)</p> Signup and view all the answers

What is a chromosome composed of?

<p>DNA (D)</p> Signup and view all the answers

What is the relationship between genes and proteins?

<p>Proteins are encoded in the genes. (D)</p> Signup and view all the answers

What is the term for the entire combination of genes in an organism?

<p>Genotype (C)</p> Signup and view all the answers

What does an organism's genotype directly influence?

<p>Physical traits (phenotype) (C)</p> Signup and view all the answers

What is the primary difference between mitosis and meiosis?

<p>Meiosis involves exchange of genetic information, while mitosis does not. (D)</p> Signup and view all the answers

What is the result of the crossover stage in meiosis?

<p>A new genotype (A)</p> Signup and view all the answers

What is natural selection?

<p>The preservation of favorable variations and rejection of unfavorable variations (C)</p> Signup and view all the answers

Which of the following is NOT considered a GA operator?

<p>Methods of validation (B)</p> Signup and view all the answers

Which of the following is an example of a common representation method in genetic algorithms?

<p>Binary strings (A)</p> Signup and view all the answers

What is the main concept behind roulette-wheel selection in genetic algorithms?

<p>Each individual gets a slice of the wheel proportionally to their fitness, and more fit ones get larger slices. (A)</p> Signup and view all the answers

In 'elitist selection', what is the primary criterion for selecting individuals for the next generation?

<p>Fitness level (A)</p> Signup and view all the answers

What are the two primary methods of reproduction in genetic algorithms?

<p>Crossover and mutation (D)</p> Signup and view all the answers

What is the main purpose of crossover in genetic algorithms?

<p>To randomly recombine the chromosomes of two parents to form new offspring (D)</p> Signup and view all the answers

What does a 'uniform crossover' involve?

<p>Randomly selecting a subset from parent 1 and the other bits from parent 2 (C)</p> Signup and view all the answers

What is the approach to finding the solution for the Traveling Salesman Problem using genetic algorithms?

<p>To find a tour of a given set of cities so that each city is visited only once and the total distance traveled is minimized (C)</p> Signup and view all the answers

Which of the following describes an 'order-based GA' in the context of the Traveling Salesman Problem?

<p>A list of city numbers known as an order-based GA (D)</p> Signup and view all the answers

In the context of the Traveling Salesman Problem, what does mutation involve?

<p>Reordering the sequence of cities in the list (D)</p> Signup and view all the answers

Which real-world application uses a genetic algorithm?

<p>Gas pipeline optimization (A)</p> Signup and view all the answers

Which of the following is a benefit of using genetic algorithms?

<p>They can be adapted for multi-objective optimization problems. (D)</p> Signup and view all the answers

Which of the following statements is true about the solutions provided by genetic algorithms?

<p>Genetic algorithms always provides an answer or an approximate answer. (C)</p> Signup and view all the answers

Flashcards

Genetic Algorithm

A search technique used in computing to find true or approximate solutions to optimization and search problems.

Individual (in GA)

Any possible solution within a genetic algorithm.

Population (in GA)

A group of all individuals or possible solutions.

Fitness (in GA)

The target function that we are optimizing.

Signup and view all the flashcards

Trait (in GA)

Possible features of an individual in GA.

Signup and view all the flashcards

Genome

Collection of all chromosomes for individual.

Signup and view all the flashcards

Genetic Algorithm Steps

Evaluate attempted solutions, keep best subset.

Signup and view all the flashcards

MAXONE Problem in GA

Maximize the number of ones in string of digits.

Signup and view all the flashcards

Step 1: Selection

A way to randomly select a subset of Individuals.

Signup and view all the flashcards

Step 2: Crossover

Strings are exchanged for crossover.

Signup and view all the flashcards

Step 3: Mutations

Apply random mutations for a new population.

Signup and view all the flashcards

Genetic Algorithm over time

Fitness increases over time.

Signup and view all the flashcards

The Nucleus

The control center of the cell.

Signup and view all the flashcards

Chromosomes

Genetic info is stored in the chromosomes

Signup and view all the flashcards

Genotype

Entire combination of genes in an organism.

Signup and view all the flashcards

Phenotype

Observable characteristics of an organism.

Signup and view all the flashcards

Meiosis

Basis of sexual reproduction.

Signup and view all the flashcards

Mutations

Errors can occur while copying.

Signup and view all the flashcards

Natural Selection

Favourable variations are passed down.

Signup and view all the flashcards

GA Operators

Methods of Representation, Selection and Reproduction

Signup and view all the flashcards

Representation Methods

Binary strings, arrays of integers, arrays of letters...

Signup and view all the flashcards

Methods of Selection

Strategies to copy into next generation.

Signup and view all the flashcards

Roulette Wheel Selection

Conceptually game of roulette.

Signup and view all the flashcards

Crossover

Two parents produce two offspring.

Signup and view all the flashcards

Crossover strategies

Randomly select single point, multi-point, Uniform-crossover

Signup and view all the flashcards

Mutations

New offspring from single parent.

Signup and view all the flashcards

Traveling Salesman Problem

Each city is visited only once to minimize total travel distance.

Signup and view all the flashcards

Representation.

Ordered list of city numbers known as order-based GA.

Signup and view all the flashcards

Crossover: inversion!

Combines inversion and recombination.

Signup and view all the flashcards

Mutation.

Reordering of the list.

Signup and view all the flashcards

Control

Gas pipeline, missile evasion.

Signup and view all the flashcards

Design

Aircraft design, keyboard configuration.

Signup and view all the flashcards

Game Playing

Checkers, Poker, Game Playing.

Signup and view all the flashcards

Security

Encryption and Decryption

Signup and view all the flashcards

Robotics

Trajectory planning.

Signup and view all the flashcards

Benefits of GA

Concept easy, modular, multi-objective.

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.

Quiz Team

Related Documents

More Like This

Genetic Algorithms: Concepts and Applications
5 questions
Evrimsel Algoritmalar Nedir?
10 questions
Evolutionary Algorithms Quiz
50 questions
Use Quizgecko on...
Browser
Browser