<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m_seki</author_name>
  <author_url>https://blog.hatena.ne.jp/m_seki/</author_url>
  <blog_title>@m_seki の</blog_title>
  <blog_url>https://druby.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>珠玉のプログラミング 本質を見抜いたアルゴリズムとデータ構造作者: ジョン・ベントリー,小林健一郎出版社/メーカー: 丸善出版発売日: 2014/02/28メディア: 単行本（ソフトカバー）この商品を含むブログ (1件) を見るあれ？復刊されてたのか！私が持ってるのはピアソンのやつ。ちょっと前のCodeIQの問題を（題意に反してちゃんと）と解こうとしていて、この本のサンプリング問題を思い出しました。 この章は母集団からn個の値をソート済みで重複なく取り出す安い方法の話。 N = 10 M = 3 select = M remaining = N while select &gt; 0 if rand…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdruby.hatenablog.com%2Fentry%2F20150317%2F1426589334&quot; title=&quot;珠玉のプログラミングのサンプリング問題のでかいケース - @m_seki の&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://images-fe.ssl-images-amazon.com/images/I/51uc1auqQoL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-03-17 19:48:54</published>
  <title>珠玉のプログラミングのサンプリング問題のでかいケース</title>
  <type>rich</type>
  <url>https://druby.hatenablog.com/entry/20150317/1426589334</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
