Traveling Salesman Problem Using Dynamic Programming | DAA
An explanation of solving the Traveling Salesman Problem (TSP) using Dynamic Programming techniques. The video covers the problem setup with a directed graph G=(V,E), where V is the set of vertices, and E is the set of edges, focusing on the design and an

Sudhakar Atchala
258.2K views β’ Sep 8, 2021

About this video
#sudhakaratchala #daavideos #dynamicprogramming
Let G=(V,E) be a directed graph with n vertices.
where V is set of vertices and E is set of edges
The edges are given along with their cost Cij where Cij 0 for all i,j
cost(i,j)= 0 if (i==j)
Cij if (i,j) Ο΅ E(G)
κ if (i,j) Ο΅ E(G)
A tour for the graph G is directed cycle that includes every vertex exactly once, A tour starts at vertex β1β and ends with vertex β1β,but the remaining vertex are visited exactly once. The cost of the tour is sum of costs of edges on the tour.
Let g(i,S) be a length of the minimum shortest path, starting at vertex βiβ going through all the vertices in βsβ exactly once and terminating at vertex βiβ.
g(i,S)=min{Cij + g(j, {S}-{j}}
jΟ΅S
where S=V-{1}
If there are n vertices are there then (n-1)! Possible cycles can be formed. And maximum possible edges are 2n
Objective of the travelling sales person problem is to find the minimum shortest path/optimal solution.
Let G=(V,E) be a directed graph with n vertices.
where V is set of vertices and E is set of edges
The edges are given along with their cost Cij where Cij 0 for all i,j
cost(i,j)= 0 if (i==j)
Cij if (i,j) Ο΅ E(G)
κ if (i,j) Ο΅ E(G)
A tour for the graph G is directed cycle that includes every vertex exactly once, A tour starts at vertex β1β and ends with vertex β1β,but the remaining vertex are visited exactly once. The cost of the tour is sum of costs of edges on the tour.
Let g(i,S) be a length of the minimum shortest path, starting at vertex βiβ going through all the vertices in βsβ exactly once and terminating at vertex βiβ.
g(i,S)=min{Cij + g(j, {S}-{j}}
jΟ΅S
where S=V-{1}
If there are n vertices are there then (n-1)! Possible cycles can be formed. And maximum possible edges are 2n
Objective of the travelling sales person problem is to find the minimum shortest path/optimal solution.
Video Information
Views
258.2K
Likes
3.8K
Duration
31:01
Published
Sep 8, 2021
User Reviews
4.7
(51) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now