SlideShare a Scribd company logo
3
Most read
4
Most read
13
Most read
Genetic Algorithms
Ministry of Education and Science of the Russian
Federation
Crimean Federal V.I. Vernadsky University
Taurida academy
(structural subdivision)
Author: Alexander Bidanets
3-d - year student
Bachelor course
Mathematics and informatics department
Major in: applied mathematics and informatics
Language instructor: Associate Professor Oksana Vladimirovna Yermolenko
Table of contents
The traveling salesman problem
What is the genetic algorithm?
Conclusion
What is known to be the
optimization problem?
In mathematics and computer science, an optimization problem is
the problem of finding the best solution from all feasible solutions. In optimization
problems we are looking for the largest value or the smallest value that a function
can take.
Traveling salesman problem
The travelling salesman problem (TSP) asks the
following question: Given a list of cities and the distances
between each pair of cities, what is the shortest possible
route that visits each city exactly once and returns to the
origin city? It is an problem in combinatorial optimization,
important in theoretical computer science.
Solving the traveling salesman problem by genetic algorithm
What is the genetic algorithm?
Individual
(chromosome)
Any possible solution of a problem
Population Group of all individuals
Search space All possible solutions to the problem
Locus The position of a gene on the chromosome
the genes value is the number of variable slots on a chromosome;
the codes value is the number of possible values for each gene;
Now, before we start, we should understand some key terms:
What is the genetic algorithm?
Algorithm is started with a set of solutions (represented by chromosomes)
called population. Solutions from one population are taken and used to form a new
population. This is motivated by a hope, that the new population will be better than
the old one. Solutions which are selected to form new solutions (offspring) are
selected according to their fitness - the more suitable they are the more chances they
have to reproduce.
This is repeated until some condition is satisfied (for example number of
populations or improvement of the best solution).
Basic Operators of Genetic
Algorithm
•Encoding and Initialization
•Crossover (also called recombination)
•Mutation
•Selection and Fitness function
•Decoding
Initialization
Solving the traveling salesman problem by genetic algorithm
Solving the traveling salesman problem by genetic algorithm
Initialization
Population of solutions
Crossover
Mutation
Selection and
Relevance
• The traveling salesman problem has many different real world applications, making it a very popular problem to
solve. The problem of computer wiring can also be modeled as a TSP. We have several modules. These modules
have got a number of pins. We need to connect a subset of pins with wires in such a way that no pin hasn’t to more
than two wires attached to it and the length of the wire is minimized.
• The traveling salesman problem is a kind of testing ground for the algorithms which solved optimization problems,
because TSP is a good representative of this class problems. Therefore, the study of the genetic algorithm for the
traveling salesman problem gives a hope that genetic algorithm allows to solve other optimization problems as well.
• So, investigations of the travelling salesman problem is very important for computer science, Computer
Engineering, web, radio-electronics, business and transport industry.
• The method of genetic algorithm allows to solve the traveling salesman problem quite effectively. The relative error
of the result of this algorithm is quite little.
Conclusion• We has been observed how GA creates solution without having any prior knowledge about the
problem. Unlike other heuristic methods, it uses natural techniques as like crossover, mutation and
selection to make the computation easier and many times faster.
• Genetic algorithms can be used when no information is available about the gradient of the function at
the evaluated points.
• The function itself does not need to be continuous or differentiable.
• Genetic algorithms can still achieve good results even in cases in which the function has several local
minima or maxima.
• These properties of genetic algorithms have their price: unlike traditional random search, the function
is not examined at a single place, constructing a possible path to the local maximum or minimum, but
many different places are considered simultaneously.
• The function must be calculated for all elements of the population.
• GAs are useful optimization procedure
• Easy to parallelize.
Ad

Recommended

Travelling Salesman Problem
Travelling Salesman Problem
Shikha Gupta
 
Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms
Shivank Shah
 
Travelling SalesMan Problem(TSP)
Travelling SalesMan Problem(TSP)
Akshay Kamble
 
implementation of travelling salesman problem with complexity ppt
implementation of travelling salesman problem with complexity ppt
AntaraBhattacharya12
 
