SlideShare a Scribd company logo
1 of 15
By
M.Archana,
I-Msc(CS)
 Genetic Algorithm (GA) is a search-based
optimization technique based on the
principles of Genetics and Natural Selection.
 It is frequently used to find optimal or near-
optimal solutions to difficult problems which
otherwise would take a lifetime to solve.
 It is frequently used to solve optimization
problems, in research, and in machine
learning.
 Optimization is the process of Optimization is the
process of making something better making
something better. In any process, we have a set of
inputs . In any process, we have a set of inputs and a
set of outputs as shown in the following figure.
Process set of
outputs
set of
inputs
 Nature has always been a great source of inspiration
to all mankind.
 Genetic Algorithms (GAs) are search based
algorithms based on the concepts of natural
selection and genetics.
 GAs are a search based algorithms based on the
concepts of natural selection and genetics.
 GAs are a subset of a much larger branch of
computation known as subset of a much larger
branch of computation known as Evolutionary
Computation
 Does not require any derivative information (which may not
be available for many real world problems).
 Is faster and more efficient as compared to the traditional
methods.
 Has very good parallel capabilities
 Optimizes both continuous and discrete functions and also
multi-objective problems.
 Provides a list of “good” solutions and not just a single
solution.
 Always gets an answer to the problem, which gets better
over the time.
 Useful when the search space is very large and there are a
large number of parameters involved
 GAs are not suited for all problems, especially
problems which are simple and for which derivative
information is available
 Fitness value is calculated repeatedly which might
be computationally expensive for some problems.
 Being stochastic, there are no guarantees on the
optimality or the quality of the solution.
 If not implemented properly, the GA may not
converge to the optimal solution.
 Genetic Algorithms have the ability to deliver a
“good-enough” solution “fast-enough”. This makes
genetic algorithms attractive for use in solving
optimization problems. The reasons why GAs are
needed are as follows −
 Solving Difficult Problems
 Failure of Gradient Based Methods
 Getting a Good Solution Fast
 One of the most important decisions to make while
implementing a genetic algorithm is deciding the
representation that we will use to represent our solutions.
 It has been observed that improper representation can lead to
poor performance of the GA.
 There are four kinds by which we can represent Genetic
Algorithm, such as:
 Binary Representation
 Real Valued Representation
 Integer Representation
 Permutation Representation
 This is one of the simplest and most widely used
representation in GAs. In this type of representation
the genotype consists of bit strings.
 For some problems when the solution space consists
of Boolean decision variables – yes or no, the binary
representation is natural
 For example,0/1 Knapsack Problem
0010111001
 For problems where we want to define the
genes using continuous rather than discrete
variables, the real valued representation is the
most natural.
 The precision of these real valued or
floating point numbers is however limited to
the computer.
0.5 0.2 0.6 0.8 0.7 0.4 0.3 0.2 0.1 0.9
 For discrete valued genes, we cannot always limit
the solution space to binary ‘yes’ or ‘no’.
 For example, if we want to encode the four
distances – North, South, East and West, we can
encode them as{1,2,3,4}.
 In such cases, integer representation is desirable.
1 2 3 4 3 2 4 1 2 1
 In many problems, the solution is represented by an
order of elements.
 In such cases permutation representation is the most
suited.
 A classic example of this representation is the
travelling salesman problem (TSP).
1 5 9 8 7 4 2 3 6 0
THANK YOU!!!

More Related Content

What's hot

Memetic search in differential evolution algorithm
Memetic search in differential evolution algorithmMemetic search in differential evolution algorithm
Memetic search in differential evolution algorithm
Dr Sandeep Kumar Poonia
 
Machine Learning, Data Mining, Genetic Algorithms, Neural ...
Machine Learning, Data Mining, Genetic Algorithms, Neural ...Machine Learning, Data Mining, Genetic Algorithms, Neural ...
Machine Learning, Data Mining, Genetic Algorithms, Neural ...
butest
 
Dowload Paper.doc.doc
Dowload Paper.doc.docDowload Paper.doc.doc
Dowload Paper.doc.doc
butest
 

What's hot (18)

Genetic algo
Genetic algoGenetic algo
Genetic algo
 
Memetic search in differential evolution algorithm
Memetic search in differential evolution algorithmMemetic search in differential evolution algorithm
Memetic search in differential evolution algorithm
 
Ga ppt (1)
Ga ppt (1)Ga ppt (1)
Ga ppt (1)
 
Introduction to the Genetic Algorithm
Introduction to the Genetic AlgorithmIntroduction to the Genetic Algorithm
Introduction to the Genetic Algorithm
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
Survival of the Fittest: Using Genetic Algorithm for Data Mining Optimization
Survival of the Fittest: Using Genetic Algorithm for Data Mining OptimizationSurvival of the Fittest: Using Genetic Algorithm for Data Mining Optimization
Survival of the Fittest: Using Genetic Algorithm for Data Mining Optimization
 
