SlideShare a Scribd company logo
1 of 18
Travelling Salesman Problem
Chapter 1 & 2



Raditya W Erlangga (G651120714)
Jemy Arieswanto (G651120664)
Amalia Rahmawati (G651120634)
Bogor, February 16th 2013
AGENDA

• Introduction
• NP-Complete Overview
• TSP
•Q&A
TRAVELLING SALESMAN
            PROBLEM
Find the shortest possible route
that visits each city exactly once
   and returns to the origin city




    SECURITY UPDATE

    <ISC SA or IR Number>
    <Date>
P, NP, NP-COMPLETE, NP-HARD



                  Nondeterministic-
Polynomial Time   Polynomial Time     NP-Complete   NP-Hard
P (POLYNOMIAL TIME)

» P is the set of all decision problems which can be solved in polynomial
  time by a deterministic Turing machine. Since it can be solved in
  polynomial time, it can also be verified in polynomial time
» E.g:
   • Linear Programming -> determining a way to achieve the best
       outcome (such as maximum profit or lowest cost) in a given
       mathematical model
   • finding Maximum Matching -> graph matching
NP (NON-DETERMINISTIC POLYNOMIAL)

» NP is the set of all decision problems (question with yes-or-no answer)
  for which the 'yes'-answers can be verified in polynomial time (O(nk)
  where n is the problem size, and k is a constant) by a deterministic
  Turing machine. Polynomial time is sometimes used as the definition of
  fast or quickly
» P is a subset of NP
» E.g:
   • TSP
NP-COMPLETE

» A problem x that is in NP is also in NP-Complete if and only if every
  other problem in NP can be quickly (ie. in polynomial time)
  transformed into x. In other words:
   • x is in NP, and
   • Every problem in NP is reducible to x
» So what makes NP-Complete so interesting is that if any one of the NP-
  Complete problems was to be solved quickly then all NP problems can
  be solved quickly
» E.g:
   • TSP
NP-HARD
» NP-Hard are problems that are at least as hard as the hardest problems
  in NP. Note that NP-Complete problems are also NP-hard. However not
  all NP-hard problems are NP (or even a decision problem), despite
  having 'NP' as a prefix. That is the NP in NP-hard does not mean 'non-
  deterministic polynomial time’
» E.g:
   • TSP
P, NP, NP-COMPLETE, AND NP-HARD CORRELATION
TSP IS NP-HARD




U$ 1m
IF P = NP IS SOLVED


Millenium Prize
Problem
AND CREDITS FROM
SCIENTISTS AROUND
THE WORLD




source: http://www.claymath.org/millennium/P_vs_NP/
TSP HISTORY


» 1920: Karl Menger introduced the concept to colleagues in Vienna
» 1930: Intensive discussion in math community in Princeton University
» 1940: Merrill Meeks Flood publicized TSP to mass
» 1948: Flood presented TSP to RAND Corp. RAND is a non-profit
  organization that focuses in intellectual research and development
  within the US
» 1950: Linear Programming was becoming a vital force in computing
  solutions to combinatorial optimization problems. The US Airforce
  needed the method to optimize solutions of their combinatorial
  transportation problem
» 1960’s: The TSP could not be solved in polynomial time using Linear
  Programming techniques
TSP has never been
solved
 by scientists and experts so far
TSP OVERVIEW (1)

» Find the shortest possible route that visits each city exactly once and
  returns to the origin city -> Hamiltonian cycle
» Posed such computational complexity that any programmable efforts
  to solve such problems would grow superpolynomially with the
  problem size
» Can be used in :
   • transportation: school bus routes, service calls, delivering meals
   • manufacturing: an industrial robot that drills holes in printed
      circuit boards
   • VLSI (microchip) layout
   • communication: planning new telecommunication networks
TSP OVERVIEW (2)

» One way to solve TSP is to use exhaustive search to find all possible
  combinations of the next city to visit
» However, the method is costly, since the number of possible tours of a map
  with n cities is (n − 1)! / 2

         #cities            #tours
            5                 12
            6                 60
            7                360
            8                2,520
            9               20,160
           10               181,440


» 25 cities will require:
   310,224,200,866,619,719,680,000
TSP OVERVIEW (3)
 Vehicle Routing - Meet customers demands within given time windows
 using lorries of limited capacity
                     10am-1pm              7am-8am        3am-5am




4pm-7pm                                                             6pm-7pm
                                          Depot



          8am-10am




                                                        6am-9am
                                2pm-3pm


                                Much more difficult than TSP