Flowchart of GA
Flowchart of GA
Ishucs
 
Genetic Algorithms
Genetic Algorithms
anas_elf
 
Traveling Salesman Problem
Traveling Salesman Problem
Indian Institute of Technology, Roorkee
 
Travelling Salesman Problem
Travelling Salesman Problem
Daniel Raditya
 
Travelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm Optimization
Ilgın Kavaklıoğulları
 
Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)
Mahmoud El-tayeb
 
Travelling salesman problem
Travelling salesman problem
hamza haseeb
 
I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithm
vikas dhakane
 
Ant colony optimization (aco)
Ant colony optimization (aco)
gidla vinay
 
Genetic Algorithms
Genetic Algorithms
Karthik Sankar
 
ant colony optimization
ant colony optimization
Shankha Goswami
 
Ant Colony Optimization
Ant Colony Optimization
Pratik Poddar
 
An introduction to reinforcement learning
An introduction to reinforcement learning
Subrat Panda, PhD
 
Genetic algorithm raktim
Genetic algorithm raktim
Raktim Halder
 
Differential evolution
Differential evolution
ҚяậŧĭҚậ Jậĭn
 
Artificial intelligence(04)
Artificial intelligence(04)
Nazir Ahmed
 
Genetic Algorithms
Genetic Algorithms
Alaa Khamis, PhD, SMIEEE
 
Evolutionary Computing
Evolutionary Computing
Madhawa Gunasekara
 
Markov decision process
Markov decision process
Hamed Abdi
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
Sahil Kumar
 
Pso introduction
Pso introduction
rutika12345
 
Genetic algorithms
Genetic algorithms
zamakhan
 
Travelling salesman problem
Travelling salesman problem
Wajahat Hussain
 
Ant Colony Optimization presentation
Ant Colony Optimization presentation
Partha Das
 
With saloni in ijarcsse
With saloni in ijarcsse
satish rana
 
A heuristic approach for optimizing travel planning using genetics algorithm
A heuristic approach for optimizing travel planning using genetics algorithm
eSAT Journals
 

More Related Content

What's hot (20)

Travelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm Optimization
Ilgın Kavaklıoğulları
 
Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)
Mahmoud El-tayeb
 
Travelling salesman problem
Travelling salesman problem
hamza haseeb
 
I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithm
vikas dhakane
 
Ant colony optimization (aco)
Ant colony optimization (aco)
gidla vinay
 
Genetic Algorithms
Genetic Algorithms
Karthik Sankar
 
ant colony optimization
ant colony optimization
Shankha Goswami
 
Ant Colony Optimization
Ant Colony Optimization
Pratik Poddar
 
An introduction to reinforcement learning
An introduction to reinforcement learning
Subrat Panda, PhD
 
Genetic algorithm raktim
Genetic algorithm raktim
Raktim Halder
 
Differential evolution
Differential evolution
ҚяậŧĭҚậ Jậĭn
 
Artificial intelligence(04)
Artificial intelligence(04)
Nazir Ahmed
 
Genetic Algorithms
Genetic Algorithms
Alaa Khamis, PhD, SMIEEE
 
Evolutionary Computing
Evolutionary Computing
Madhawa Gunasekara
 
Markov decision process
Markov decision process
Hamed Abdi
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
Sahil Kumar
 
Pso introduction
Pso introduction
rutika12345
 
Genetic algorithms
Genetic algorithms
zamakhan
 
Travelling salesman problem
Travelling salesman problem
Wajahat Hussain
 
Ant Colony Optimization presentation
Ant Colony Optimization presentation
Partha Das
 
Travelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm Optimization
Ilgın Kavaklıoğulları
 
Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)
Mahmoud El-tayeb
 
Travelling salesman problem
Travelling salesman problem
hamza haseeb
 
I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithm
vikas dhakane
 
Ant colony optimization (aco)
Ant colony optimization (aco)
gidla vinay
 
Ant Colony Optimization
Ant Colony Optimization
Pratik Poddar
 
