GENETIC ALGORITHM By Siti Rohajawati. Definition Genetic algorithms are sets of computational procedures that conceptually follow steps inspired by the.

Slides:



Advertisements
Similar presentations
Genetic Algorithms (Evolutionary Computing) Genetic Algorithms are used to try to “evolve” the solution to a problem Generate prototype solutions called.
Advertisements

Tetris and Genetic Algorithms Math Club 5/30/2011.
Genetic Algorithms By: Anna Scheuler and Aaron Smittle.
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
Biologically Inspired AI (mostly GAs). Some Examples of Biologically Inspired Computation Neural networks Evolutionary computation (e.g., genetic algorithms)
21-May-15 Genetic Algorithms. 2 Evolution Here’s a very oversimplified description of how evolution works in biology Organisms (animals or plants) produce.
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
Genetic Algorithms. Some Examples of Biologically Inspired AI Neural networks Evolutionary computation (e.g., genetic algorithms) Immune-system-inspired.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Data Mining CS 341, Spring 2007 Genetic Algorithm.
Genetic Algorithms GAs are one of the most powerful and applicable search methods available GA originally developed by John Holland (1975) Inspired by.
1 Genetic Algorithms. CS The Traditional Approach Ask an expert Adapt existing designs Trial and error.
Genetic Algorithms Learning Machines for knowledge discovery.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
1 Genetic Algorithms. CS 561, Session 26 2 The Traditional Approach Ask an expert Adapt existing designs Trial and error.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Algorithms Overview Genetic Algorithms: a gentle introduction –What are GAs –How do they work/ Why? –Critical issues Use in Data Mining –GAs.
Genetic Algorithm.
Evolutionary Intelligence
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Evolution Strategies Evolutionary Programming Genetic Programming Michael J. Watts
CS 484 – Artificial Intelligence1 Announcements Lab 3 due Tuesday, November 6 Homework 6 due Tuesday, November 6 Lab 4 due Thursday, November 8 Current.
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Genetic Algorithms Michael J. Watts
Boltzmann Machine (BM) (§6.4) Hopfield model + hidden nodes + simulated annealing BM Architecture –a set of visible nodes: nodes can be accessed from outside.
Genetic algorithms Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
Presenter: Chih-Yuan Chou GA-BASED ALGORITHMS FOR FINDING EQUILIBRIUM 1.
Applying Genetic Algorithm to the Knapsack Problem Qi Su ECE 539 Spring 2001 Course Project.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Fuzzy Genetic Algorithm
Genetic Algorithms Introduction Advanced. Simple Genetic Algorithms: Introduction What is it? In a Nutshell References The Pseudo Code Illustrations Applications.
1 Machine Learning: Lecture 12 Genetic Algorithms (Based on Chapter 9 of Mitchell, T., Machine Learning, 1997)
1 Chapter 14 Genetic Algorithms. 2 Chapter 14 Contents (1) l Representation l The Algorithm l Fitness l Crossover l Mutation l Termination Criteria l.
EE459 I ntroduction to Artificial I ntelligence Genetic Algorithms Kasin Prakobwaitayakit Department of Electrical Engineering Chiangmai University.
Genetic Algorithms. Evolutionary Methods Methods inspired by the process of biological evolution. Main ideas: Population of solutions Assign a score or.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
Learning by Simulating Evolution Artificial Intelligence CSMC February 21, 2002.
 Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms n Introduction, or can evolution be intelligent? n Simulation.
Evolution Programs (insert catchy subtitle here).
Genetic Algorithms Genetic algorithms provide an approach to learning that is based loosely on simulated evolution. Hypotheses are often described by bit.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
1. Genetic Algorithms: An Overview  Objectives - Studying basic principle of GA - Understanding applications in prisoner’s dilemma & sorting network.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Biologically inspired algorithms BY: Andy Garrett YE Ziyu.
Waqas Haider Bangyal 1. Evolutionary computing algorithms are very common and used by many researchers in their research to solve the optimization problems.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
N- Queens Solution with Genetic Algorithm By Mohammad A. Ismael.
Genetic Algorithms MITM613 (Intelligent Systems).
Genetic Algorithms Chapter Description of Presentations
Neural Networks And Its Applications By Dr. Surya Chitra.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Selection Methods Choosing the individuals in the population that will create offspring for the next generation. Richard P. Simpson.
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
March 1, 2016Introduction to Artificial Intelligence Lecture 11: Machine Evolution 1 Let’s look at… Machine Evolution.
Genetic Algorithm (Knapsack Problem)
Introduction to Genetic Algorithms
Using GA’s to Solve Problems
Chapter 14 Genetic Algorithms.
Genetic Algorithm in TDR System
Genetic Algorithms.
Evolution Strategies Evolutionary Programming
Introduction to Artificial Intelligence Lecture 11: Machine Evolution
Boltzmann Machine (BM) (§6.4)
Presentation transcript:

