SlideShare a Scribd company logo
1 of 12
TRAVELLING SALESMAN PROBLEM
Presented By :-- Bharat Kumar 😊, M.Sc (Hons.) Mathematics
Department of Mathematics, Panjab University, Chandigarh
Table Of Contents 🎯📚
1⃣ Travelling Salesman Problem Statement
2️⃣ Brief History Of Travelling Salesman Problem
3️⃣ Applications Of Travelling Salesman Problem
️4️⃣ Mathematical Model Of Travelling Salesman Problem
️5⃣ Solution Of Travelling Salesman Problem Using Hungarian Method
6⃣ Conclusion
The Travelling Salesman Problem asks the following question:
“Given a set of cities and the distance ( or time or cost)
between each pair of cities, what is the best possible
route that visits each city exactly once and return to the
starting city?”
Brief History of Travelling Salesmen Problem:
👉The TSP was defined in the 1800s by the Irish Mathematician W.R.
Hamilton and the British Mathematician Thomas Kirkman. It was
however first formulated as a mathematical problem in 1930 by Karl
Menger.
👉The name Travelling Salesman Problem was introduced by American
Hassler Whiteney.
Applications of Travelling Salesman Problem:
👉 Management:- Postal Deliveries, School Bus Routing etc.
👉Computer Wiring:- Connecting together computer components using
minimum wire length .
👉Genome Sequencing:- Arranging DNA fragments in sequence.
👉Job Sequencing:- Sequencing jobs in order to minimise total set-up time
between jobs.
👉Mission Planning:- Determining an optimal path for each army men (or
planner) to accomplish the goals of the mission in the minimum possible time.
Mathematical Model of Travelling Salesman Problem:
If cij is the cost (or distance or time) of travelling from city i to city j and xij=1 if the
salesman travels from city i to j and zero otherwise, then the problem is to find
X=(xij) which minimise :
Here, cii = M where M is a large positive number to ensure xii=0 (i=1,2,...,n).
👉 The total number of tours in an n city travelling salesman problem is (n-1)!
Solution of Travelling Salesman Problem Using Hungarian Method:
A travelling salesman, named Mr. Bharat Kumar has to visit five cities. He has to
visit each city only once and then return to the starting city. The distance between
city i and j is cij and is given in the below table. What is the shortest tour possible?
🚴♂️🤯🤯
“As every thread of gold is valuable, so is every minute of time.” --- John Mason
Solution: Here, the no. of rows = no. of columns = 5 ( Table 1.1)
Step 1: Find out each row minimum element and subtract it from that
row as done in ( Table 1.2 )
Step 2: Find out each column minimum element and subtract it from
that column as done in ( Table 1.3 )
( Table 1.1 ) ( Table 1.2 ) ( Table 1.3 )
Step3: Make assignment in the admissible cells (i.e. cells containing 0)
in the reduced table. Rowwise and Columnwise assignment is shown in
the ( Table 1.4 ).
The solution gives the sequence A->E->A and B->C->D->B which is
not a tour and hence it is not a feasible solution for TSP.
( Table 1.4)
Step4: The feasible solution for TSP can be obtained by bringing the minimum
non-zero element ( i.e. 1 ) into the solution. 1 occur at 3 places and we can bring
any of 1 into the solution and examine whether the changed solution is feasible
for TSP or not.
Let us make assignment in the cell (A,B)=1 and examine whether the changed
solution is feasible for TSP or not. Rowwise and columnwise assignment is
shown in ( Table 1.5 ).
(Table 1.5)
The solution in ( Table 1.5 ) gives the sequence A->B->C->D->E->A
which is a tour since it forms a complete cycle and hence an optimal
feasible solution for TSP.
👉 Thus, the shortest route for the travelling salesman is given in the
below table. ( Table 1.6 )
ROUTE DISTANCE
A -----> B 2
B -----> C 3
C -----> D 4
D -----> E 5
E -----> A 1
TOTAL SHORTEST DISTANCE 👉 15 🙂
( Table 1.6 )
🔎 Conclusion 🎯
The Travelling Salesman Problem is one of the challenging problems in real life
and also most well studied combinatorial optimization problem. Many
researchers from different fields like Operational Research, Algorithms Design
and Artificial Intelligence etc. are attracted by it. In this presentation, this
problem has been solved by using Hungarian Method. This problem is used as
a benchmark for many optimization methods and has wide applications.
The Travelling Salesman Problem_BharatKumar.pptx

More Related Content

Similar to The Travelling Salesman Problem_BharatKumar.pptx

