SlideShare a Scribd company logo
1 of 17
Traveling Salesman Problem
• Problem Statement
– If there are n cities and cost of traveling from any
city to any other city is given.
– Then we have to obtain the cheapest round-trip
such that each city is visited exactly ones returning
to starting city, completes the tour.
– Typically travelling salesman problem is represent
by weighted graph.
Cont.
• Row Minimization
– To understand solving of travelling salesman
problem using branch and bound approach we
will reduce the cost of cost matrix M, by using
following formula.
– Red_Row(M) = [ Mij – min{ Mij | 1<=j<=n} ]
where Mij < ∞
Cont.
• Column Minimization
– Now we will reduce the matrix by choosing
minimum for each column.
– The formula of column reduction of matrix is
– Red_col(M)=Mij – min { Mij | 1<=j<=n}
where Mij < ∞
Cont.
• Full Reduction
– Let M bee the cost matrix for TSP for n vertices
then M is called reduced if each row and each
column consist of entire entity ∞ entries or else
contain at least one zero.
– The full reduction can be achieved by applying
both row_reduction and column_reduction.
Cont.
• Dynamic Reduction
– Using dynamic reduction we can make the choice of
edge i->j with optimal cost.
– Step in dynamic reduction technique
1. Draw a space tree with optimal cost at root node.
2. Obtain the cost of matrix for path i->j by making I row and
j column entries as ∞. Also set M[i][j]=∞
3. Cost corresponding node x with path I, j is optimal cost +
reduced cost+ M[i][j]
4. Set node with minimum cost as E-node and generate its
children. Repeat step 1 to 4 for completing tour with
optimal cost.
Example
• Solve the TSP for the following cost matrix
∞ 11 10 9 6
8 ∞ 7 3 4
8 4 ∞ 4 8
11 10 5 ∞ 5
6 9 2 5 ∞
Solution
Step 1 :
• We will find the minimum value from each row and
subtract the value from corresponding row
Minvalue
reduce matrix
∞ 11 10 9 6
8 ∞ 7 3 4
8 4 ∞ 4 8
11 10 5 ∞ 5
6 9 2 5 ∞
∞ 5 4 3 0
5 ∞ 4 0 1
4 0 ∞ 0 4
6 5 0 ∞ 0
1 4 0 0 ∞
-> 6
-> 3
->4
->5
->5
---------
23
Cont.
• Now we will obtain minimum value from each column. If they
column contain 0 the ignore that column and a fully reduced
matrix can be obtain.
subtracting 1 from 1st column
∞ 5 4 3 0
5 ∞ 4 0 1
4 0 ∞ 0 4
6 5 0 ∞ 0
1 4 0 0 ∞
∞ 5 4 3 0
4 ∞ 4 0 1
3 0 ∞ 0 4
5 5 0 ∞ 0
0 4 0 0 ∞
Cont.
• Total reduced cost
= total reduced row cost + total reduced column cost
= 23 + 1
= 24
• Now we will set 24 as the optimal cost
24->this is the lower bound
Cont.
• Step 2 :: Now we will consider the paths [1,2], [1,3], [1,4] and [1,5] of state
space tree as given above consider path [1,2] make 1st row and 2nd column to
∞ set M[2][1]=∞
• Now we will find min value from each corresponding column.
• c
∞ ∞ ∞ ∞ ∞
∞ ∞ 4 0 1
3 ∞ ∞ 0 4
5 ∞ 0 ∞ 0
0 ∞ 0 0 ∞
∞ ∞ ∞ ∞ ∞
∞ ∞ 4 0 1
3 ∞ ∞ 0 4
5 ∞ 0 ∞ 0
0 ∞ 0 0 ∞
Cont.
• Hence total receded cost for node 2 is = Optimal
cost+old value of M[1][2]
= 24 + 5
= 25
• Consider path (1,3). Make 1st row, 3rd column to be
∞ set M[3][1] = ∞
Cont.
There is no minimum value from any row and column
Hence total cost of node 3 is
= optimum cost + M[1][3]
= 24+ 4
= 28
∞ ∞ ∞ ∞ ∞
4 ∞ ∞ 0 1
3 0 ∞ 0 4
5 5 ∞ ∞ 0
0 4 ∞ 0 ∞
Cont.
• consider path [1,4] make 1st row and 4th column to ∞ set
M[4][1]=∞
subtracting 1 from 2nd Row
total cost of node 4 is = optimum cost + M[1][4] + minimum row cost
= 24+ 3+1
= 28
∞ ∞ ∞ ∞ ∞
4 ∞ 4 ∞ 1
3 0 ∞ ∞ 4
∞ 5 0 ∞ 0
0 4 0 ∞ ∞
∞ ∞ ∞ ∞ ∞
4 ∞ 3 ∞ 0
3 0 ∞ ∞ 4
∞ 5 0 ∞ 0
0 4 0 ∞ ∞
Cont.
• consider path [1,5] make 1st row and 5th column to ∞ set
M[5][1]=∞
subtracting 3 from 1st Row
total cost of node 5 is = reduced column cost + old value M[1][5]
= 24+ 3+0
= 27
∞ ∞ ∞ ∞ ∞
4 ∞ 4 0 ∞
3 0 ∞ 0 ∞
5 5 0 ∞ ∞
∞ 4 0 0 ∞
∞ ∞ ∞ ∞ ∞
1 ∞ 4 0 ∞
0 0 ∞ 0 ∞
2 5 0 ∞ ∞
∞ 4 0 0 ∞
Cont.
• The partial state space tree will be
• The node 5 shows minimum cost. Hence node 5 will be an E
node. That means we select node 5 for expansion.
27
29 28 28 27
Cont.
• Step 3 :: Now we will consider the paths [1,5,2], [1,5,3] and [1,5,4] of state
space tree as given above consider path [1,5,2] make 1st row , 5th row and
second column as ∞ set M[5][1] and M[2][1] =∞
subtracting 3 from 1st Column.
Hence total cost of node 6 is =optimal cost node 5+column reduced cost+ M[5][2]
= 27+ 3+4
= 34
∞ ∞ ∞ ∞ ∞
∞ ∞ 4 0 1
3 ∞ ∞ 0 4
5 ∞ 0 ∞ 0
∞ ∞ ∞ ∞ ∞
∞ ∞ ∞ ∞ ∞
∞ ∞ 4 0 1
0 ∞ ∞ 0 4
2 ∞ 0 ∞ 0
∞ ∞ ∞ ∞ ∞
Cont.