An introduction to reinforcement learning
An introduction to reinforcement learning
Subrat Panda, PhD
 
Genetic algorithm raktim
Genetic algorithm raktim
Raktim Halder
 
Artificial intelligence(04)
Artificial intelligence(04)
Nazir Ahmed
 
Markov decision process
Markov decision process
Hamed Abdi
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
Sahil Kumar
 
Pso introduction
Pso introduction
rutika12345
 
Genetic algorithms
Genetic algorithms
zamakhan
 
Travelling salesman problem
Travelling salesman problem
Wajahat Hussain
 
Ant Colony Optimization presentation
Ant Colony Optimization presentation
Partha Das
 

Similar to Solving the traveling salesman problem by genetic algorithm (20)

With saloni in ijarcsse
With saloni in ijarcsse
satish rana
 
A heuristic approach for optimizing travel planning using genetics algorithm
A heuristic approach for optimizing travel planning using genetics algorithm
eSAT Journals
 
A heuristic approach for optimizing travel planning using genetics algorithm
A heuristic approach for optimizing travel planning using genetics algorithm
eSAT Publishing House
 
Comparison Study of Multiple Traveling Salesmen Problem using Genetic Algorithm
Comparison Study of Multiple Traveling Salesmen Problem using Genetic Algorithm
IOSR Journals
 
D0353027043
D0353027043
inventionjournals
 
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
ijsrd.com
 
An Implementational approach to genetic algorithms for TSP
An Implementational approach to genetic algorithms for TSP
Sougata Das
 
Prim and Genetic Algorithms Performance in Determining Optimum Route on Graph
Prim and Genetic Algorithms Performance in Determining Optimum Route on Graph
Universitas Pembangunan Panca Budi
 
Algorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSP
Carrie Romero
 
50120140503015
50120140503015
IAEME Publication
 
E034023028
E034023028
ijceronline
 
Traveling Salesman Problem Federico Greco
Traveling Salesman Problem Federico Greco
zotteltambik
 
A new hybrid approach for solving travelling salesman problem using ordered c...
A new hybrid approach for solving travelling salesman problem using ordered c...
eSAT Journals
 
Meetup Julio Algoritmos Genéticos
Meetup Julio Algoritmos Genéticos
DataLab Community
 
Muzammil Adulrahman ppt on travelling salesman Problem Based On Mutation Gene...
Muzammil Adulrahman ppt on travelling salesman Problem Based On Mutation Gene...
Petroleum Training Institute
 
AI Final Report
AI Final Report
Xuming Gao
 
A New Approach To Solving The Multiple Traveling Salesperson Problem Using Ge...
A New Approach To Solving The Multiple Traveling Salesperson Problem Using Ge...
April Smith
 
Genetic Algorithm
Genetic Algorithm
Ankit Chaudhary
 
1582997627872.pdf
1582997627872.pdf
AbhilashJain25
 
Analysis and comparison of a proposed mutation operator and its effects on th...
Analysis and comparison of a proposed mutation operator and its effects on th...
nooriasukmaningtyas
 
With saloni in ijarcsse
With saloni in ijarcsse
satish rana
 
A heuristic approach for optimizing travel planning using genetics algorithm
A heuristic approach for optimizing travel planning using genetics algorithm
eSAT Journals
 
A heuristic approach for optimizing travel planning using genetics algorithm
A heuristic approach for optimizing travel planning using genetics algorithm
eSAT Publishing House
 
Comparison Study of Multiple Traveling Salesmen Problem using Genetic Algorithm
Comparison Study of Multiple Traveling Salesmen Problem using Genetic Algorithm
IOSR Journals
 
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
ijsrd.com
 
An Implementational approach to genetic algorithms for TSP
An Implementational approach to genetic algorithms for TSP
Sougata Das
 
Prim and Genetic Algorithms Performance in Determining Optimum Route on Graph
Prim and Genetic Algorithms Performance in Determining Optimum Route on Graph
Universitas Pembangunan Panca Budi
 
Algorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSP
Carrie Romero
 
Traveling Salesman Problem Federico Greco
Traveling Salesman Problem Federico Greco
zotteltambik
 
