SlideShare a Scribd company logo
1 of 14
ANJUMAN COLLEGE OF ENGINEERING
ANDTECHNOLOGY, SADAR, NAGPUR.
Design Analysis and Algorithm
2018-19
Computer science and Engineering
COMPILED BY:
oAafaqueahmad Khan...........................................46
oIrfan Sheikh..........................................................55
oRafiuddin..............................................................62
OVERVIEW
The goal of theTraveling Salesman Problem (TSP) is to find the
most economical way to tour of a select number of “cities” with
the following restrictions:
● You must visit each city once and only once
● You must return to the original starting point
13,509 U.S. cities with
populations of more than 500
people connected optimally
using methods developed by
CRPC researchers.
WHY STUDYTSPS?
 TSPs belong to a class of problems in computational complexity analysis
called NP-complete problem
 If you could find a way to solve an NP-complete problem quickly, then
you could use that algorithm to solve all NP problems quickly.
 The time required to solve the problem using any currently known
algorithm increases very quickly as the size of the problem grows.
Common NP-complete problems:
 N-puzzle
 Knapsack problem
 Hamiltonian path problem
 Travelling salesman problem
OTHERAPPLICATION
 TSP has several applications even in its purest formulation
 Planning, logistics, and the manufacture of microchips
 Slightly modified, it appears as a sub-problem in many areas,
such as DNA sequencing.
 City represents customers, soldering points, or DNA
fragments
 Distance represents travelling times or cost, or a similarity
measure between DNA fragments.
TIMELINE
 In the 1800s, similar problems were looked at by SirWilliam Rowan
Hamilton andThomas Penyngton Kirkman.

In the 1930s, Karl Menger began looking at the general form ofTSP
by HasslerWhitney and Merrill Flood at Princeton.
 HasslerWhitney at Princeton University introduced the name
travelling salesman problem.
TIMELINE CONTINUED
 In the 1950s and 1960s, the problem became increasingly
popular in scientific circles in Europe and the USA.
 Notable contributions were made by George Dantzig, Delbert Ray
Fulkerson and Selmer M. Johnson at the RAND Corporation in
Santa Monica
 integer linear program and developed the cutting plane method for
its solution.With these new methods they solved an instance with
49 cities to optimality by constructing a tour and proving that no
other tour could be shorter.
Richard M. Karp showed in 1972 that the Hamiltonian cycle
problem was NP-complete,
In the 1990s, Applegate, Bixby,Chvátal, and Cook developed the
program Concorde
1,904,711 CITIES INTHEWORLD
 Best known result by Keld Helsgaun, 7,516,146,716 December
2003
APPROACHESTO SOLVINGTSPS
 Exponential neighborhood
local search
 Memetic algorithm
 Elastic net
 Space filling heuristic
 LKH heuristic
 Tabu search
 Self-organizing map
 Evolutionary strategy
 Simulated electric field
 Petri net
 Adaptive ring
 Cutting plane
 Simulated annealing
 Genetic programming
 Artificial immune algorithm
 Neural networks
 Ant colony system
 Particle swarm
HEURISTIC APPROACHES
 By using approaches based on heuristics, practical applications ofTSP
can be solved since the optimal solution is not always needed. By using
heuristics, sub-optimal solutions can be found, and often times just
having a solution is “good enough”.
● Random Optimizations
● Optimised Markov chain algorithms which utilise local searching
heuristically sub-algorithms can find a route extremely close to the
optimal route for 700-800 cities.
● Nearest Neighbor
● Start at a node, and selected the nearest unvisited node; repeat until
done. Worst case creates a complexity of ½ log n.
EXACT SOLUTIONS
 These algorithms find the exact solutions:
● Cutting Plane Algorithm
● Technique based on linear programming
● An exact solution for 15,112 Germany cities from TSPLIB was found in
2001 using this method proposed by George Dantzig, Ray Fulkerson, and
Selmer Johnson in 1954.
● Branch and Bound Algorithms
● Branching recursively divides the domain into feasible sub domains.
● Bounding determines upper and lower bounds for the optimal solution in
a feasible sub domain.
● Can be used to process TSPs containing 40-60 cities.
 An ant is treated as a single agent among a colony of ants that
follows a basic set of rules about how it is to traverse the graph of
nodes. It also maintains a list of what nodes it has already visited
so that the length of the trip can be extracted. As each ant travels,
it deposits a “scent” or “pheromone” that tells other ants that it
has been visited.
The initial population of ants is even distributed to different points
among the graph. Movement of the ant is guided by a simple
probability equation that takes into account the intensity of the
pheromone scent that is on each node.
As time passes, the scent on each node begins to evaporate;
therefore the most commonly traversed nodes maintain the scent
while the least traveled nodes eventual lost their scent all together.
THE ANT ALGORITHM
CONCLUSION
 TheTraveling Salesman Problem
 Long history and a strong tradition in academics
 Continued study of this problem yield a method that will
