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 -...
  • Наука та технологія

КОМЕНТАРІ • 28

  • @aysearslan2819
    @aysearslan2819 3 роки тому +40

    nice jumpscare with the plane

  • @MrFlipflops4
    @MrFlipflops4 4 роки тому +11

    Give this man a raise!! So helpful!

  • @daanvandenberg4056
    @daanvandenberg4056 3 роки тому +5

    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.

  • @andrewhudson3723
    @andrewhudson3723 3 роки тому +3

    A great description of a hard problem.

  • @MarcoAurelio-zu7sd
    @MarcoAurelio-zu7sd 3 місяці тому +1

    Thank you for sharing!

  • @kushagragupta6354
    @kushagragupta6354 Рік тому +2

    that plane crash effect was amazing!!😂😂👍👍

    • @oggiai
      @oggiai  Рік тому

      glad you liked it!

  • @lorossi1196
    @lorossi1196 3 роки тому +9

    Jump to 8:48 to see what happens when you don't go the optimal route and the airplane runs out of fuel

  • @ZapOKill
    @ZapOKill 3 роки тому +2

    and now the trivial part of solving min-weight perfect match

    • @oggiai
      @oggiai  3 роки тому

      I was thinking of doing the 0-1 Knapsack problem next

  • @daanvandenberg4056
    @daanvandenberg4056 2 роки тому +5

    I think there might be a few slight mistakes in the OPT

    • @darrenyeung2234
      @darrenyeung2234 2 роки тому +2

      Yea its wrong. It should be OPT >= MST and Approximation

  • @ashrafyawar1039
    @ashrafyawar1039 2 роки тому

    @Joe James, could you help me out on generalized version of christofies algorithm ?

  • @christopherlperezcruz1507
    @christopherlperezcruz1507 3 роки тому

    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?

  • @dorsamotiallah3998
    @dorsamotiallah3998 2 роки тому +1

    Thank you so much ❤️

    • @kunalgarg1187
      @kunalgarg1187 2 роки тому

      Can you solve my problem...i have question related to this

  • @darbyl3872
    @darbyl3872 8 місяців тому

    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).

  • @kMuhammadRayanAli
    @kMuhammadRayanAli Рік тому +3

    8:50 why 😭😭😭😭

  • @srishtiarora6424
    @srishtiarora6424 3 роки тому

    how can we add edges of M to T? Won't it change the original graph?

    • @Kuchenklau
      @Kuchenklau Рік тому

      No, as the original graph is a complete graph. Any edges added have already been there in the first place.

  • @chinitatuntun
    @chinitatuntun 4 роки тому +1

    Thanks for the Traveling Sales PERSON problem! :)

  • @amerm.alnajada7442
    @amerm.alnajada7442 3 роки тому

    hello I found the exact solution of this problem . How can I send it to win a prize and get the right of possession?

  • @anuragturkar7927
    @anuragturkar7927 3 роки тому +3

    Why the plane crash, I thought it was an Ad.

    • @oggiai
      @oggiai  3 роки тому +8

      Oh, just for fun

  • @randy4443
    @randy4443 2 роки тому

    Didn't we violate the rule of not visiting a node more than once?

    • @oggiai
      @oggiai  2 роки тому +1

      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.