A new hybrid approach for solving travelling salesman problem using ordered c...
A new hybrid approach for solving travelling salesman problem using ordered c...
eSAT Journals
 
Meetup Julio Algoritmos Genéticos
Meetup Julio Algoritmos Genéticos
DataLab Community
 
Muzammil Adulrahman ppt on travelling salesman Problem Based On Mutation Gene...
Muzammil Adulrahman ppt on travelling salesman Problem Based On Mutation Gene...
Petroleum Training Institute
 
AI Final Report
AI Final Report
Xuming Gao
 
A New Approach To Solving The Multiple Traveling Salesperson Problem Using Ge...
A New Approach To Solving The Multiple Traveling Salesperson Problem Using Ge...
April Smith
 
Analysis and comparison of a proposed mutation operator and its effects on th...
Analysis and comparison of a proposed mutation operator and its effects on th...
nooriasukmaningtyas
 
Ad

Recently uploaded (20)

Artificial Intelligence Workloads and Data Center Management
Artificial Intelligence Workloads and Data Center Management
SandeepKS52
 
Insurance Underwriting Software Enhancing Accuracy and Efficiency
Insurance Underwriting Software Enhancing Accuracy and Efficiency
Insurance Tech Services
 
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
WSO2
 
Smart Financial Solutions: Money Lender Software, Daily Pigmy & Personal Loan...
Smart Financial Solutions: Money Lender Software, Daily Pigmy & Personal Loan...
Intelli grow
 
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
Hassan Abid
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
GDG Douglas - Google AI Agents: Your Next Intern?
GDG Douglas - Google AI Agents: Your Next Intern?
felipeceotto
 
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
BradBedford3
 
Step by step guide to install Flutter and Dart
Step by step guide to install Flutter and Dart
S Pranav (Deepu)
 
Reimagining Software Development and DevOps with Agentic AI
Reimagining Software Development and DevOps with Agentic AI
Maxim Salnikov
 
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
 
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Safe Software
 
About Certivo | Intelligent Compliance Solutions for Global Regulatory Needs
About Certivo | Intelligent Compliance Solutions for Global Regulatory Needs
certivoai
 
How the US Navy Approaches DevSecOps with Raise 2.0
How the US Navy Approaches DevSecOps with Raise 2.0
Anchore
 
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
soulamaabdoulaye128
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
SAP Datasphere Catalog L2 (2024-02-07).pptx
SAP Datasphere Catalog L2 (2024-02-07).pptx
HimanshuSachdeva46
 
How to Choose the Right Web Development Agency.pdf
How to Choose the Right Web Development Agency.pdf
Creative Fosters
 
Transmission Media. (Computer Networks)
Transmission Media. (Computer Networks)
S Pranav (Deepu)
 
Rierino Commerce Platform - CMS Solution
Rierino Commerce Platform - CMS Solution
Rierino
 
Artificial Intelligence Workloads and Data Center Management
Artificial Intelligence Workloads and Data Center Management
SandeepKS52
 
Insurance Underwriting Software Enhancing Accuracy and Efficiency
Insurance Underwriting Software Enhancing Accuracy and Efficiency
Insurance Tech Services
 
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
WSO2
 
Smart Financial Solutions: Money Lender Software, Daily Pigmy & Personal Loan...
Smart Financial Solutions: Money Lender Software, Daily Pigmy & Personal Loan...
Intelli grow
 
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
Hassan Abid
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
GDG Douglas - Google AI Agents: Your Next Intern?
GDG Douglas - Google AI Agents: Your Next Intern?
felipeceotto
 
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
BradBedford3
 
Step by step guide to install Flutter and Dart
Step by step guide to install Flutter and Dart
S Pranav (Deepu)
 
Reimagining Software Development and DevOps with Agentic AI
Reimagining Software Development and DevOps with Agentic AI
Maxim Salnikov
 
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
 
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Safe Software
 
About Certivo | Intelligent Compliance Solutions for Global Regulatory Needs
About Certivo | Intelligent Compliance Solutions for Global Regulatory Needs
certivoai
 
