<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>totofuga</author_name>
  <author_url>https://blog.hatena.ne.jp/totofuga/</author_url>
  <blog_title>totofugaのブログ</blog_title>
  <blog_url>https://totofuga.hateblo.jp/</blog_url>
  <categories>
    <anon>perl</anon>
    <anon>アルゴリズム</anon>
  </categories>
  <description>データが均等なランダムの場合loglogNの速度になるため、 binary searchより効率がよくなるが、 一つの計算時間は増えるため、データがかなり大きい場合にのみ有効。 やってることは、binary searchのメディアンの選び方を現在のデータから 有効そうな位置を取得してるだけ。 http://en.wikipedia.org/wiki/Interpolation_search perlの実装 my @a = map { int (rand() * 100) } 0..99; @a = sort { $a &lt;=&gt; $b } @a; my $i = find(\@a, 50); if…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftotofuga.hateblo.jp%2Fentry%2F2015%2F01%2F13%2F132419&quot; title=&quot;内部探索(interpolation search) - totofugaのブログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-01-13 13:24:19</published>
  <title>内部探索(interpolation search)</title>
  <type>rich</type>
  <url>https://totofuga.hateblo.jp/entry/2015/01/13/132419</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
