<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>アルゴリズム</anon>
    <anon>アルゴリズム・パズル</anon>
  </categories>
  <description>次のような問題があるとします。 学校でクラブ活動をするのに、選んだクラブの人数の合計が 150人以下になるようにするとします。クラブの想定人数とそれが使う敷地面積は次のように与えられています。 クラブを幾つか適当に選ぶとき、必要な敷地面積の総和の最大値を求めなさい。 Ruby で解いてみました。総当り法でも解けますが、動的計画法を使いました。 number = [40, 30, 24, 20, 14, 16, 15, 40, 10, 12] square = [11000, 8000, 400, 800, 900, 1800, 1000, 7000, 100, 300] area = Arra…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2017%2F05%2F26%2F162601&quot; title=&quot;ナップサック問題（Ruby） - Camera Obscura&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>http://img.f.hatena.ne.jp/images/fotolife/o/obelisk2/20170526/20170526161808.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-26 16:26:01</published>
  <title>ナップサック問題（Ruby）</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2017/05/26/162601</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