How the US Navy Approaches DevSecOps with Raise 2.0
How the US Navy Approaches DevSecOps with Raise 2.0
Anchore
 
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
soulamaabdoulaye128
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
SAP Datasphere Catalog L2 (2024-02-07).pptx
SAP Datasphere Catalog L2 (2024-02-07).pptx
HimanshuSachdeva46
 
How to Choose the Right Web Development Agency.pdf
How to Choose the Right Web Development Agency.pdf
Creative Fosters
 
Transmission Media. (Computer Networks)
Transmission Media. (Computer Networks)
S Pranav (Deepu)
 
Rierino Commerce Platform - CMS Solution
Rierino Commerce Platform - CMS Solution
Rierino
 
Ad

Solving the traveling salesman problem by genetic algorithm

  • 1. Genetic Algorithms Ministry of Education and Science of the Russian Federation Crimean Federal V.I. Vernadsky University Taurida academy (structural subdivision) Author: Alexander Bidanets 3-d - year student Bachelor course Mathematics and informatics department Major in: applied mathematics and informatics Language instructor: Associate Professor Oksana Vladimirovna Yermolenko
  • 2. Table of contents The traveling salesman problem What is the genetic algorithm? Conclusion
  • 3. What is known to be the optimization problem? In mathematics and computer science, an optimization problem is the problem of finding the best solution from all feasible solutions. In optimization problems we are looking for the largest value or the smallest value that a function can take.
  • 4. Traveling salesman problem The travelling salesman problem (TSP) asks the following question: Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city? It is an problem in combinatorial optimization, important in theoretical computer science.
  • 6. What is the genetic algorithm? Individual (chromosome) Any possible solution of a problem Population Group of all individuals Search space All possible solutions to the problem Locus The position of a gene on the chromosome the genes value is the number of variable slots on a chromosome; the codes value is the number of possible values for each gene; Now, before we start, we should understand some key terms:
  • 7. What is the genetic algorithm? Algorithm is started with a set of solutions (represented by chromosomes) called population. Solutions from one population are taken and used to form a new population. This is motivated by a hope, that the new population will be better than the old one. Solutions which are selected to form new solutions (offspring) are selected according to their fitness - the more suitable they are the more chances they have to reproduce. This is repeated until some condition is satisfied (for example number of populations or improvement of the best solution).
  • 8. Basic Operators of Genetic Algorithm •Encoding and Initialization •Crossover (also called recombination) •Mutation •Selection and Fitness function •Decoding
  • 16. Relevance • The traveling salesman problem has many different real world applications, making it a very popular problem to solve. The problem of computer wiring can also be modeled as a TSP. We have several modules. These modules have got a number of pins. We need to connect a subset of pins with wires in such a way that no pin hasn’t to more than two wires attached to it and the length of the wire is minimized. • The traveling salesman problem is a kind of testing ground for the algorithms which solved optimization problems, because TSP is a good representative of this class problems. Therefore, the study of the genetic algorithm for the traveling salesman problem gives a hope that genetic algorithm allows to solve other optimization problems as well. • So, investigations of the travelling salesman problem is very important for computer science, Computer Engineering, web, radio-electronics, business and transport industry. • The method of genetic algorithm allows to solve the traveling salesman problem quite effectively. The relative error of the result of this algorithm is quite little.
  • 17. Conclusion• We has been observed how GA creates solution without having any prior knowledge about the problem. Unlike other heuristic methods, it uses natural techniques as like crossover, mutation and selection to make the computation easier and many times faster. • Genetic algorithms can be used when no information is available about the gradient of the function at the evaluated points. • The function itself does not need to be continuous or differentiable. • Genetic algorithms can still achieve good results even in cases in which the function has several local minima or maxima. • These properties of genetic algorithms have their price: unlike traditional random search, the function is not examined at a single place, constructing a possible path to the local maximum or minimum, but many different places are considered simultaneously. • The function must be calculated for all elements of the population. • GAs are useful optimization procedure • Easy to parallelize.

Editor's Notes