More Related Content

What's hot

Bellman Ford's Algorithm
Bellman Ford's AlgorithmBellman Ford's Algorithm
Bellman Ford's AlgorithmTanmay Baranwal
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithmMegha Sharma
 
Travelling SalesMan Problem(TSP)
Travelling SalesMan Problem(TSP)Travelling SalesMan Problem(TSP)
Travelling SalesMan Problem(TSP)Akshay Kamble
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problemWajahat Hussain
 
Branch and bound technique
Branch and bound techniqueBranch and bound technique
Branch and bound techniqueishmecse13
 
15 puzzle problem using branch and bound
15 puzzle problem using branch and bound15 puzzle problem using branch and bound
15 puzzle problem using branch and boundAbhishek Singh
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemMohammad Imam Hossain
 
Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman ProblemDaniel Raditya
 
Longest Common Subsequence
Longest Common SubsequenceLongest Common Subsequence
Longest Common SubsequenceKrishma Parekh
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesFahim Ferdous
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problemPradeep Behera
 
0 1 knapsack using branch and bound
0 1 knapsack using branch and bound0 1 knapsack using branch and bound
0 1 knapsack using branch and boundAbhishek Singh
 
Data mining Measuring similarity and desimilarity
Data mining Measuring similarity and desimilarityData mining Measuring similarity and desimilarity
Data mining Measuring similarity and desimilarityRushali Deshmukh
 

What's hot (20)

Bellman Ford's Algorithm
Bellman Ford's AlgorithmBellman Ford's Algorithm
Bellman Ford's Algorithm
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithm
 
Travelling SalesMan Problem(TSP)
Travelling SalesMan Problem(TSP)Travelling SalesMan Problem(TSP)
Travelling SalesMan Problem(TSP)
 
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
 
15 puzzle problem using branch and bound
15 puzzle problem using branch and bound15 puzzle problem using branch and bound
15 puzzle problem using branch and bound
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction Problem
 
Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman Problem
 
Greedy Algorihm
Greedy AlgorihmGreedy Algorihm
Greedy Algorihm
 
Longest Common Subsequence
Longest Common SubsequenceLongest Common Subsequence
Longest Common Subsequence
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and Examples
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
 
