SlideShare a Scribd company logo
2
Most read
5
Most read
7
Most read
GENETIC ALGORITHMSRohith NandakumarS7 CS06348
INTRODUCTIONGenes are the basic “instructions” for building an organismGene represents a specific trait of 		the organism. Ex: Eye colorA gene may have different settingsA chromosome is a sequence of genes
EVOLUTIONOrganisms (animals or plants) produce a number of offspring which are almost, but not entirely, like themselvesVariation may be due to mutation (random changes)Variation may be due to combination of some characteristics from each parentSome of these offspring may survive to produce offspring of their own - some won’tThe “better adapted” offspring are more likely to surviveOver time, later generations become better and better adaptedGenetic algorithms use this same process to “evolve” better programs
GENETIC ALGORITHMSInspired by Darwin's theory about evolutionTheyare a part of evolutionary computing, which is a rapidly growing area of artificial intelligenceIdea of evolutionary computing was introduced in the 1960s by I.RechenbergGenetic Algorithms (GAs) were invented by John HollandIn 1992 John Kozahas used genetic algorithm to evolve programs to perform certain tasks. He called his method "genetic programming" (GP) LISP programs were used, because programs in this language can expressed in the form of a "parse tree", which is the object the GA works on
THE BASIC ALGORITHMSuppose your “organisms” are 32-bit computer wordsYou want a string in which all the bits are onesHere’s how you can do it:Create 100 randomly generated computer wordsRepeatedly do the following:Count the 1 bits in each wordExit if any of the words have all 32 bits set to 1Keep the ten words that have the most 1s (discard the rest)From each word, generate 9 new words as follows:Choose one of the other wordsTake the first half of this word and combine it with the second half of the other wordPick a random bit in the word and toggle (change) itNote that this procedure does not guarantee that the next “generation” will have more 1 bits, but it’s likely
ENCODINGThe chromosome should in some way contain information about solution which it representsThe most used way of encoding is a binary string. The chromosome then could look like this:Each chromosome has one binary stringEach bit in this string can represent some characteristic of the solution. Or the whole string can represent a number.
CROSSOVERCrossover selects genes from parent chromosomes and creates a new offspringA crossover point is chosen at randomEverything before this point, copy from a first parent and then everything after it copy from the second parent.There are other ways how to make crossoverSpecific crossover made for a specific problem can improve performance of the genetic algorithm
MUTATIONMutation prevents the algorithm to be trapped in a local minimaChanges are made in the offspring randomlyThe mutation depends on the encoding as well as the crossover.
SELECTIONChromosomes are selected from the population to be parents to crossoverMain idea: better individuals get higher chance to reproduceChances proportional to fitnessImplementation: Roulette Wheel techniqueAssign to each individual a part of the roulette wheel
Spin the wheel n times to select n individualsAN EXAMPLE:TRAVELLING SALESMAN PROBLEM
INITIAL POPULATION FOR TSP(5,3,4,6,2)(2,4,6,3,5)(4,3,6,5,2)(2,3,4,6,5)(4,3,6,2,5)(3,4,5,2,6)(3,5,4,6,2)(4,5,3,6,2)(5,4,2,3,6)(4,6,3,2,5)(3,4,2,6,5)(3,6,5,1,4)
SELECT PARENTS(5,3,4,6,2)(2,4,6,3,5)(4,3,6,5,2)(2,3,4,6,5)(4,3,6,2,5)(3,4,5,2,6)(3,5,4,6,2)(4,5,3,6,2)(5,4,2,3,6)(4,6,3,2,5)(3,4,2,6,5)(3,6,5,1,4)Try to pick the better ones.
CREATE OFFSPRING(5,3,4,6,2)(2,4,6,3,5)(4,3,6,5,2)(2,3,4,6,5)(4,3,6,2,5)(3,4,5,2,6)(3,5,4,6,2)(4,5,3,6,2)(5,4,2,3,6)(4,6,3,2,5)(3,4,2,6,5)(3,6,5,1,4)(3,4,5,6,2)
CREATE MORE OFFSPRING(5,3,4,6,2)(2,4,6,3,5)(4,3,6,5,2)(2,3,4,6,5)(4,3,6,2,5)(3,4,5,2,6)(3,5,4,6,2)(4,5,3,6,2)(5,4,2,3,6)(4,6,3,2,5)(3,4,2,6,5)(3,6,5,1,4)(3,4,5,6,2)(5,4,2,6,3)
MUTATE(5,3,4,6,2)(2,4,6,3,5)(4,3,6,5,2)(2,3,4,6,5)(4,3,6,2,5)(3,4,5,2,6)(3,5,4,6,2)(4,5,3,6,2)(5,4,2,3,6)(4,6,3,2,5)(3,4,2,6,5)(3,6,5,1,4)(3,4,5,6,2)(5,4,2,6,3)
MUTATE(5,3,4,6,2)(2,4,6,3,5)(4,3,6,5,2)(2,3,4,6,5)(2,3,6,4,5)(3,4,5,2,6)(3,5,4,6,2)(4,5,3,6,2)(5,4,2,3,6)(4,6,3,2,5)(3,4,2,6,5)(3,6,5,1,4)(3,4,5,6,2)(5,4,2,6,3)
ELIMINATE(5,3,4,6,2)(2,4,6,3,5)(4,3,6,5,2)(2,3,4,6,5)(2,3,6,4,5)(3,4,5,2,6)(3,5,4,6,2)(4,5,3,6,2)(5,4,2,3,6)(4,6,3,2,5)(3,4,2,6,5)(3,6,5,1,4)(3,4,5,6,2)(5,4,2,6,3)Tend to kill off the worst ones.
INTEGRATE(5,4,2,6,3)(5,3,4,6,2)(2,4,6,3,5)(2,3,6,4,5)(3,4,5,2,6)(3,4,5,6,2)(3,5,4,6,2)(4,5,3,6,2)(5,4,2,3,6)(4,6,3,2,5)(3,4,2,6,5)(3,6,5,1,4)
RESTART(5,3,4,6,2)(2,4,6,3,5)(5,4,2,6,3)(2,3,6,4,5)(3,4,5,2,6)(3,4,5,6,2)(3,5,4,6,2)(4,5,3,6,2)(5,4,2,3,6)(4,6,3,2,5)(3,4,2,6,5)(3,6,5,1,4)
GENETIC PROGRAMMINGA string of bits could represent a programIf you want a program to do something, you might try to evolve oneAs a concrete example, suppose you want a program to help you choose stocks in the stock marketThere is a huge amount of data, going back many yearsWhat data has the most predictive value?What’s the best way to combine this data?A genetic program is possible in theory, but it might take years to evolve into something useful
APPLICATIONS OF GATravelling Salesman ProblemArtificial Life (A-Life)RoboticsAutomotive DesignEvolvable HardwareComputer GamingOptimizing Chemical Kinetic AnalysisEncryption and Code Breaking
CONCLUSIONGenetic algorithms are -Fun! They are enjoyable to program and to work withMind-bogglingly slow - you don’t want to use them if you have any alternativesGood for a very few types of problemsGenetic algorithms can sometimes come up with a solution when you can see no other way of tackling the problem
Q & A?
THANKYOU…

