<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takamizawa46</author_name>
  <author_url>https://blog.hatena.ne.jp/takamizawa46/</author_url>
  <blog_title>やわらかテック</blog_title>
  <blog_url>https://www.okb-shelf.work/</blog_url>
  <categories>
    <anon>Elixir</anon>
    <anon>Algorithm</anon>
  </categories>
  <description>二分探索の生まれた背景 昇順ソート済みのリスト(配列)から特定の値のindex番号を取得したいとする #8のindex番号はいくつ?(7が知りたい) item = 8 lst = [1,2,3,4,5,6,7,8,9,10] これを単純に配列の頭から探索していくと index番号の0から初めて7番目、すなわち8回目の試行で特定のindex番号を取得することができる ここまで一見、何も問題が無いように思えるが、以下の場合を考えてみる lst = [1,2,3,4, .... 10000000] item = 9999999 先ほどのように単純に配列の頭から探索をしたとすると最低でも9999999…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.okb-shelf.work%2Fentry%2Fbinary_search_elixir&quot; title=&quot;【実装コード有り】アルゴリズム初心者がElixirで二分探索のコードを実装するまで - やわらかテック&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/t/takamizawa46/20210828/20210828085458.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-04-30 12:23:10</published>
  <title>【実装コード有り】アルゴリズム初心者がElixirで二分探索のコードを実装するまで</title>
  <type>rich</type>
  <url>https://www.okb-shelf.work/entry/binary_search_elixir</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
