SlideShare a Scribd company logo
By,
SHAILESH JADHAV
RAHUL CHAUGULE
v VIRAJ PATIL
HISTORY
 In the 1800s, Travelling salesman problems were looked by Sir William
Rowan Hamilton and Thomas Kirkman.
 Hassler Whitney at Princeton University introduced the name
travelling salesman problem
 In the 1950s and 1960s, the problem became increasingly popular in
scientific circles in Europe and the USA.
 Richard M. Karp showed in 1972 that the Hamiltonian cycle problem
was NP-complete.
INTRODUCTION
 The travelling salesman problem consists of a salesman and a set of cities.
The salesman has to visit each one of the cities starting from a certain one
(e.g. the hometown) and returning to the same city. The challenge of the
problem is that the travelling salesman wants to minimize the total length of
the trip.
 Travelling salesman problem is one of the most extensively studied
optimization problem that is used to find the shortest possible route.
 TSP has many applications including following:
1. The delivery of meals to office persons.
2. Manufacture of microchips.
3. The routing of courier trucks.
4. The routing of any salesman.
SOLVING METHODS
 Try every possibility: (n-1)!Possibilities- Takes longer time.
 Optimising Methods: obtain guaranteed optimal solution.
 Heuristic Method: obtain ‘good’ solution ‘quickly’ by intuitive methods
.No guarantee of optimality.
Objective function
The mathematical formulation of the problem can be as in Eq.
Where,
d(i,j)- Distance travelled from city ‘i’ to city ‘j’.
x(i.j) –cost of travel from city ‘i’ to city ’j’.
min
x
x(i, j)d(i, j)
j 1
n
i 1
n

s.t.
x(i, j) 1, i  1,2,...,n
j 1
n

x(i, j) 1, j  1,2,...,n
i 1
n

x(i, j)  S  1, S  {1,2,...,n}
i , jS
n

x(i, j) {0,1}
TYPES OF PROBLEM
1.SYMMETRIC TSP
2.ASYMMETRIC TSP
1 2 3 4
1 -- 30 44 56
2 20 -- 38 68
3 25 60 -- 25
4 75 35 45 --
CONCLUSION
 Travelling salesman problem is one of the most extensively studied
optimization problem that is used to find the shortest possible route.
 By knowing or solving the Travelling salesman problem we get the
optimal travelling distance/path cost.
 We should know which appropriate method to be used while solving
TSP.

More Related Content

Viewers also liked

TNA 11 May 2015
TNA 11 May 2015TNA 11 May 2015
TNA 11 May 2015
Zanda Simamane
 
Saturday Morning Heroes Challenge
Saturday Morning Heroes Challenge Saturday Morning Heroes Challenge
Saturday Morning Heroes Challenge
Jim Pappas
 
Diggbuy外贸推广使用教程
Diggbuy外贸推广使用教程Diggbuy外贸推广使用教程
Diggbuy外贸推广使用教程Felix Lion
 
Page One Engine Discount
Page One Engine DiscountPage One Engine Discount
Page One Engine Discount
truculentnetwor65
 
Wubbo Ockels Ecolution 17042010
Wubbo Ockels Ecolution 17042010Wubbo Ockels Ecolution 17042010
Wubbo Ockels Ecolution 17042010
VPRO Beagle
 

Viewers also liked (6)

TNA 11 May 2015
TNA 11 May 2015TNA 11 May 2015
TNA 11 May 2015
 
Saturday Morning Heroes Challenge
Saturday Morning Heroes Challenge Saturday Morning Heroes Challenge
Saturday Morning Heroes Challenge
 
Diggbuy外贸推广使用教程
Diggbuy外贸推广使用教程Diggbuy外贸推广使用教程
Diggbuy外贸推广使用教程
 
Page One Engine Discount
Page One Engine DiscountPage One Engine Discount
Page One Engine Discount
 
DUT
DUTDUT
DUT
 
Wubbo Ockels Ecolution 17042010
Wubbo Ockels Ecolution 17042010Wubbo Ockels Ecolution 17042010
Wubbo Ockels Ecolution 17042010
 

Similar to Traveling salesman problem(tsp)

The Travelling Salesman Problem_BharatKumar.pptx
The Travelling Salesman Problem_BharatKumar.pptxThe Travelling Salesman Problem_BharatKumar.pptx
The Travelling Salesman Problem_BharatKumar.pptx
neerajk59291
 
A New Approach to Solve Initial Basic Feasible Solution for the Transportatio...
A New Approach to Solve Initial Basic Feasible Solution for the Transportatio...A New Approach to Solve Initial Basic Feasible Solution for the Transportatio...
A New Approach to Solve Initial Basic Feasible Solution for the Transportatio...
Dr. Amarjeet Singh
 
