{"provider_name":"Hatena Blog","blog_url":"https://totofuga.hateblo.jp/","image_url":null,"blog_title":"totofuga\u306e\u30d6\u30ed\u30b0","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftotofuga.hateblo.jp%2Fentry%2F2015%2F01%2F13%2F132419\" title=\"\u5185\u90e8\u63a2\u7d22(interpolation search) - totofuga\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u5185\u90e8\u63a2\u7d22(interpolation search)","categories":["perl","\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0"],"url":"https://totofuga.hateblo.jp/entry/2015/01/13/132419","type":"rich","description":"\u30c7\u30fc\u30bf\u304c\u5747\u7b49\u306a\u30e9\u30f3\u30c0\u30e0\u306e\u5834\u5408loglogN\u306e\u901f\u5ea6\u306b\u306a\u308b\u305f\u3081\u3001 binary search\u3088\u308a\u52b9\u7387\u304c\u3088\u304f\u306a\u308b\u304c\u3001 \u4e00\u3064\u306e\u8a08\u7b97\u6642\u9593\u306f\u5897\u3048\u308b\u305f\u3081\u3001\u30c7\u30fc\u30bf\u304c\u304b\u306a\u308a\u5927\u304d\u3044\u5834\u5408\u306b\u306e\u307f\u6709\u52b9\u3002 \u3084\u3063\u3066\u308b\u3053\u3068\u306f\u3001binary search\u306e\u30e1\u30c7\u30a3\u30a2\u30f3\u306e\u9078\u3073\u65b9\u3092\u73fe\u5728\u306e\u30c7\u30fc\u30bf\u304b\u3089 \u6709\u52b9\u305d\u3046\u306a\u4f4d\u7f6e\u3092\u53d6\u5f97\u3057\u3066\u308b\u3060\u3051\u3002 http://en.wikipedia.org/wiki/Interpolation_search perl\u306e\u5b9f\u88c5 my @a = map { int (rand() * 100) } 0..99; @a = sort { $a <=> $b } @a; my $i = find(\\@a, 50); if\u2026","provider_url":"https://hatena.blog","author_name":"totofuga","height":"190","published":"2015-01-13 13:24:19","author_url":"https://blog.hatena.ne.jp/totofuga/","width":"100%"}