transportationproblem.pdf
transportationproblem.pdftransportationproblem.pdf
transportationproblem.pdfJohn684538
 
Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms Shivank Shah
 
(PBL) Transportation Prblm.pdf
(PBL) Transportation Prblm.pdf(PBL) Transportation Prblm.pdf
(PBL) Transportation Prblm.pdfAkashKatiyar22
 
Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Viraj Patil
 
Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Viraj Patil
 
Travelling salesperson problem
Travelling salesperson problemTravelling salesperson problem
Travelling salesperson problemAkshayIngole17
 
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
 
Fixed Position Constraints in a Travelling Salesman Problem (TSP) with Multip...
Fixed Position Constraints in a Travelling Salesman Problem (TSP) with Multip...Fixed Position Constraints in a Travelling Salesman Problem (TSP) with Multip...
Fixed Position Constraints in a Travelling Salesman Problem (TSP) with Multip...dbpublications
 
Travelling salaseman problem (1).pptx
Travelling salaseman problem (1).pptxTravelling salaseman problem (1).pptx
Travelling salaseman problem (1).pptxAshima Yasub
 
Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment ProblemVivekSaurabh7
 
GREKing: The most repeated type of quants problem.
GREKing: The most repeated type of quants problem.GREKing: The most repeated type of quants problem.
GREKing: The most repeated type of quants problem.Rahul Singh
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problemPradeep Behera
 

Similar to The Travelling Salesman Problem_BharatKumar.pptx (20)

transportationproblem.pdf
transportationproblem.pdftransportationproblem.pdf
transportationproblem.pdf
 
Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms
 
(PBL) Transportation Prblm.pdf
(PBL) Transportation Prblm.pdf(PBL) Transportation Prblm.pdf
(PBL) Transportation Prblm.pdf
 
Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Traveling salesman problem(tsp)
Traveling salesman problem(tsp)
 
Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Traveling salesman problem(tsp)
Traveling salesman problem(tsp)
 
Travelling salesperson problem
Travelling salesperson problemTravelling salesperson problem
Travelling salesperson problem
 
Asssignment problem
Asssignment problemAsssignment problem
Asssignment problem
 
Ac4103169172
Ac4103169172Ac4103169172
Ac4103169172
 
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...
 
Results of Round 1
Results of Round 1Results of Round 1
Results of Round 1
 
Internship exam round1
Internship exam round1Internship exam round1
Internship exam round1
 
T P
T PT P
T P
 
Fixed Position Constraints in a Travelling Salesman Problem (TSP) with Multip...
Fixed Position Constraints in a Travelling Salesman Problem (TSP) with Multip...Fixed Position Constraints in a Travelling Salesman Problem (TSP) with Multip...
Fixed Position Constraints in a Travelling Salesman Problem (TSP) with Multip...
 
Travelling salaseman problem (1).pptx
Travelling salaseman problem (1).pptxTravelling salaseman problem (1).pptx
Travelling salaseman problem (1).pptx
 
Traveling Salesman Problem
Traveling Salesman Problem Traveling Salesman Problem
Traveling Salesman Problem
 
Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment Problem
 
GREKing: The most repeated type of quants problem.
GREKing: The most repeated type of quants problem.GREKing: The most repeated type of quants problem.
GREKing: The most repeated type of quants problem.
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
 
CAT - 2005
CAT - 2005CAT - 2005
CAT - 2005
 
Operations Research
Operations ResearchOperations Research
Operations Research
 

Recently uploaded

Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxAArockiyaNisha
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Sérgio Sacani
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfmuntazimhurra
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real timeSatoshi NAKAHIRA
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxgindu3009
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​kaibalyasahoo82800
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...anilsa9823
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...jana861314
 
G9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptG9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptMAESTRELLAMesa2
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)PraveenaKalaiselvan1
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Lokesh Kothari
 
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |aasikanpl
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 
Cultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxCultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxpradhanghanshyam7136
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Patrick Diehl
 
Boyles law module in the grade 10 science
Boyles law module in the grade 10 scienceBoyles law module in the grade 10 science
Boyles law module in the grade 10 sciencefloriejanemacaya1
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡anilsa9823
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxkessiyaTpeter
 

Recently uploaded (20)

Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
The Philosophy of Science
The Philosophy of ScienceThe Philosophy of Science
The Philosophy of Science
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real time
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
 
G9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptG9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.ppt
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 
Cultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxCultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptx
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?
 
