<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peroon</author_name>
  <author_url>https://blog.hatena.ne.jp/peroon/</author_url>
  <blog_title>perogram</blog_title>
  <blog_url>https://perogram.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>始点からうさぎ(fast)と亀(slow)を走らせる fast += 2; slow += 1; 出発からm秒後に出会ったとする ループがあるときは上記の状態になっている ループの始点をOとする ループの一周の長さ：μ ループに入るまでの道の長さ：λ Oからd進んだところでうさぎと亀が出会ったとする この時まだOもdも不明 0&lt;= d &lt;= μ-1 出会った位置からλだけ移動すると、d+λ = m = aμ なので（！？）Oに(何週かするかもしれないが)到達する ∵ d = m - λ そこからλ進むとmなので、Oからm進んだことになる m = aμなので、Oに到着する これらの考察を用いると…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2Fcycle_detection&quot; title=&quot;フロイドの循環検出法 Floyd&amp;#39;s cycle-finding algorithm - perogram&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/p/peroon/20190413/20190413020858.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-04-13 02:18:00</published>
  <title>フロイドの循環検出法 Floyd's cycle-finding algorithm</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/cycle_detection</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