SoftComputing4
SoftComputing4SoftComputing4
SoftComputing4
 
Optimised random mutations for
Optimised random mutations forOptimised random mutations for
Optimised random mutations for
 
Machine Learning, Data Mining, Genetic Algorithms, Neural ...
Machine Learning, Data Mining, Genetic Algorithms, Neural ...Machine Learning, Data Mining, Genetic Algorithms, Neural ...
Machine Learning, Data Mining, Genetic Algorithms, Neural ...
 
The potential role of ai in the minimisation and mitigation of project delay
The potential role of ai in the minimisation and mitigation of project delayThe potential role of ai in the minimisation and mitigation of project delay
The potential role of ai in the minimisation and mitigation of project delay
 
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
 
Ar03402580261
Ar03402580261Ar03402580261
Ar03402580261
 
Are Evolutionary Algorithms Required to Solve Sudoku Problems
Are Evolutionary Algorithms Required to Solve Sudoku ProblemsAre Evolutionary Algorithms Required to Solve Sudoku Problems
Are Evolutionary Algorithms Required to Solve Sudoku Problems
 
Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...
Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...
Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...
 
Dowload Paper.doc.doc
Dowload Paper.doc.docDowload Paper.doc.doc
Dowload Paper.doc.doc
 
[IJCT-V3I2P31] Authors: Amarbir Singh
[IJCT-V3I2P31] Authors: Amarbir Singh[IJCT-V3I2P31] Authors: Amarbir Singh
[IJCT-V3I2P31] Authors: Amarbir Singh
 
AHP technique a way to show preferences amongst alternatives
AHP technique a way to show preferences amongst alternativesAHP technique a way to show preferences amongst alternatives
AHP technique a way to show preferences amongst alternatives
 

Similar to Genetic algorithm

A genetic algorithm approach to static job shop scheduling
A genetic algorithm approach to static job shop schedulingA genetic algorithm approach to static job shop scheduling
A genetic algorithm approach to static job shop scheduling
Nagendra Bvs
 
Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithm
Uday Wankar
 
List the problems that can be efficiently solved by Evolutionary P.pdf
List the problems that can be efficiently solved by Evolutionary P.pdfList the problems that can be efficiently solved by Evolutionary P.pdf
List the problems that can be efficiently solved by Evolutionary P.pdf
infomalad
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.ppt
Nipun85
 

Similar to Genetic algorithm (20)

A Genetic Algorithm Problem Solver For Archaeology
A Genetic Algorithm Problem Solver For ArchaeologyA Genetic Algorithm Problem Solver For Archaeology
A Genetic Algorithm Problem Solver For Archaeology
 
A genetic algorithm approach to static job shop scheduling
A genetic algorithm approach to static job shop schedulingA genetic algorithm approach to static job shop scheduling
A genetic algorithm approach to static job shop scheduling
 
Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithm
 
List the problems that can be efficiently solved by Evolutionary P.pdf
List the problems that can be efficiently solved by Evolutionary P.pdfList the problems that can be efficiently solved by Evolutionary P.pdf
List the problems that can be efficiently solved by Evolutionary P.pdf
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.ppt
 
AI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.pptAI_PPT_Genetic-Algorithms.ppt
AI_PPT_Genetic-Algorithms.ppt
 
Genetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.pptGenetic-Algorithms-computersciencepptnew.ppt
Genetic-Algorithms-computersciencepptnew.ppt
 
Genetic-Algorithms forv artificial .ppt
Genetic-Algorithms forv artificial  .pptGenetic-Algorithms forv artificial  .ppt
Genetic-Algorithms forv artificial .ppt
 
Genetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.pptGenetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.ppt
 
Genetic-Algorithms.ppt
Genetic-Algorithms.pptGenetic-Algorithms.ppt
Genetic-Algorithms.ppt
 
Structural Optimization using Genetic Algorithms - Artificial Intelligence Fu...
Structural Optimization using Genetic Algorithms - Artificial Intelligence Fu...Structural Optimization using Genetic Algorithms - Artificial Intelligence Fu...
Structural Optimization using Genetic Algorithms - Artificial Intelligence Fu...
 
T01732115119
T01732115119T01732115119
T01732115119
 
Artificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path PlanningArtificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path Planning
 
A Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test FunctionsA Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test Functions
 
Genetic Algorithm 2 -.pptx
Genetic Algorithm 2 -.pptxGenetic Algorithm 2 -.pptx
Genetic Algorithm 2 -.pptx
 
M017127578
M017127578M017127578
M017127578
 
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
 
