<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JunKobayashi</author_name>
  <author_url>https://blog.hatena.ne.jp/JunKobayashi/</author_url>
  <blog_title>JunKobayashi's Diary</blog_title>
  <blog_url>https://junkobayashi.hatenablog.com/</blog_url>
  <categories>
    <anon>木の直径</anon>
    <anon>double-sweep</anon>
    <anon>アルゴリズム学習</anon>
    <anon>基礎から徹底</anon>
  </categories>
  <description>※本記事は木の直径に関する基礎事項勉強シリーズ第1本である。次回は以下の記事となる。 junkobayashi.hatenablog.com 競技プログラミングにおける「木の直径」とは一般に以下のように定義される。 頂点集合、辺集合をそれぞれ\(V,E\)とする木\(T\)に属する任意の2頂点\(u,v\)について、この2頂点間の距離を\(d(u,v)\)と表記するとき、\[ \max_{u,v \in V} d(u,v) \] これを求めるためには「double-sweep」と呼ばれる、以下のような流れで処理をするアルゴリズムを利用すると良いことが既に広く知られている（が、納得のいく証明をし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2025%2F04%2F21%2F000636&quot; title=&quot;木の直径に関しての勉強1：double-sweepの正当性 - JunKobayashi&amp;#39;s Diary&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/J/JunKobayashi/20250420/20250420223628.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-04-21 00:06:36</published>
  <title>木の直径に関しての勉強1：double-sweepの正当性</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2025/04/21/000636</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