TSP OVERVIEW (4)

» Until this very day, an efficient solution to the general case TSP, or even
  to any of its NP-hard variations, has not been found
» However, there are approximation solutions to solve the TSP:
   • Polynomial Time Approximation Scheme (PTAS)
   • Christofides Algorithm
   • Double MST Algorithm
   • Arora’s Algorithm
   • Mitchell’s Algorithm
QUESTIONS?
THANK YOU

More Related Content

What's hot

Travelling salesman dynamic programming
Travelling salesman dynamic programmingTravelling salesman dynamic programming
Travelling salesman dynamic programmingmaharajdey
 
Solving the traveling salesman problem by genetic algorithm
Solving the traveling salesman problem by genetic algorithmSolving the traveling salesman problem by genetic algorithm
Solving the traveling salesman problem by genetic algorithmAlex Bidanets
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problemPradeep Behera
 
Branch and bound technique
Branch and bound techniqueBranch and bound technique
Branch and bound techniqueishmecse13
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesFahim Ferdous
 
Strassen's matrix multiplication
Strassen's matrix multiplicationStrassen's matrix multiplication
Strassen's matrix multiplicationMegha V
 
Greedy Algorithm
Greedy AlgorithmGreedy Algorithm
Greedy AlgorithmWaqar Akram
 
Matrix chain multiplication
Matrix chain multiplicationMatrix chain multiplication
Matrix chain multiplicationRespa Peter
 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structuresKàŕtheek Jåvvàjí
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAsst.prof M.Gokilavani
 
Daa:Dynamic Programing
Daa:Dynamic ProgramingDaa:Dynamic Programing
Daa:Dynamic Programingrupali_2bonde
 
Greedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack ProblemGreedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack ProblemMadhu Bala
 
Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman ProblemShikha Gupta
 

What's hot (20)

Travelling salesman dynamic programming
Travelling salesman dynamic programmingTravelling salesman dynamic programming
Travelling salesman dynamic programming
 
Solving the traveling salesman problem by genetic algorithm
Solving the traveling salesman problem by genetic algorithmSolving the traveling salesman problem by genetic algorithm
Solving the traveling salesman problem by genetic algorithm
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
 
Branch and bound technique
Branch and bound techniqueBranch and bound technique
Branch and bound technique
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and Examples
 
Lower bound
Lower boundLower bound
Lower bound
 
Branch & bound
Branch & boundBranch & bound
Branch & bound
 
Backtracking
BacktrackingBacktracking
Backtracking
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
Strassen's matrix multiplication
Strassen's matrix multiplicationStrassen's matrix multiplication
Strassen's matrix multiplication
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
N queen problem
N queen problemN queen problem
N queen problem
 
Greedy Algorithm
Greedy AlgorithmGreedy Algorithm
Greedy Algorithm
 
Matrix chain multiplication
Matrix chain multiplicationMatrix chain multiplication
Matrix chain multiplication
 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structures
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptx
 
Daa:Dynamic Programing
Daa:Dynamic ProgramingDaa:Dynamic Programing
Daa:Dynamic Programing
 
Greedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack ProblemGreedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack Problem
 
Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman Problem
 
Greedy Algorithms
Greedy AlgorithmsGreedy Algorithms
Greedy Algorithms
 

Similar to Travelling Salesman Problem

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 OptimizationIlgın Kavaklıoğulları
 
Traveling Salesman Problem (TSP)
Traveling Salesman Problem (TSP)Traveling Salesman Problem (TSP)
Traveling Salesman Problem (TSP)Maksym Voitko
 
A New Spatial Approach for Efficient Transformation of Equality - Generalize...
A New Spatial Approach for Efficient Transformation of  Equality - Generalize...A New Spatial Approach for Efficient Transformation of  Equality - Generalize...
A New Spatial Approach for Efficient Transformation of Equality - Generalize...Mohammed Zia
 
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
 
Eeee2017 Conference - OR in the digital era - ICT challenges | Presentation
Eeee2017 Conference - OR in the digital era - ICT challenges | PresentationEeee2017 Conference - OR in the digital era - ICT challenges | Presentation
Eeee2017 Conference - OR in the digital era - ICT challenges | PresentationChristos Papalitsas
 
Algorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSPAlgorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSPCarrie Romero
 