RM 701 Genetic Algorithm and Fuzzy Logic lecture
RM 701 Genetic Algorithm and Fuzzy Logic lectureRM 701 Genetic Algorithm and Fuzzy Logic lecture
RM 701 Genetic Algorithm and Fuzzy Logic lecture
 
COMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEM
COMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEMCOMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEM
COMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEM
 
Comparative study of different algorithms
Comparative study of different algorithmsComparative study of different algorithms
Comparative study of different algorithms
 

More from ArchanaMani2

More from ArchanaMani2 (10)

Software evolution and Verification,validation
Software evolution and Verification,validationSoftware evolution and Verification,validation
Software evolution and Verification,validation
 
Code scheduling constraints
Code scheduling constraintsCode scheduling constraints
Code scheduling constraints
 
Ajax enabled rich internet applications with xml and json
Ajax enabled rich internet applications with xml and jsonAjax enabled rich internet applications with xml and json
Ajax enabled rich internet applications with xml and json
 
Excellence in visulization
Excellence in visulizationExcellence in visulization
Excellence in visulization
 
Firewall
FirewallFirewall
Firewall
 
The linux system
The linux systemThe linux system
The linux system
 
Big data
Big dataBig data
Big data
 
Transaction management
Transaction managementTransaction management
Transaction management
 
Topological Sort and BFS
Topological Sort and BFSTopological Sort and BFS
Topological Sort and BFS
 
Inheritance and overriding
Inheritance  and overridingInheritance  and overriding
Inheritance and overriding
 

Recently uploaded

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

Genetic algorithm

  • 2.  Genetic Algorithm (GA) is a search-based optimization technique based on the principles of Genetics and Natural Selection.  It is frequently used to find optimal or near- optimal solutions to difficult problems which otherwise would take a lifetime to solve.  It is frequently used to solve optimization problems, in research, and in machine learning.
  • 3.  Optimization is the process of Optimization is the process of making something better making something better. In any process, we have a set of inputs . In any process, we have a set of inputs and a set of outputs as shown in the following figure. Process set of outputs set of inputs
  • 4.  Nature has always been a great source of inspiration to all mankind.  Genetic Algorithms (GAs) are search based algorithms based on the concepts of natural selection and genetics.  GAs are a search based algorithms based on the concepts of natural selection and genetics.  GAs are a subset of a much larger branch of computation known as subset of a much larger branch of computation known as Evolutionary Computation
  • 5.  Does not require any derivative information (which may not be available for many real world problems).  Is faster and more efficient as compared to the traditional methods.  Has very good parallel capabilities  Optimizes both continuous and discrete functions and also multi-objective problems.  Provides a list of “good” solutions and not just a single solution.  Always gets an answer to the problem, which gets better over the time.  Useful when the search space is very large and there are a large number of parameters involved
  • 6.  GAs are not suited for all problems, especially problems which are simple and for which derivative information is available  Fitness value is calculated repeatedly which might be computationally expensive for some problems.  Being stochastic, there are no guarantees on the optimality or the quality of the solution.  If not implemented properly, the GA may not converge to the optimal solution.
  • 7.  Genetic Algorithms have the ability to deliver a “good-enough” solution “fast-enough”. This makes genetic algorithms attractive for use in solving optimization problems. The reasons why GAs are needed are as follows −  Solving Difficult Problems  Failure of Gradient Based Methods  Getting a Good Solution Fast
  • 8.
  • 9.  One of the most important decisions to make while implementing a genetic algorithm is deciding the representation that we will use to represent our solutions.  It has been observed that improper representation can lead to poor performance of the GA.  There are four kinds by which we can represent Genetic Algorithm, such as:  Binary Representation  Real Valued Representation  Integer Representation  Permutation Representation
  • 10.  This is one of the simplest and most widely used representation in GAs. In this type of representation the genotype consists of bit strings.  For some problems when the solution space consists of Boolean decision variables – yes or no, the binary representation is natural  For example,0/1 Knapsack Problem 0010111001
  • 11.  For problems where we want to define the genes using continuous rather than discrete variables, the real valued representation is the most natural.  The precision of these real valued or floating point numbers is however limited to the computer. 0.5 0.2 0.6 0.8 0.7 0.4 0.3 0.2 0.1 0.9
  • 12.  For discrete valued genes, we cannot always limit the solution space to binary ‘yes’ or ‘no’.  For example, if we want to encode the four distances – North, South, East and West, we can encode them as{1,2,3,4}.  In such cases, integer representation is desirable. 1 2 3 4 3 2 4 1 2 1
  • 13.  In many problems, the solution is represented by an order of elements.  In such cases permutation representation is the most suited.  A classic example of this representation is the travelling salesman problem (TSP). 1 5 9 8 7 4 2 3 6 0
  • 14.