More Related Content

What's hot (20)

PDF
Genetic Algorithms
adil raja
 
PDF
Genetic Algorithms
Karthik Sankar
 
PPTX
Genetic algorithm raktim
Raktim Halder
 
PDF
Genetic Algorithms
Alaa Khamis, PhD, SMIEEE
 
PPTX
Genetic algorithm
Jari Abbas
 
PPTX
Simulated Annealing
Joy Dutta
 
PPTX
Ga ppt (1)
RAHUL SOLANKI
 
PPTX
Evolutionary Algorithms
Reem Alattas
 
PPTX
Genetic Algorithm in Artificial Intelligence
Sinbad Konick
 
PPT
Introduction to Genetic algorithms
Akhil Kaushik
 
PDF
Genetic algorithm fitness function
Prof Ansari
 
PPTX
Evolutionary computing - soft computing
SakshiMahto1
 
PPTX
Introduction to Genetic Algorithms
Ahmed Othman
 
PPTX
Genetic Algorithm
SEKHARREDDYAMBATI
 
PDF
Data Science - Part XIV - Genetic Algorithms
Derek Kane
 
PDF
Genetic Algorithms Made Easy
Prakash Pimpale
 
PPT
Genetic Algorithms
anas_elf
 
PPTX
Genetic Algorithm
Fatemeh Karimi
 
PPTX
Probabilistic Reasoning
Junya Tanaka
 
PDF
A* Search Algorithm
vikas dhakane
 
Genetic Algorithms
adil raja
 
Genetic Algorithms
Karthik Sankar
 
Genetic algorithm raktim
Raktim Halder
 
Genetic Algorithms
Alaa Khamis, PhD, SMIEEE
 
Genetic algorithm
Jari Abbas
 
Simulated Annealing
Joy Dutta
 
Ga ppt (1)
RAHUL SOLANKI
 
Evolutionary Algorithms
Reem Alattas
 
Genetic Algorithm in Artificial Intelligence
Sinbad Konick
 
Introduction to Genetic algorithms
Akhil Kaushik
 
Genetic algorithm fitness function
Prof Ansari
 
Evolutionary computing - soft computing
SakshiMahto1
 
Introduction to Genetic Algorithms
Ahmed Othman
 
Genetic Algorithm
SEKHARREDDYAMBATI
 
Data Science - Part XIV - Genetic Algorithms
Derek Kane
 
Genetic Algorithms Made Easy
Prakash Pimpale
 
Genetic Algorithms
anas_elf
 
Genetic Algorithm
Fatemeh Karimi
 
Probabilistic Reasoning
Junya Tanaka
 
A* Search Algorithm
vikas dhakane
 

Viewers also liked (14)

PPTX
Genetic Algorithm by Example
Nobal Niraula
 