The Traveling Salesman Problem: A Neural Network Perspective
The Traveling Salesman Problem: A Neural Network PerspectiveThe Traveling Salesman Problem: A Neural Network Perspective
The Traveling Salesman Problem: A Neural Network Perspectivemustafa sarac
 
Nearest Neighbor Customer Insight
Nearest Neighbor Customer InsightNearest Neighbor Customer Insight
Nearest Neighbor Customer InsightMapR Technologies
 
Modelling the London Tube Network in Grakn
Modelling the London Tube Network in GraknModelling the London Tube Network in Grakn
Modelling the London Tube Network in GraknVaticle
 
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
 
Solving capacity problems as asymmetric
Solving capacity problems as asymmetricSolving capacity problems as asymmetric
Solving capacity problems as asymmetricijaia
 
Job Shop Scheduling with Setup Times Release times and Deadlines
Job Shop Scheduling with Setup Times  Release times and DeadlinesJob Shop Scheduling with Setup Times  Release times and Deadlines
Job Shop Scheduling with Setup Times Release times and DeadlinesAlkis Vazacopoulos
 
1907555 ant colony optimization for simulated dynamic multi-objective railway...
1907555 ant colony optimization for simulated dynamic multi-objective railway...1907555 ant colony optimization for simulated dynamic multi-objective railway...
1907555 ant colony optimization for simulated dynamic multi-objective railway...Mamun Hasan
 

Similar to Travelling Salesman Problem (20)

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
 
P vs NP
P vs NP P vs NP
P vs NP
 
DAA.pdf
DAA.pdfDAA.pdf
DAA.pdf
 
DAA.pdf
DAA.pdfDAA.pdf
DAA.pdf
 
Traveling Salesman Problem (TSP)
Traveling Salesman Problem (TSP)Traveling Salesman Problem (TSP)
Traveling Salesman Problem (TSP)
 
NP-Completeness - II
NP-Completeness - IINP-Completeness - II
NP-Completeness - II
 
A New Spatial Approach for Efficient Transformation of Equality - Generalize...
A New Spatial Approach for Efficient Transformation of  Equality - Generalize...A New Spatial Approach for Efficient Transformation of  Equality - Generalize...
A New Spatial Approach for Efficient Transformation of Equality - Generalize...
 
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
 
Eeee2017 Conference - OR in the digital era - ICT challenges | Presentation
Eeee2017 Conference - OR in the digital era - ICT challenges | PresentationEeee2017 Conference - OR in the digital era - ICT challenges | Presentation
Eeee2017 Conference - OR in the digital era - ICT challenges | Presentation
 
Algorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSPAlgorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSP
 
The Traveling Salesman Problem: A Neural Network Perspective
The Traveling Salesman Problem: A Neural Network PerspectiveThe Traveling Salesman Problem: A Neural Network Perspective
The Traveling Salesman Problem: A Neural Network Perspective
 
class23.ppt
class23.pptclass23.ppt
class23.ppt
 
Nearest Neighbor Customer Insight
Nearest Neighbor Customer InsightNearest Neighbor Customer Insight
Nearest Neighbor Customer Insight
 
Travelling salesmen problem
Travelling salesmen problemTravelling salesmen problem
Travelling salesmen problem
 
Modelling the London Tube Network in Grakn
Modelling the London Tube Network in GraknModelling the London Tube Network in Grakn
Modelling the London Tube Network in Grakn
 
Combinatorial Optimization
Combinatorial OptimizationCombinatorial Optimization
Combinatorial Optimization
 
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...
 
Solving capacity problems as asymmetric
Solving capacity problems as asymmetricSolving capacity problems as asymmetric
Solving capacity problems as asymmetric
 
Job Shop Scheduling with Setup Times Release times and Deadlines
Job Shop Scheduling with Setup Times  Release times and DeadlinesJob Shop Scheduling with Setup Times  Release times and Deadlines
Job Shop Scheduling with Setup Times Release times and Deadlines
 
1907555 ant colony optimization for simulated dynamic multi-objective railway...
1907555 ant colony optimization for simulated dynamic multi-objective railway...1907555 ant colony optimization for simulated dynamic multi-objective railway...
1907555 ant colony optimization for simulated dynamic multi-objective railway...
 

Recently uploaded

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
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
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
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
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
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)

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
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
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
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"
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
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
 

