<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>phyllo_algo</author_name>
  <author_url>https://blog.hatena.ne.jp/phyllo_algo/</author_url>
  <blog_title>れどこだ目指すよ！　(；`・ω・）</blog_title>
  <blog_url>https://phyllo-algo.hatenadiary.org/</blog_url>
  <categories>
    <anon>その他</anon>
  </categories>
  <description>問題 1〜Nまで書かれたカードがシャッフルされた状態で積んである。 1回の操作で、各カードを1枚抜いて任意の場所に挿入することができる。 カードを上から昇順にするために必要な操作回数を答える。N 考え方 探索を考えると、各数字を上に持ってくるか下に持ってくるかという操作が考えられる。 が、任意の数字を任意のところに挿入できるので、その数字を除去する問題と考えられる。 「何個かの数字を除去して昇順になる数字を選ぶ最小回数」を考える。 これは「最長増加部分列(LIS)」と呼ばれる問題。 i番目の数字が部分列の最後尾だと考えた場合、最長で何個の数字が部分列に含まれるかを考えられれば、i+1番目でも同…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphyllo-algo.hatenadiary.org%2Fentry%2F20150128%2F1422465156&quot; title=&quot;ABC#006 D.トランプ挿入ソート - れどこだ目指すよ！　(；`・ω・）&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>2015-01-28 02:12:36</published>
  <title>ABC#006 D.トランプ挿入ソート</title>
  <type>rich</type>
  <url>https://phyllo-algo.hatenadiary.org/entry/20150128/1422465156</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
