<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KousakuinX</author_name>
  <author_url>https://blog.hatena.ne.jp/KousakuinX/</author_url>
  <blog_title>地上の洞窟</blog_title>
  <blog_url>https://under-overworld.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>全探索では解けないような難しい問題を解くのに欠かせない「動的計画法」について考える。 動的計画法とは 「フィボナッチ数列」の計算 愚直な計算 動的計画法を使う計算 実装 Non-DP DP(メモ化再帰) DP(ループ) →②「ナップサック問題」 動的計画法とは そもそも動的計画法が何なのかをざっくり言うと、 「計算結果をメモしながら解くと、効率よく問題を解ける」 という、問題を解くための指針である。「それのどこが動的で計画なのよ？」と思うだろう。 正直、名前だけではイメージは付きにくい。 動的は「その時に決まる」という意味であり、 「その時その時に計画する」というのはもはや無計画に見える。&quot;D…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funder-overworld.hatenablog.jp%2Fentry%2F2024%2F10%2F09%2F140149&quot; title=&quot;【Ruby】動的計画法を考える①「フィボナッチ数列」 - 地上の洞窟&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/K/KousakuinX/20241212/20241212172201.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-10-09 14:01:49</published>
  <title>【Ruby】動的計画法を考える①「フィボナッチ数列」</title>
  <type>rich</type>
  <url>https://under-overworld.hatenablog.jp/entry/2024/10/09/140149</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