lead to a polynomial-time solution for all NP-complete
problems.
 Solutions that are “good enough” for practical
applications
THANKYOU

More Related Content

Similar to Travelling Salesman Problem

antcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfantcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdf
nrusinhapadhi
 

Similar to Travelling Salesman Problem (20)

Karas and atila
Karas and atilaKaras and atila
Karas and atila
 
upload3.pptx
upload3.pptxupload3.pptx
upload3.pptx
 
Ant colony algorithm
Ant colony algorithm Ant colony algorithm
Ant colony algorithm
 
antcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfantcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdf
 
Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman Problem
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
V26136141
V26136141V26136141
V26136141
 
www.webre24h.com - Artificial neural networks in real life applications.idea ...
www.webre24h.com - Artificial neural networks in real life applications.idea ...www.webre24h.com - Artificial neural networks in real life applications.idea ...
www.webre24h.com - Artificial neural networks in real life applications.idea ...
 
Travelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm OptimizationTravelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm Optimization
 
Ant Colony Optimization and path planning.pptx
Ant Colony Optimization and path planning.pptxAnt Colony Optimization and path planning.pptx
Ant Colony Optimization and path planning.pptx
 
Approximation, Randomization and Combinatorial Optimization. Algorithms and T...
Approximation, Randomization and Combinatorial Optimization. Algorithms and T...Approximation, Randomization and Combinatorial Optimization. Algorithms and T...
Approximation, Randomization and Combinatorial Optimization. Algorithms and T...
 
Quantum inspired evolutionary algorithm for solving multiple travelling sales...
Quantum inspired evolutionary algorithm for solving multiple travelling sales...Quantum inspired evolutionary algorithm for solving multiple travelling sales...
Quantum inspired evolutionary algorithm for solving multiple travelling sales...
 
ICFO WhitePaper UltraFast QRNG
ICFO WhitePaper UltraFast QRNGICFO WhitePaper UltraFast QRNG
ICFO WhitePaper UltraFast QRNG
 
A STUDY TO INVESTIGATE HOW INTERNET USAGE AMONG STUDENTS IN PROJECT ELICITATION.
A STUDY TO INVESTIGATE HOW INTERNET USAGE AMONG STUDENTS IN PROJECT ELICITATION.A STUDY TO INVESTIGATE HOW INTERNET USAGE AMONG STUDENTS IN PROJECT ELICITATION.
A STUDY TO INVESTIGATE HOW INTERNET USAGE AMONG STUDENTS IN PROJECT ELICITATION.
 
Genetic Algorithm for the Traveling Salesman Problem using Sequential Constru...
Genetic Algorithm for the Traveling Salesman Problem using Sequential Constru...Genetic Algorithm for the Traveling Salesman Problem using Sequential Constru...
Genetic Algorithm for the Traveling Salesman Problem using Sequential Constru...
 
2018 Modern Math Workshop - Nonparametric Regression and Classification for M...
2018 Modern Math Workshop - Nonparametric Regression and Classification for M...2018 Modern Math Workshop - Nonparametric Regression and Classification for M...
2018 Modern Math Workshop - Nonparametric Regression and Classification for M...
 
A heuristic approach for optimizing travel planning using genetics algorithm
A heuristic approach for optimizing travel planning using genetics algorithmA heuristic approach for optimizing travel planning using genetics algorithm
A heuristic approach for optimizing travel planning using genetics algorithm
 
A heuristic approach for optimizing travel planning using genetics algorithm
A heuristic approach for optimizing travel planning using genetics algorithmA heuristic approach for optimizing travel planning using genetics algorithm
A heuristic approach for optimizing travel planning using genetics algorithm
 
50120140503004
5012014050300450120140503004
50120140503004
 
Surface-Embedded Passive RF Exteroception: Kepler, Greed, and Buffon’s Needle
Surface-Embedded Passive RF Exteroception: Kepler, Greed, and Buffon’s NeedleSurface-Embedded Passive RF Exteroception: Kepler, Greed, and Buffon’s Needle
Surface-Embedded Passive RF Exteroception: Kepler, Greed, and Buffon’s Needle
 

Recently uploaded

Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 

Recently uploaded (20)

Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 

