<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>grimm-grimm</author_name>
  <author_url>https://blog.hatena.ne.jp/grimm-grimm/</author_url>
  <blog_title>grimm-grimmのうつ病克服日記</blog_title>
  <blog_url>https://grimm-grimm.hatenadiary.org/</blog_url>
  <categories>
    <anon>アルゴリズム</anon>
  </categories>
  <description>貪欲アルゴリズムの証明方法を調べていた。参考は、アルゴリズムデザインで、試しに 硬貨のの種類と枚数 金額A が、与えられたとき、最小の硬貨の枚数で金額Aを達成したい。これを求めるアルゴリズムを求めよ。ただし、そのような支払方法は少なくとも一つは存在する。 これを求めるアルゴリズムは、SICPとか、プログラミングコンテストチャレンジブックとかに乗っていて、最大の硬貨から使用していく貪欲アルゴリズムが知られている。 簡単そうなので試しに証明したい。＊で、まずは何を考えたらいいんだ？まず、このアルゴリズムが、正しい答えを出力する、つまり、ちょうど金額Aになる硬貨の集合を出力することを証明しないといけ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgrimm-grimm.hatenadiary.org%2Fentry%2F20110329%2F1301401406&quot; title=&quot;最小の硬貨の枚数、貪欲法 - grimm-grimmのうつ病克服日記&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>2011-03-29 21:23:26</published>
  <title>最小の硬貨の枚数、貪欲法</title>
  <type>rich</type>
  <url>https://grimm-grimm.hatenadiary.org/entry/20110329/1301401406</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