N queens using backtracking
N queens using backtrackingN queens using backtracking
N queens using backtracking
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
Backtracking
BacktrackingBacktracking
Backtracking
 
0 1 knapsack using branch and bound
0 1 knapsack using branch and bound0 1 knapsack using branch and bound
0 1 knapsack using branch and bound
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
 
Dijkstra's Algorithm
Dijkstra's Algorithm Dijkstra's Algorithm
Dijkstra's Algorithm
 
Data mining Measuring similarity and desimilarity
Data mining Measuring similarity and desimilarityData mining Measuring similarity and desimilarity
Data mining Measuring similarity and desimilarity
 

Viewers also liked

Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Viraj Patil
 
Art of Salesmanship by Md. Sabur Khan, Chairman, Daffodil International Unive...
Art of Salesmanship by Md. Sabur Khan, Chairman, Daffodil International Unive...Art of Salesmanship by Md. Sabur Khan, Chairman, Daffodil International Unive...
Art of Salesmanship by Md. Sabur Khan, Chairman, Daffodil International Unive...Mohammad Shah - Al - Mamun Khondker
 
Traveling salesman problem__theory_and_applications
Traveling salesman problem__theory_and_applicationsTraveling salesman problem__theory_and_applications
Traveling salesman problem__theory_and_applicationsSachin Kheveria
 
Chapter 4 recruiting salesman
Chapter 4 recruiting salesmanChapter 4 recruiting salesman
Chapter 4 recruiting salesmanKimber Palada
 
Graph theory - Traveling Salesman and Chinese Postman
Graph theory - Traveling Salesman and Chinese PostmanGraph theory - Traveling Salesman and Chinese Postman
Graph theory - Traveling Salesman and Chinese PostmanChristian Kehl
 
The salesman
The salesmanThe salesman
The salesmanrakiarin
 
metaheuristic tabu pso
metaheuristic tabu psometaheuristic tabu pso
metaheuristic tabu psoheba_ahmad
 
Ending The War Between Sales Marketing (revised)
Ending The War Between Sales  Marketing (revised)Ending The War Between Sales  Marketing (revised)
Ending The War Between Sales Marketing (revised)Benjamin Chang-Kwon Chung
 
Who Owns Social Selling? Bridging the Divide Between Sales & Marketing
Who Owns Social Selling? Bridging the Divide Between Sales & MarketingWho Owns Social Selling? Bridging the Divide Between Sales & Marketing
Who Owns Social Selling? Bridging the Divide Between Sales & MarketingLinkedIn Sales Solutions
 
Social Media Marketing Plan and ROI
Social Media Marketing Plan and ROISocial Media Marketing Plan and ROI
Social Media Marketing Plan and ROILindsey Fair, MBA
 
10 Ways Sales & Marketing Can Close a Deal Together
10 Ways Sales & Marketing Can Close a Deal Together 10 Ways Sales & Marketing Can Close a Deal Together
10 Ways Sales & Marketing Can Close a Deal Together Pedowitz Group
 
Bridging The Gap Between Sales And Marketing
Bridging The Gap Between Sales And MarketingBridging The Gap Between Sales And Marketing
Bridging The Gap Between Sales And Marketingguest3d2e50c
 
DialogTech Digital Summit: Embracing Conversations in a Digital Landscape
DialogTech Digital Summit: Embracing Conversations in a Digital LandscapeDialogTech Digital Summit: Embracing Conversations in a Digital Landscape
DialogTech Digital Summit: Embracing Conversations in a Digital LandscapeDialogTech
 
More than a marketing channel
More than a marketing channelMore than a marketing channel
More than a marketing channelTNS
 
First 75 days plan for a Sales Leader
First 75 days plan for a Sales LeaderFirst 75 days plan for a Sales Leader
First 75 days plan for a Sales Leaderabhijitraykgp
 
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problemShow ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problemjayatra
 
8 Sales Closing Techniques
8 Sales Closing Techniques8 Sales Closing Techniques
8 Sales Closing Techniquesxoombi
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationMeenakshi Devi
 
The secret to closing the sale
The secret to closing the saleThe secret to closing the sale
The secret to closing the saleEfrat Barzilay
 

Viewers also liked (20)

Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Traveling salesman problem(tsp)
Traveling salesman problem(tsp)
 