Travelling Salesman Problem

  • 1. ANJUMAN COLLEGE OF ENGINEERING ANDTECHNOLOGY, SADAR, NAGPUR. Design Analysis and Algorithm 2018-19 Computer science and Engineering
  • 2. COMPILED BY: oAafaqueahmad Khan...........................................46 oIrfan Sheikh..........................................................55 oRafiuddin..............................................................62
  • 3. OVERVIEW The goal of theTraveling Salesman Problem (TSP) is to find the most economical way to tour of a select number of “cities” with the following restrictions: ● You must visit each city once and only once ● You must return to the original starting point 13,509 U.S. cities with populations of more than 500 people connected optimally using methods developed by CRPC researchers.
  • 4. WHY STUDYTSPS?  TSPs belong to a class of problems in computational complexity analysis called NP-complete problem  If you could find a way to solve an NP-complete problem quickly, then you could use that algorithm to solve all NP problems quickly.  The time required to solve the problem using any currently known algorithm increases very quickly as the size of the problem grows. Common NP-complete problems:  N-puzzle  Knapsack problem  Hamiltonian path problem  Travelling salesman problem
  • 5. OTHERAPPLICATION  TSP has several applications even in its purest formulation  Planning, logistics, and the manufacture of microchips  Slightly modified, it appears as a sub-problem in many areas, such as DNA sequencing.  City represents customers, soldering points, or DNA fragments  Distance represents travelling times or cost, or a similarity measure between DNA fragments.
  • 6. TIMELINE  In the 1800s, similar problems were looked at by SirWilliam Rowan Hamilton andThomas Penyngton Kirkman.  In the 1930s, Karl Menger began looking at the general form ofTSP by HasslerWhitney and Merrill Flood at Princeton.  HasslerWhitney at Princeton University introduced the name travelling salesman problem.
  • 7. TIMELINE CONTINUED  In the 1950s and 1960s, the problem became increasingly popular in scientific circles in Europe and the USA.  Notable contributions were made by George Dantzig, Delbert Ray Fulkerson and Selmer M. Johnson at the RAND Corporation in Santa Monica  integer linear program and developed the cutting plane method for its solution.With these new methods they solved an instance with 49 cities to optimality by constructing a tour and proving that no other tour could be shorter. Richard M. Karp showed in 1972 that the Hamiltonian cycle problem was NP-complete, In the 1990s, Applegate, Bixby,Chvátal, and Cook developed the program Concorde
  • 8. 1,904,711 CITIES INTHEWORLD  Best known result by Keld Helsgaun, 7,516,146,716 December 2003
  • 9. APPROACHESTO SOLVINGTSPS  Exponential neighborhood local search  Memetic algorithm  Elastic net  Space filling heuristic  LKH heuristic  Tabu search  Self-organizing map  Evolutionary strategy  Simulated electric field  Petri net  Adaptive ring  Cutting plane  Simulated annealing  Genetic programming  Artificial immune algorithm  Neural networks  Ant colony system  Particle swarm
  • 10. HEURISTIC APPROACHES  By using approaches based on heuristics, practical applications ofTSP can be solved since the optimal solution is not always needed. By using heuristics, sub-optimal solutions can be found, and often times just having a solution is “good enough”. ● Random Optimizations ● Optimised Markov chain algorithms which utilise local searching heuristically sub-algorithms can find a route extremely close to the optimal route for 700-800 cities. ● Nearest Neighbor ● Start at a node, and selected the nearest unvisited node; repeat until done. Worst case creates a complexity of ½ log n.
  • 11. EXACT SOLUTIONS  These algorithms find the exact solutions: ● Cutting Plane Algorithm ● Technique based on linear programming ● An exact solution for 15,112 Germany cities from TSPLIB was found in 2001 using this method proposed by George Dantzig, Ray Fulkerson, and Selmer Johnson in 1954. ● Branch and Bound Algorithms ● Branching recursively divides the domain into feasible sub domains. ● Bounding determines upper and lower bounds for the optimal solution in a feasible sub domain. ● Can be used to process TSPs containing 40-60 cities.
  • 12.  An ant is treated as a single agent among a colony of ants that follows a basic set of rules about how it is to traverse the graph of nodes. It also maintains a list of what nodes it has already visited so that the length of the trip can be extracted. As each ant travels, it deposits a “scent” or “pheromone” that tells other ants that it has been visited. The initial population of ants is even distributed to different points among the graph. Movement of the ant is guided by a simple probability equation that takes into account the intensity of the pheromone scent that is on each node. As time passes, the scent on each node begins to evaporate; therefore the most commonly traversed nodes maintain the scent while the least traveled nodes eventual lost their scent all together. THE ANT ALGORITHM
  • 13. CONCLUSION  TheTraveling Salesman Problem  Long history and a strong tradition in academics  Continued study of this problem yield a method that will lead to a polynomial-time solution for all NP-complete problems.  Solutions that are “good enough” for practical applications