Boyles law module in the grade 10 science
Boyles law module in the grade 10 scienceBoyles law module in the grade 10 science
Boyles law module in the grade 10 science
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
 

The Travelling Salesman Problem_BharatKumar.pptx

  • 1. TRAVELLING SALESMAN PROBLEM Presented By :-- Bharat Kumar 😊, M.Sc (Hons.) Mathematics Department of Mathematics, Panjab University, Chandigarh
  • 2. Table Of Contents 🎯📚 1⃣ Travelling Salesman Problem Statement 2️⃣ Brief History Of Travelling Salesman Problem 3️⃣ Applications Of Travelling Salesman Problem ️4️⃣ Mathematical Model Of Travelling Salesman Problem ️5⃣ Solution Of Travelling Salesman Problem Using Hungarian Method 6⃣ Conclusion
  • 3. The Travelling Salesman Problem asks the following question: “Given a set of cities and the distance ( or time or cost) between each pair of cities, what is the best possible route that visits each city exactly once and return to the starting city?” Brief History of Travelling Salesmen Problem: 👉The TSP was defined in the 1800s by the Irish Mathematician W.R. Hamilton and the British Mathematician Thomas Kirkman. It was however first formulated as a mathematical problem in 1930 by Karl Menger. 👉The name Travelling Salesman Problem was introduced by American Hassler Whiteney.
  • 4. Applications of Travelling Salesman Problem: 👉 Management:- Postal Deliveries, School Bus Routing etc. 👉Computer Wiring:- Connecting together computer components using minimum wire length . 👉Genome Sequencing:- Arranging DNA fragments in sequence. 👉Job Sequencing:- Sequencing jobs in order to minimise total set-up time between jobs. 👉Mission Planning:- Determining an optimal path for each army men (or planner) to accomplish the goals of the mission in the minimum possible time.
  • 5. Mathematical Model of Travelling Salesman Problem: If cij is the cost (or distance or time) of travelling from city i to city j and xij=1 if the salesman travels from city i to j and zero otherwise, then the problem is to find X=(xij) which minimise : Here, cii = M where M is a large positive number to ensure xii=0 (i=1,2,...,n). 👉 The total number of tours in an n city travelling salesman problem is (n-1)!
  • 6. Solution of Travelling Salesman Problem Using Hungarian Method: A travelling salesman, named Mr. Bharat Kumar has to visit five cities. He has to visit each city only once and then return to the starting city. The distance between city i and j is cij and is given in the below table. What is the shortest tour possible? 🚴♂️🤯🤯 “As every thread of gold is valuable, so is every minute of time.” --- John Mason
  • 7. Solution: Here, the no. of rows = no. of columns = 5 ( Table 1.1) Step 1: Find out each row minimum element and subtract it from that row as done in ( Table 1.2 ) Step 2: Find out each column minimum element and subtract it from that column as done in ( Table 1.3 ) ( Table 1.1 ) ( Table 1.2 ) ( Table 1.3 )
  • 8. Step3: Make assignment in the admissible cells (i.e. cells containing 0) in the reduced table. Rowwise and Columnwise assignment is shown in the ( Table 1.4 ). The solution gives the sequence A->E->A and B->C->D->B which is not a tour and hence it is not a feasible solution for TSP. ( Table 1.4)
  • 9. Step4: The feasible solution for TSP can be obtained by bringing the minimum non-zero element ( i.e. 1 ) into the solution. 1 occur at 3 places and we can bring any of 1 into the solution and examine whether the changed solution is feasible for TSP or not. Let us make assignment in the cell (A,B)=1 and examine whether the changed solution is feasible for TSP or not. Rowwise and columnwise assignment is shown in ( Table 1.5 ). (Table 1.5)
  • 10. The solution in ( Table 1.5 ) gives the sequence A->B->C->D->E->A which is a tour since it forms a complete cycle and hence an optimal feasible solution for TSP. 👉 Thus, the shortest route for the travelling salesman is given in the below table. ( Table 1.6 ) ROUTE DISTANCE A -----> B 2 B -----> C 3 C -----> D 4 D -----> E 5 E -----> A 1 TOTAL SHORTEST DISTANCE 👉 15 🙂 ( Table 1.6 )
  • 11. 🔎 Conclusion 🎯 The Travelling Salesman Problem is one of the challenging problems in real life and also most well studied combinatorial optimization problem. Many researchers from different fields like Operational Research, Algorithms Design and Artificial Intelligence etc. are attracted by it. In this presentation, this problem has been solved by using Hungarian Method. This problem is used as a benchmark for many optimization methods and has wide applications.