<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aspirator</author_name>
  <author_url>https://blog.hatena.ne.jp/aspirator/</author_url>
  <blog_title>aspirator’s blog</blog_title>
  <blog_url>https://aspirator.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>こんにちは。 平衡二分探索木で2-optを高速化する方法について研究したので、本記事ではそれについて書こうと思います。 2-optとは 2-optは巡回セールスマン問題(TSP)の近似解を求めるヒューリスティックアルゴリズムです。 下図のように、サイクルに対してランダムに二つのパスを選び、パスを組み替えた方がサイクルの長さが短くなる場合、パスを組み替えます。具体的には、A→B + C→D &gt; A→C + B→D の時、辺ABと辺CDを辺ACと辺BDに組み替えます。 しかし、辺を張り直すだけではサイクルにならないので、B~CまたはD~Aの間の順序を逆にする必要があります。 2-opt法では順路を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faspirator.hateblo.jp%2Fentry%2F2021%2F03%2F25%2F195611&quot; title=&quot;平衡二分探索木を使った2-optの効率化について - aspirator’s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/aspirator/20210325/20210325193100.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-03-25 19:56:11</published>
  <title>平衡二分探索木を使った2-optの効率化について</title>
  <type>rich</type>
  <url>https://aspirator.hateblo.jp/entry/2021/03/25/195611</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