GENETIC ALGORITHM By Siti Rohajawati

Definition Genetic algorithms are sets of computational procedures that conceptually follow steps inspired by the biological processes of evolution. Better and better solutions evolve from previous generations until an optimal or near optimal solution is obtained.

Genetic algorithms (also known as evolutionary algorithms) demonstrate self- organization and adaptation in much the same way that the fittest biological organisms survive and reproduce.

The method learns by producing offspring that are better and better as measured by a fitness (to survive) function. Algorithms of this type have been applied to problems like vehicle routing (Baker and Syechew, 2003), bangkruptcy prediction (Shin and Lee, 2000), and Web Search (Nick and Themis, 2001).

Process GA

Selection Process Fitness proportionate selection Rank Selection Tournament Selection Steady-State Selection Elitism

The Vector Games – To illustrate how genetic algorithms work, we describe the Vector Game (Walbridge, 1989). This games is similar to MasterMind. As your opponent give you clues about how good your guess is (a fitness function), you create a new solution using knowledge of the current solutions and their quality.

Description – Vector is played against an opponent who secretly writes down a string of six digits (in a genetic algorithm, this string consists of chromosomes), Each digit can be either 0 or 1. – For this example, the secret number is You must try to guess this number as quickly as possible. You present a number (a guess) to your opponent, and he or she tells you how many of the digits (but not which ones) you guessed are correct (the fitness function or quality of your guess). – For example, the guess has no correct digits (score = 0). The guess has only one correct digit (the third one). Thus, the score (the fitness, or value, of the solution) = 1

RANDOM TRIAL AND ERROR There are 64 possible six-digit strings of number. If you pick numbers at random, it will take, on average, 32 guesses to obtain the right answer. Can you do it faster? Yes, if you can interpret the feedback provided to you by your opponent (a measured of the goodness or fitness of your guess). This is how a genetic algorithm works.

GA Solution Step 1: Present to your opponent four strings selected at random. (Select four arbitrarily, through experimentation, you may find that five or six would be better). Assume that you have selected these four: – (A)110100: for a score = 1 (one digit correctly guessed) – (B)111101: score = 1 – (C)011011: score = 4 – (D)101100: score = 3 Because none of these strings is entirely correct, continue

Step 2: Delete (A) and (B) because of their low scores. Call (C) and (D) parents. Step 3: “Mate” the parents by splitting each number as shown between the second and third digits (the position of the split is randomly selected): – (C) 01:1011 – (D)10:1100

Now combine the first two digits of (C) with the last four of (D) (this is called CROSSOVER). The result is (E), the first offspring: – (E)011100: score = 3 Similarity, combine the first two digits of (D) with the last four of (C). The result is (F), the second offspring: – (F)101011: score = 4 It looks as though the offspring are not doing much better than the parents.

Step 4: Now copy the original (C) and (D). Step 5: Mate and crossover the new parents, but use a different split. Now you have two new offspring, (G) and (H): – (C)0110:11 – (D)1011:00 – (G)011000: score = 4 – (H)101111: score = 3

Next, repeat step 2: Select the best “couple” from all the previous solutions to reproduce. You have several options, such as (G) and (C). Select (G) and (F). Now duplicate and crossover. Here are the results: – (F)1:01011 – (G)0:11000 – (I)111000: score = 3 – (J)001011: score = 5

You can also generate more offspring: – (F)101:011 – (G)011:000 – (K)101000: score = 4 – (L)011011: score = 4 Now repeat the process with (J) and (K) as parents, and duplicate the crossover: – (J)00101:1 – (K)10100:0 – (M)001010: score = 6 This is it! You have reached the solution after 13 guessed. Not bad when compared to the average of 32 for a random guess out of 64 possibilities.