Art of Salesmanship by Md. Sabur Khan, Chairman, Daffodil International Unive...
Art of Salesmanship by Md. Sabur Khan, Chairman, Daffodil International Unive...Art of Salesmanship by Md. Sabur Khan, Chairman, Daffodil International Unive...
Art of Salesmanship by Md. Sabur Khan, Chairman, Daffodil International Unive...
 
Traveling salesman problem__theory_and_applications
Traveling salesman problem__theory_and_applicationsTraveling salesman problem__theory_and_applications
Traveling salesman problem__theory_and_applications
 
Chapter 4 recruiting salesman
Chapter 4 recruiting salesmanChapter 4 recruiting salesman
Chapter 4 recruiting salesman
 
Graph theory - Traveling Salesman and Chinese Postman
Graph theory - Traveling Salesman and Chinese PostmanGraph theory - Traveling Salesman and Chinese Postman
Graph theory - Traveling Salesman and Chinese Postman
 
The salesman
The salesmanThe salesman
The salesman
 
metaheuristic tabu pso
metaheuristic tabu psometaheuristic tabu pso
metaheuristic tabu pso
 
Ending The War Between Sales Marketing (revised)
Ending The War Between Sales  Marketing (revised)Ending The War Between Sales  Marketing (revised)
Ending The War Between Sales Marketing (revised)
 
Who Owns Social Selling? Bridging the Divide Between Sales & Marketing
Who Owns Social Selling? Bridging the Divide Between Sales & MarketingWho Owns Social Selling? Bridging the Divide Between Sales & Marketing
Who Owns Social Selling? Bridging the Divide Between Sales & Marketing
 
Social Media Marketing Plan and ROI
Social Media Marketing Plan and ROISocial Media Marketing Plan and ROI
Social Media Marketing Plan and ROI
 
10 Ways Sales & Marketing Can Close a Deal Together
10 Ways Sales & Marketing Can Close a Deal Together 10 Ways Sales & Marketing Can Close a Deal Together
10 Ways Sales & Marketing Can Close a Deal Together
 
Bridging The Gap Between Sales And Marketing
Bridging The Gap Between Sales And MarketingBridging The Gap Between Sales And Marketing
Bridging The Gap Between Sales And Marketing
 
DialogTech Digital Summit: Embracing Conversations in a Digital Landscape
DialogTech Digital Summit: Embracing Conversations in a Digital LandscapeDialogTech Digital Summit: Embracing Conversations in a Digital Landscape
DialogTech Digital Summit: Embracing Conversations in a Digital Landscape
 
More than a marketing channel
More than a marketing channelMore than a marketing channel
More than a marketing channel
 
First 75 days plan for a Sales Leader
First 75 days plan for a Sales LeaderFirst 75 days plan for a Sales Leader
First 75 days plan for a Sales Leader
 
Awesome Sales Closing Techniques
Awesome Sales Closing Techniques Awesome Sales Closing Techniques
Awesome Sales Closing Techniques
 
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problemShow ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
 
8 Sales Closing Techniques
8 Sales Closing Techniques8 Sales Closing Techniques
8 Sales Closing Techniques
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
The secret to closing the sale
The secret to closing the saleThe secret to closing the sale
The secret to closing the sale
 

Similar to Traveling salesman problem

Travelling salaseman problem (1).pptx
Travelling salaseman problem (1).pptxTravelling salaseman problem (1).pptx
Travelling salaseman problem (1).pptxAshima Yasub
 
Data structures and algorithms
Data structures and algorithmsData structures and algorithms
Data structures and algorithmsKaviya452563
 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structuresKàŕtheek Jåvvàjí
 
Insider mathematical
Insider   mathematicalInsider   mathematical
Insider mathematicalAditi Saxena
 
Chapter 1 Assignment Problems (DS) (1).pptx
Chapter 1 Assignment Problems (DS) (1).pptxChapter 1 Assignment Problems (DS) (1).pptx
Chapter 1 Assignment Problems (DS) (1).pptxPriyankaLunavat
 
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...Firas Husseini
 
Data structure - traveling sales person and mesh algorithm
Data structure - traveling sales person and mesh algorithmData structure - traveling sales person and mesh algorithm
Data structure - traveling sales person and mesh algorithmlavanya marichamy
 
Introduction to Matlab - Basic Functions
Introduction to Matlab - Basic FunctionsIntroduction to Matlab - Basic Functions
Introduction to Matlab - Basic Functionsjoellivz
 
Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment ProblemVivekSaurabh7
 