K046036367
K046036367K046036367
K046036367
IJERA Editor
 
An Implementational approach to genetic algorithms for TSP
An Implementational approach to genetic algorithms for TSPAn Implementational approach to genetic algorithms for TSP
An Implementational approach to genetic algorithms for TSP
Sougata Das
 
Presentation socg
Presentation socgPresentation socg
Presentation socg
Apostolos Chalkis
 
The Traveling Salesman problem ppt.pptx
The Traveling Salesman problem ppt.pptxThe Traveling Salesman problem ppt.pptx
The Traveling Salesman problem ppt.pptx
HalimFerchichi
 
Optimal Vacation Itinerary Modeling
Optimal Vacation Itinerary ModelingOptimal Vacation Itinerary Modeling
Optimal Vacation Itinerary Modeling
Gerard Trimberger
 
Transportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingTransportation Problem In Linear Programming
Transportation Problem In Linear Programming
Mirza Tanzida
 

Similar to Traveling salesman problem(tsp) (8)

The Travelling Salesman Problem_BharatKumar.pptx
The Travelling Salesman Problem_BharatKumar.pptxThe Travelling Salesman Problem_BharatKumar.pptx
The Travelling Salesman Problem_BharatKumar.pptx
 
A New Approach to Solve Initial Basic Feasible Solution for the Transportatio...
A New Approach to Solve Initial Basic Feasible Solution for the Transportatio...A New Approach to Solve Initial Basic Feasible Solution for the Transportatio...
A New Approach to Solve Initial Basic Feasible Solution for the Transportatio...
 
K046036367
K046036367K046036367
K046036367
 
An Implementational approach to genetic algorithms for TSP
An Implementational approach to genetic algorithms for TSPAn Implementational approach to genetic algorithms for TSP
An Implementational approach to genetic algorithms for TSP
 
Presentation socg
Presentation socgPresentation socg
Presentation socg
 
The Traveling Salesman problem ppt.pptx
The Traveling Salesman problem ppt.pptxThe Traveling Salesman problem ppt.pptx
The Traveling Salesman problem ppt.pptx
 
Optimal Vacation Itinerary Modeling
Optimal Vacation Itinerary ModelingOptimal Vacation Itinerary Modeling
Optimal Vacation Itinerary Modeling
 
Transportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingTransportation Problem In Linear Programming
Transportation Problem In Linear Programming
 

Recently uploaded

International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
zubairahmad848137
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
Aditya Rajan Patra
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 

Recently uploaded (20)

International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 

Traveling salesman problem(tsp)

  • 2. HISTORY  In the 1800s, Travelling salesman problems were looked by Sir William Rowan Hamilton and Thomas Kirkman.  Hassler Whitney at Princeton University introduced the name travelling salesman problem  In the 1950s and 1960s, the problem became increasingly popular in scientific circles in Europe and the USA.  Richard M. Karp showed in 1972 that the Hamiltonian cycle problem was NP-complete.
  • 3. INTRODUCTION  The travelling salesman problem consists of a salesman and a set of cities. The salesman has to visit each one of the cities starting from a certain one (e.g. the hometown) and returning to the same city. The challenge of the problem is that the travelling salesman wants to minimize the total length of the trip.  Travelling salesman problem is one of the most extensively studied optimization problem that is used to find the shortest possible route.  TSP has many applications including following: 1. The delivery of meals to office persons. 2. Manufacture of microchips. 3. The routing of courier trucks. 4. The routing of any salesman.
  • 4. SOLVING METHODS  Try every possibility: (n-1)!Possibilities- Takes longer time.  Optimising Methods: obtain guaranteed optimal solution.  Heuristic Method: obtain ‘good’ solution ‘quickly’ by intuitive methods .No guarantee of optimality.
  • 5. Objective function The mathematical formulation of the problem can be as in Eq. Where, d(i,j)- Distance travelled from city ‘i’ to city ‘j’. x(i.j) –cost of travel from city ‘i’ to city ’j’. min x x(i, j)d(i, j) j 1 n i 1 n  s.t. x(i, j) 1, i  1,2,...,n j 1 n  x(i, j) 1, j  1,2,...,n i 1 n  x(i, j)  S  1, S  {1,2,...,n} i , jS n  x(i, j) {0,1}
  • 6. TYPES OF PROBLEM 1.SYMMETRIC TSP 2.ASYMMETRIC TSP 1 2 3 4 1 -- 30 44 56 2 20 -- 38 68 3 25 60 -- 25 4 75 35 45 --
  • 7. CONCLUSION  Travelling salesman problem is one of the most extensively studied optimization problem that is used to find the shortest possible route.  By knowing or solving the Travelling salesman problem we get the optimal travelling distance/path cost.  We should know which appropriate method to be used while solving TSP.