PPTX
Genetic Algorithm
Thushan Ganegedara
 
PDF
A Practical Schema Theorem for Genetic Algorithm Design and Tuning
kknsastry
 
PPTX
Regression and Classification: An Artificial Neural Network Approach
Khulna University
 
PPT
Using Genetic algorithm for Network Intrusion Detection
Sagar Uday Kumar
 
PPTX
Genetic Algorithm
SHIMI S L
 
PPTX
Fuzzy Genetic Algorithm
Pintu Khan
 
PPTX
Lecture 29 genetic algorithm-example
Hema Kashyap
 
PPTX
genetic algorithm based music recommender system
neha pevekar
 
PPT
Genetic Algorithms - Artificial Intelligence
Sahil Kumar
 
PPTX
Neural network & its applications
Ahmed_hashmi
 
PPTX
Chapter 5 - Fuzzy Logic
Ashique Rasool
 
PPTX
Artificial neural network
DEEPASHRI HK
 
PPT
Technology powerpoint presentations
ismailraesha
 
Genetic Algorithm by Example
Nobal Niraula
 
Genetic Algorithm
Thushan Ganegedara
 
A Practical Schema Theorem for Genetic Algorithm Design and Tuning
kknsastry
 
Regression and Classification: An Artificial Neural Network Approach
Khulna University
 
Using Genetic algorithm for Network Intrusion Detection
Sagar Uday Kumar
 
Genetic Algorithm
SHIMI S L
 
Fuzzy Genetic Algorithm
Pintu Khan
 
Lecture 29 genetic algorithm-example
Hema Kashyap
 
genetic algorithm based music recommender system
neha pevekar
 
Genetic Algorithms - Artificial Intelligence
Sahil Kumar
 
Neural network & its applications
Ahmed_hashmi
 
Chapter 5 - Fuzzy Logic
Ashique Rasool
 
Artificial neural network
DEEPASHRI HK
 
Technology powerpoint presentations
ismailraesha
 
Ad

Similar to Genetic Algorithm (20)

PPT
Genetic Algorithms - GAs
Mohamed Talaat
 
DOC
A genetic algorithm approach to static job shop scheduling
Nagendra Bvs
 
PDF
Soft Computing- Dr. H.s. Hota 28.08.14.pdf
forsatyam9451
 
PPTX
Genetic algorithm optimization technique.pptx
sridharece1
 
PDF
Genetic Algorithms in Artificial Intelligence
ritwijkp2
 
PDF
A Review On Genetic Algorithm And Its Applications
Karen Gomez
 
PDF
Introduction to Genetic Algorithms
Vanessa Camilleri
 
PPT
AI_PPT_Genetic-Algorithms.ppt
HotTea
 
PPT
Genetic-Algorithms forv artificial .ppt
neelamsanjeevkumar
 
PPT
Genetic-Algorithms-computersciencepptnew.ppt
Fitnessfreaksfam
 
PPT
Genetic-Algorithms.ppt
ssuser2e437f
 
PPT
Genetic-Algorithms.ppt
Nipun85
 
PPT
Genetic-Algorithms for machine learning and ai.ppt
neelamsanjeevkumar
 
PPTX
GA.pptx
ShujatHussainGadi
 
PPTX
GA of a Paper 2012.pptx
waqasjavaid26
 
PPT
Genetic algorithms
guest9938738
 
PDF
Practical Genetic Algorithms
Julian Bunn
 
PPTX
Introduction to Genetic algorithm
HEENA GUPTA
 
PPT
Soft computing06
university of sargodha
 
PPT
Demonstration1 G As
Safi Ur Rehman
 
Genetic Algorithms - GAs
Mohamed Talaat
 
A genetic algorithm approach to static job shop scheduling
Nagendra Bvs
 
Soft Computing- Dr. H.s. Hota 28.08.14.pdf
forsatyam9451
 
Genetic algorithm optimization technique.pptx
sridharece1
 
Genetic Algorithms in Artificial Intelligence
ritwijkp2
 
A Review On Genetic Algorithm And Its Applications
Karen Gomez
 
Introduction to Genetic Algorithms
Vanessa Camilleri
 
AI_PPT_Genetic-Algorithms.ppt
HotTea
 
Genetic-Algorithms forv artificial .ppt
neelamsanjeevkumar
 
Genetic-Algorithms-computersciencepptnew.ppt
Fitnessfreaksfam
 
Genetic-Algorithms.ppt
ssuser2e437f
 
Genetic-Algorithms.ppt
Nipun85
 
Genetic-Algorithms for machine learning and ai.ppt
neelamsanjeevkumar
 
GA of a Paper 2012.pptx
waqasjavaid26
 
Genetic algorithms
guest9938738
 
Practical Genetic Algorithms
Julian Bunn
 
Introduction to Genetic algorithm
HEENA GUPTA
 
Soft computing06
university of sargodha
 
Demonstration1 G As
Safi Ur Rehman
 
Ad

Recently uploaded (20)

PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 

Genetic Algorithm