06. Gaussian Elimination.pptx
06. Gaussian Elimination.pptx06. Gaussian Elimination.pptx
06. Gaussian Elimination.pptxkibriaswe
 

Similar to Traveling salesman problem (20)

Travelling salaseman problem (1).pptx
Travelling salaseman problem (1).pptxTravelling salaseman problem (1).pptx
Travelling salaseman problem (1).pptx
 
Data structures and algorithms
Data structures and algorithmsData structures and algorithms
Data structures and algorithms
 
Tsp bn b
Tsp bn bTsp bn b
Tsp bn b
 
Asssignment problem
Asssignment problemAsssignment problem
Asssignment problem
 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structures
 
Tsp branch and bound
Tsp branch and boundTsp branch and bound
Tsp branch and bound
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
Insider mathematical
Insider   mathematicalInsider   mathematical
Insider mathematical
 
Chapter 1 Assignment Problems (DS) (1).pptx
Chapter 1 Assignment Problems (DS) (1).pptxChapter 1 Assignment Problems (DS) (1).pptx
Chapter 1 Assignment Problems (DS) (1).pptx
 
Ch07 linearspacealignment
Ch07 linearspacealignmentCh07 linearspacealignment
Ch07 linearspacealignment
 
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
 
Data structure - traveling sales person and mesh algorithm
Data structure - traveling sales person and mesh algorithmData structure - traveling sales person and mesh algorithm
Data structure - traveling sales person and mesh algorithm
 
Lec20
Lec20Lec20
Lec20
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Introduction to Matlab - Basic Functions
Introduction to Matlab - Basic FunctionsIntroduction to Matlab - Basic Functions
Introduction to Matlab - Basic Functions
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment Problem
 
06. Gaussian Elimination.pptx
06. Gaussian Elimination.pptx06. Gaussian Elimination.pptx
06. Gaussian Elimination.pptx
 
Magic square made easy
Magic square made easyMagic square made easy
Magic square made easy
 
12 LINEAR EQUATIONS.ppt
12 LINEAR EQUATIONS.ppt12 LINEAR EQUATIONS.ppt
12 LINEAR EQUATIONS.ppt
 

Recently uploaded

Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - GuideGOPINATHS437943
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESNarmatha D
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadaditya806802
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 

Recently uploaded (20)

Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIES
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 

