<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ganmacs</author_name>
  <author_url>https://blog.hatena.ne.jp/ganmacs/</author_url>
  <blog_title>memo-mode</blog_title>
  <blog_url>https://ganmacs.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>アルゴリズム</anon>
  </categories>
  <description>アリ本にのっていたLISを全探索，メモ化でも解いたので覚え書き LISは与えられた配列をaとするとi&gt;jかつa[i]&gt;a[j]を満たす部分列のこと DPバージョン dp[i]はiより前のjの中で制約(i&gt;j かつ a[i]&gt;a[j])を満たすdp[j]の一番大きい値の+1となる． 例えば，a = {4, 2, 12, 3, 1, 5, 8, 10, 3, 9, 2, 11}でi=5のとき jの範囲は0&lt;=j&lt;5までなので，dp[0&lt;=j&lt;5]のなかで制約を満たす一番大きい値+1がdp[5]の値となる つまり，今回の場合はa[5]=5なので制約を満たすのはdp[j=3] (a[5] &gt; a[3]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fganmacs.hatenablog.com%2Fentry%2F2014%2F02%2F08%2F230140&quot; title=&quot;LIS(最長増加部分列)を全探索，メモ化でといた - memo-mode&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>2014-02-08 23:01:40</published>
  <title>LIS(最長増加部分列)を全探索，メモ化でといた</title>
  <type>rich</type>
  <url>https://ganmacs.hatenablog.com/entry/2014/02/08/230140</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
