Algorithms for NP-Hard Problems (Section 20.4: The 2-OPT Heuristic for the TSP) [Part 2/2]

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

Комментарии • 7

  • @coemgeincraobhach236
    @coemgeincraobhach236 4 года назад +1

    Thanks for that! really well explained!

  • @rippi0815
    @rippi0815 3 года назад +1

    How do you calculate the costs of the green tours?

  • @timgluz
    @timgluz 4 года назад

    Question, what's the described algorithm to iterate over k-opt pairs?
    is it something like this:
    for i in 1 to n-4:
    for j in i+2 to n:
    pair1 = (i, i+1)
    pair2 = (j, j+1)
    Thank you

  • @NS-gr9cy
    @NS-gr9cy 3 года назад

    Why the network with score 23 not tried to improve further?

    • @eng.i8823
      @eng.i8823 3 года назад

      Yeah right!

    • @sayc1333
      @sayc1333 Год назад +1

      the professor is showing you all the possible changes at each iteration, but he explains at 2:36 that for now we are just taking the first discovered improvement

  • @RayRay-yt5pe
    @RayRay-yt5pe 2 года назад

    Thank you so much