TSP Approximation Algorithms | Solving the Traveling Salesman Problem
Вставка
- Опубліковано 1 лип 2024
- This video explores the Traveling Salesman Problem, and explains two approximation algorithms for finding a solution in polynomial time. The first method explained is a 2-approximation that uses a minimum spanning tree (MST) and depth first search (DFS). The second method is Christofides' algorithm, which combines perfect matching with a minimum spanning tree. TSP is a classic NP-Hard problem.
I recommend you first watch the following videos on MSTs and DFS, which I reference in this video:
► Kruskal's Algorithm: • Kruskals Algorithm for...
► Prim's Algorithm, • Prims Algorithm for Mi...
► Depth First Search, • Depth-First Search Alg...
Some of my other related graph videos:
► Dijkstras Intro • Dijkstras Algorithm fo...
► Dijkstras on Directed Graph • Dijkstras Algorithm Di...
► Bellman-Ford • Bellman-Ford Single-So...
► Bellman-Ford Example • Bellman Ford Algorithm...
► Floyd-Warshall • Floyd Warshall Graph T...
► Floyd-Warshall on Undirected Graph • Floyd Warshall Algorit...
► Breadth First Search • Breadth First Search -... - Наука та технологія
nice jumpscare with the plane
Give this man a raise!! So helpful!
I think you're doing great work in making these algorithms widely understandable for a broad class of people. Might use your video's sometime in a course for my students or so.
A great description of a hard problem.
Thank you for sharing!
that plane crash effect was amazing!!😂😂👍👍
glad you liked it!
Jump to 8:48 to see what happens when you don't go the optimal route and the airplane runs out of fuel
LOL>
and now the trivial part of solving min-weight perfect match
I was thinking of doing the 0-1 Knapsack problem next
I think there might be a few slight mistakes in the OPT
Yea its wrong. It should be OPT >= MST and Approximation
@Joe James, could you help me out on generalized version of christofies algorithm ?
Doing Hungarian Method on excel. Using row and column reduction then penalty for each 0. When the penalties are equal I end up marking both bc I can't figure how to choose. Will this affect my optimality?
Thank you so much ❤️
Can you solve my problem...i have question related to this
What algorithm allows a node to be visited more than once? The one-time restriction does not always give the optimal route (in real life).
8:50 why 😭😭😭😭
how can we add edges of M to T? Won't it change the original graph?
No, as the original graph is a complete graph. Any edges added have already been there in the first place.
Thanks for the Traveling Sales PERSON problem! :)
hello I found the exact solution of this problem . How can I send it to win a prize and get the right of possession?
Why the plane crash, I thought it was an Ad.
Oh, just for fun
Didn't we violate the rule of not visiting a node more than once?
No, the goal is to find a circuit that visits each node exactly once. But we may visit each node multiple times to find that circuit.