Traveling salesman problem

  • 1. Traveling Salesman Problem • Problem Statement – If there are n cities and cost of traveling from any city to any other city is given. – Then we have to obtain the cheapest round-trip such that each city is visited exactly ones returning to starting city, completes the tour. – Typically travelling salesman problem is represent by weighted graph.
  • 2. Cont. • Row Minimization – To understand solving of travelling salesman problem using branch and bound approach we will reduce the cost of cost matrix M, by using following formula. – Red_Row(M) = [ Mij – min{ Mij | 1<=j<=n} ] where Mij < ∞
  • 3. Cont. • Column Minimization – Now we will reduce the matrix by choosing minimum for each column. – The formula of column reduction of matrix is – Red_col(M)=Mij – min { Mij | 1<=j<=n} where Mij < ∞
  • 4. Cont. • Full Reduction – Let M bee the cost matrix for TSP for n vertices then M is called reduced if each row and each column consist of entire entity ∞ entries or else contain at least one zero. – The full reduction can be achieved by applying both row_reduction and column_reduction.
  • 5. Cont. • Dynamic Reduction – Using dynamic reduction we can make the choice of edge i->j with optimal cost. – Step in dynamic reduction technique 1. Draw a space tree with optimal cost at root node. 2. Obtain the cost of matrix for path i->j by making I row and j column entries as ∞. Also set M[i][j]=∞ 3. Cost corresponding node x with path I, j is optimal cost + reduced cost+ M[i][j] 4. Set node with minimum cost as E-node and generate its children. Repeat step 1 to 4 for completing tour with optimal cost.
  • 6. Example • Solve the TSP for the following cost matrix ∞ 11 10 9 6 8 ∞ 7 3 4 8 4 ∞ 4 8 11 10 5 ∞ 5 6 9 2 5 ∞
  • 7. Solution Step 1 : • We will find the minimum value from each row and subtract the value from corresponding row Minvalue reduce matrix ∞ 11 10 9 6 8 ∞ 7 3 4 8 4 ∞ 4 8 11 10 5 ∞ 5 6 9 2 5 ∞ ∞ 5 4 3 0 5 ∞ 4 0 1 4 0 ∞ 0 4 6 5 0 ∞ 0 1 4 0 0 ∞ -> 6 -> 3 ->4 ->5 ->5 --------- 23
  • 8. Cont. • Now we will obtain minimum value from each column. If they column contain 0 the ignore that column and a fully reduced matrix can be obtain. subtracting 1 from 1st column ∞ 5 4 3 0 5 ∞ 4 0 1 4 0 ∞ 0 4 6 5 0 ∞ 0 1 4 0 0 ∞ ∞ 5 4 3 0 4 ∞ 4 0 1 3 0 ∞ 0 4 5 5 0 ∞ 0 0 4 0 0 ∞
  • 9. Cont. • Total reduced cost = total reduced row cost + total reduced column cost = 23 + 1 = 24 • Now we will set 24 as the optimal cost 24->this is the lower bound
  • 10. Cont. • Step 2 :: Now we will consider the paths [1,2], [1,3], [1,4] and [1,5] of state space tree as given above consider path [1,2] make 1st row and 2nd column to ∞ set M[2][1]=∞ • Now we will find min value from each corresponding column. • c ∞ ∞ ∞ ∞ ∞ ∞ ∞ 4 0 1 3 ∞ ∞ 0 4 5 ∞ 0 ∞ 0 0 ∞ 0 0 ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ 4 0 1 3 ∞ ∞ 0 4 5 ∞ 0 ∞ 0 0 ∞ 0 0 ∞
  • 11. Cont. • Hence total receded cost for node 2 is = Optimal cost+old value of M[1][2] = 24 + 5 = 25 • Consider path (1,3). Make 1st row, 3rd column to be ∞ set M[3][1] = ∞
  • 12. Cont. There is no minimum value from any row and column Hence total cost of node 3 is = optimum cost + M[1][3] = 24+ 4 = 28 ∞ ∞ ∞ ∞ ∞ 4 ∞ ∞ 0 1 3 0 ∞ 0 4 5 5 ∞ ∞ 0 0 4 ∞ 0 ∞
  • 13. Cont. • consider path [1,4] make 1st row and 4th column to ∞ set M[4][1]=∞ subtracting 1 from 2nd Row total cost of node 4 is = optimum cost + M[1][4] + minimum row cost = 24+ 3+1 = 28 ∞ ∞ ∞ ∞ ∞ 4 ∞ 4 ∞ 1 3 0 ∞ ∞ 4 ∞ 5 0 ∞ 0 0 4 0 ∞ ∞ ∞ ∞ ∞ ∞ ∞ 4 ∞ 3 ∞ 0 3 0 ∞ ∞ 4 ∞ 5 0 ∞ 0 0 4 0 ∞ ∞
  • 14. Cont. • consider path [1,5] make 1st row and 5th column to ∞ set M[5][1]=∞ subtracting 3 from 1st Row total cost of node 5 is = reduced column cost + old value M[1][5] = 24+ 3+0 = 27 ∞ ∞ ∞ ∞ ∞ 4 ∞ 4 0 ∞ 3 0 ∞ 0 ∞ 5 5 0 ∞ ∞ ∞ 4 0 0 ∞ ∞ ∞ ∞ ∞ ∞ 1 ∞ 4 0 ∞ 0 0 ∞ 0 ∞ 2 5 0 ∞ ∞ ∞ 4 0 0 ∞
  • 15. Cont. • The partial state space tree will be • The node 5 shows minimum cost. Hence node 5 will be an E node. That means we select node 5 for expansion. 27 29 28 28 27
  • 16. Cont. • Step 3 :: Now we will consider the paths [1,5,2], [1,5,3] and [1,5,4] of state space tree as given above consider path [1,5,2] make 1st row , 5th row and second column as ∞ set M[5][1] and M[2][1] =∞ subtracting 3 from 1st Column. Hence total cost of node 6 is =optimal cost node 5+column reduced cost+ M[5][2] = 27+ 3+4 = 34 ∞ ∞ ∞ ∞ ∞ ∞ ∞ 4 0 1 3 ∞ ∞ 0 4 5 ∞ 0 ∞ 0 ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ 4 0 1 0 ∞ ∞ 0 4 2 ∞ 0 ∞ 0 ∞ ∞ ∞ ∞ ∞
  • 17. Cont.