Travelling Salesman Problem

  • 1. Travelling Salesman Problem Chapter 1 & 2 Raditya W Erlangga (G651120714) Jemy Arieswanto (G651120664) Amalia Rahmawati (G651120634) Bogor, February 16th 2013
  • 2. AGENDA • Introduction • NP-Complete Overview • TSP •Q&A
  • 3. TRAVELLING SALESMAN PROBLEM Find the shortest possible route that visits each city exactly once and returns to the origin city SECURITY UPDATE <ISC SA or IR Number> <Date>
  • 4. P, NP, NP-COMPLETE, NP-HARD Nondeterministic- Polynomial Time Polynomial Time NP-Complete NP-Hard
  • 5. P (POLYNOMIAL TIME) » P is the set of all decision problems which can be solved in polynomial time by a deterministic Turing machine. Since it can be solved in polynomial time, it can also be verified in polynomial time » E.g: • Linear Programming -> determining a way to achieve the best outcome (such as maximum profit or lowest cost) in a given mathematical model • finding Maximum Matching -> graph matching
  • 6. NP (NON-DETERMINISTIC POLYNOMIAL) » NP is the set of all decision problems (question with yes-or-no answer) for which the 'yes'-answers can be verified in polynomial time (O(nk) where n is the problem size, and k is a constant) by a deterministic Turing machine. Polynomial time is sometimes used as the definition of fast or quickly » P is a subset of NP » E.g: • TSP
  • 7. NP-COMPLETE » A problem x that is in NP is also in NP-Complete if and only if every other problem in NP can be quickly (ie. in polynomial time) transformed into x. In other words: • x is in NP, and • Every problem in NP is reducible to x » So what makes NP-Complete so interesting is that if any one of the NP- Complete problems was to be solved quickly then all NP problems can be solved quickly » E.g: • TSP
  • 8. NP-HARD » NP-Hard are problems that are at least as hard as the hardest problems in NP. Note that NP-Complete problems are also NP-hard. However not all NP-hard problems are NP (or even a decision problem), despite having 'NP' as a prefix. That is the NP in NP-hard does not mean 'non- deterministic polynomial time’ » E.g: • TSP
  • 9. P, NP, NP-COMPLETE, AND NP-HARD CORRELATION
  • 10. TSP IS NP-HARD U$ 1m IF P = NP IS SOLVED Millenium Prize Problem AND CREDITS FROM SCIENTISTS AROUND THE WORLD source: http://www.claymath.org/millennium/P_vs_NP/
  • 11. TSP HISTORY » 1920: Karl Menger introduced the concept to colleagues in Vienna » 1930: Intensive discussion in math community in Princeton University » 1940: Merrill Meeks Flood publicized TSP to mass » 1948: Flood presented TSP to RAND Corp. RAND is a non-profit organization that focuses in intellectual research and development within the US » 1950: Linear Programming was becoming a vital force in computing solutions to combinatorial optimization problems. The US Airforce needed the method to optimize solutions of their combinatorial transportation problem » 1960’s: The TSP could not be solved in polynomial time using Linear Programming techniques
  • 12. TSP has never been solved by scientists and experts so far
  • 13. TSP OVERVIEW (1) » Find the shortest possible route that visits each city exactly once and returns to the origin city -> Hamiltonian cycle » Posed such computational complexity that any programmable efforts to solve such problems would grow superpolynomially with the problem size » Can be used in : • transportation: school bus routes, service calls, delivering meals • manufacturing: an industrial robot that drills holes in printed circuit boards • VLSI (microchip) layout • communication: planning new telecommunication networks
  • 14. TSP OVERVIEW (2) » One way to solve TSP is to use exhaustive search to find all possible combinations of the next city to visit » However, the method is costly, since the number of possible tours of a map with n cities is (n − 1)! / 2 #cities #tours 5 12 6 60 7 360 8 2,520 9 20,160 10 181,440 » 25 cities will require: 310,224,200,866,619,719,680,000
  • 15. TSP OVERVIEW (3) Vehicle Routing - Meet customers demands within given time windows using lorries of limited capacity 10am-1pm 7am-8am 3am-5am 4pm-7pm 6pm-7pm Depot 8am-10am 6am-9am 2pm-3pm Much more difficult than TSP
  • 16. TSP OVERVIEW (4) » Until this very day, an efficient solution to the general case TSP, or even to any of its NP-hard variations, has not been found » However, there are approximation solutions to solve the TSP: • Polynomial Time Approximation Scheme (PTAS) • Christofides Algorithm • Double MST Algorithm • Arora’s Algorithm • Mitchell’s Algorithm

Editor's Notes

  1. Slide title text color may be changed once the photo background is added.