SlideShare a Scribd company logo
1 of 18
Artificial Intelligence Genetic Algorithms and Travel Salesman Problem Giáo viên hướng dẫn: Trần Cao Trưởng Sinh viên thực hiện: Nguyễn Đức Hiển                              Lê Hữu Sơn Tùng
Artificial Intelligence PowerPoint has new layouts that give you more ways to present your words, images and media.   Fun fact about salesmen today Genetic Algorithms(GAs)  and  Travel Salesman Problem(TSP)
1. TSP – Overview(p.1) Hello eveyone !  I’m a HANDSOME salesman.
1. TSP – Overview(p.2) As a salesman, I have to travel through many cities for business.  But I just need to travel EACH city ONCE. City 1 City 3 City 2 City n-1 City n-2 MAP City n
1. TSP – Overview(p.3)   I  have some problems. I don’t have much time and money. 
1. TSP – Overview(p.4)   Can you help me to find the way with minimum cost ?
1. TSP – Traditional Solutions(p.1) BRUTE- FORCE
2.GAs – Overview (p.1)      GAs simulate the evolution of  one population (for example human population) : based on assessing and selecting the fittest solutions in the problem population. So GAs has some similar components as an evolution in the real world: 	+ POPULATION + INDIVIDUALS + CHROMOSOMES + OFFSPRING + CROSSOVER + MUTATION 	+ FITNESS
2.GAs – Overview (p.2) GAs
2.GAs – Why use GAs to solve TSP ? (p.1) Reasons to use GAs to solve TSP includes the followings:  Because the map of cities in TSP is a complete graph so searching space in TSP is very huge. It’s possbile for GAs to find out an acceptable solution due to given conditions and constraints(ex : time constraint, etc.).
3.Using GAs to solve TSP? (p.1) A generation in TSP includes the following components:
3.Using GAs to solve TSP? (p.2) GA Structure: GA( ) { 	t=0;// epoch 	Initialize(t); 	Evaluate(t); 	While (not termination condition) 	do 	{ 	t= t+1; 	Select P(t) from P(t-1); 	Alter P(t); 	Evaluate P(t); 	} } Step 0: Initialization Step 1: Selection Step 2: Crossover Step 3: Mutation Step 4: Evaluation Step 5: Termination Test Step 0: Initialization Step 6: End
3.GAs – Why use GAs to solve TSP ? (p.3) Processes :  Initialize the population :  ,[object Object],+ Name or IDs : to distinguish cities. + Link between 2 cities. + Each link has a weighted- number represented as the cost to travel from one city to another.
3.GAs – Why use GAs to solve TSP ? (p.4) 2. Loop(Epoch):  + Choosing 2 parents from     from a random group of cities. + Crossover -> Offsprings (2) + Mutation + Evaluation          +  Use fitness function  to remove some weaker individuals to keep the population size constant.
3.GAs – Why use GAs to solve TSP ? (p.5) 3. Terminate Process of Finding Solution: ,[object Object],[object Object]
Fun fact about Salesmen today Today, young men think different !!!
Thank you for your attention !!!
Artificial intelligence - TSP

More Related Content

Similar to Artificial intelligence - TSP

Optimal Vacation Itinerary Modeling
Optimal Vacation Itinerary ModelingOptimal Vacation Itinerary Modeling
Optimal Vacation Itinerary ModelingGerard Trimberger
 
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
The Optimizing Multiple Travelling Salesman Problem Using Genetic AlgorithmThe Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithmijsrd.com
 
Particle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman ProblemParticle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman ProblemIRJET Journal
 
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...csandit
 
The Traveling Salesman problem ppt.pptx
The Traveling Salesman problem ppt.pptxThe Traveling Salesman problem ppt.pptx
The Traveling Salesman problem ppt.pptxHalimFerchichi
 
A COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMS
A COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMSA COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMS
A COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMSecij
 
Optimum Design for Tourism Line Based on Improved Ant Colony System Algorithm
Optimum Design for Tourism Line Based on Improved Ant Colony System AlgorithmOptimum Design for Tourism Line Based on Improved Ant Colony System Algorithm
Optimum Design for Tourism Line Based on Improved Ant Colony System Algorithmijmvsc
 
Exploring Algorithms
Exploring AlgorithmsExploring Algorithms
Exploring AlgorithmsSri Prasanna
 
A new hybrid approach for solving travelling salesman problem using ordered c...
A new hybrid approach for solving travelling salesman problem using ordered c...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
 
A New Approach To Solving The Multiple Traveling Salesperson Problem Using Ge...
A New Approach To Solving The Multiple Traveling Salesperson Problem Using Ge...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
 
The Travelling Salesman Problem_BharatKumar.pptx
The Travelling Salesman Problem_BharatKumar.pptxThe Travelling Salesman Problem_BharatKumar.pptx
The Travelling Salesman Problem_BharatKumar.pptxneerajk59291
 
Sem 8 major presentation
Sem 8 major presentationSem 8 major presentation
Sem 8 major presentationVaibhav Bajpai
 
Graph theory - Traveling Salesman and Chinese Postman
Graph theory - Traveling Salesman and Chinese PostmanGraph theory - Traveling Salesman and Chinese Postman
Graph theory - Traveling Salesman and Chinese PostmanChristian Kehl
 
tAn improved genetic algorithm with a
tAn improved genetic algorithm with atAn improved genetic algorithm with a
tAn improved genetic algorithm with aijcseit
 
Travelling and salesman problem using ant colony optimization
Travelling and salesman problem using ant colony optimizationTravelling and salesman problem using ant colony optimization
Travelling and salesman problem using ant colony optimizationAkash Sethiya
 
AN APPLICATION TO THE TRAVELLING SALESMAN PROBLEM
AN APPLICATION TO THE TRAVELLING SALESMAN PROBLEMAN APPLICATION TO THE TRAVELLING SALESMAN PROBLEM
AN APPLICATION TO THE TRAVELLING SALESMAN PROBLEMorajjournal
 
Travelling salesperson problem
Travelling salesperson problemTravelling salesperson problem
Travelling salesperson problemAkshayIngole17
 

Similar to Artificial intelligence - TSP (20)

Optimal Vacation Itinerary Modeling
Optimal Vacation Itinerary ModelingOptimal Vacation Itinerary Modeling
Optimal Vacation Itinerary Modeling
 
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
The Optimizing Multiple Travelling Salesman Problem Using Genetic AlgorithmThe Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
 
Particle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman ProblemParticle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman Problem
 
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...
 
The Traveling Salesman problem ppt.pptx
The Traveling Salesman problem ppt.pptxThe Traveling Salesman problem ppt.pptx
The Traveling Salesman problem ppt.pptx
 
A COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMS
A COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMSA COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMS
A COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMS
 
Optimum Design for Tourism Line Based on Improved Ant Colony System Algorithm
Optimum Design for Tourism Line Based on Improved Ant Colony System AlgorithmOptimum Design for Tourism Line Based on Improved Ant Colony System Algorithm
Optimum Design for Tourism Line Based on Improved Ant Colony System Algorithm
 
Exploring Algorithms
Exploring AlgorithmsExploring Algorithms
Exploring Algorithms
 
RouteForYou
RouteForYouRouteForYou
RouteForYou
 
A new hybrid approach for solving travelling salesman problem using ordered c...
A new hybrid approach for solving travelling salesman problem using ordered c...A new hybrid approach for solving travelling salesman problem using ordered c...
A new hybrid approach for solving travelling salesman problem using ordered c...
 
A New Approach To Solving The Multiple Traveling Salesperson Problem Using Ge...
A New Approach To Solving The Multiple Traveling Salesperson Problem Using Ge...A New Approach To Solving The Multiple Traveling Salesperson Problem Using Ge...
A New Approach To Solving The Multiple Traveling Salesperson Problem Using Ge...
 
The Travelling Salesman Problem_BharatKumar.pptx
The Travelling Salesman Problem_BharatKumar.pptxThe Travelling Salesman Problem_BharatKumar.pptx
The Travelling Salesman Problem_BharatKumar.pptx
 
Sem 8 major presentation
Sem 8 major presentationSem 8 major presentation
Sem 8 major presentation
 
Graph theory - Traveling Salesman and Chinese Postman
Graph theory - Traveling Salesman and Chinese PostmanGraph theory - Traveling Salesman and Chinese Postman
Graph theory - Traveling Salesman and Chinese Postman
 
tAn improved genetic algorithm with a
tAn improved genetic algorithm with atAn improved genetic algorithm with a
tAn improved genetic algorithm with a
 
Traveling Salesman Problem
Traveling Salesman Problem Traveling Salesman Problem
Traveling Salesman Problem
 
Travelling and salesman problem using ant colony optimization
Travelling and salesman problem using ant colony optimizationTravelling and salesman problem using ant colony optimization
Travelling and salesman problem using ant colony optimization
 
Ac4103169172
Ac4103169172Ac4103169172
Ac4103169172
 
AN APPLICATION TO THE TRAVELLING SALESMAN PROBLEM
AN APPLICATION TO THE TRAVELLING SALESMAN PROBLEMAN APPLICATION TO THE TRAVELLING SALESMAN PROBLEM
AN APPLICATION TO THE TRAVELLING SALESMAN PROBLEM
 
Travelling salesperson problem
Travelling salesperson problemTravelling salesperson problem
Travelling salesperson problem
 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 

Recently uploaded (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 

Artificial intelligence - TSP

  • 1. Artificial Intelligence Genetic Algorithms and Travel Salesman Problem Giáo viên hướng dẫn: Trần Cao Trưởng Sinh viên thực hiện: Nguyễn Đức Hiển Lê Hữu Sơn Tùng
  • 2. Artificial Intelligence PowerPoint has new layouts that give you more ways to present your words, images and media. Fun fact about salesmen today Genetic Algorithms(GAs) and Travel Salesman Problem(TSP)
  • 3. 1. TSP – Overview(p.1) Hello eveyone ! I’m a HANDSOME salesman.
  • 4. 1. TSP – Overview(p.2) As a salesman, I have to travel through many cities for business. But I just need to travel EACH city ONCE. City 1 City 3 City 2 City n-1 City n-2 MAP City n
  • 5. 1. TSP – Overview(p.3)  I have some problems. I don’t have much time and money. 
  • 6. 1. TSP – Overview(p.4)  Can you help me to find the way with minimum cost ?
  • 7. 1. TSP – Traditional Solutions(p.1) BRUTE- FORCE
  • 8. 2.GAs – Overview (p.1) GAs simulate the evolution of one population (for example human population) : based on assessing and selecting the fittest solutions in the problem population. So GAs has some similar components as an evolution in the real world: + POPULATION + INDIVIDUALS + CHROMOSOMES + OFFSPRING + CROSSOVER + MUTATION + FITNESS
  • 9. 2.GAs – Overview (p.2) GAs
  • 10. 2.GAs – Why use GAs to solve TSP ? (p.1) Reasons to use GAs to solve TSP includes the followings: Because the map of cities in TSP is a complete graph so searching space in TSP is very huge. It’s possbile for GAs to find out an acceptable solution due to given conditions and constraints(ex : time constraint, etc.).
  • 11. 3.Using GAs to solve TSP? (p.1) A generation in TSP includes the following components:
  • 12. 3.Using GAs to solve TSP? (p.2) GA Structure: GA( ) { t=0;// epoch Initialize(t); Evaluate(t); While (not termination condition) do { t= t+1; Select P(t) from P(t-1); Alter P(t); Evaluate P(t); } } Step 0: Initialization Step 1: Selection Step 2: Crossover Step 3: Mutation Step 4: Evaluation Step 5: Termination Test Step 0: Initialization Step 6: End
  • 13.
  • 14. 3.GAs – Why use GAs to solve TSP ? (p.4) 2. Loop(Epoch): + Choosing 2 parents from from a random group of cities. + Crossover -> Offsprings (2) + Mutation + Evaluation + Use fitness function to remove some weaker individuals to keep the population size constant.
  • 15.
  • 16. Fun fact about Salesmen today Today, young men think different !!!
  • 17. Thank you for your attention !!!