{"blog_title":"\u6570\u5b66/\u7af6\u30d7\u30ed\u30e1\u30e2","title":"LIS\u3068\u306f","url":"https://tutuz.hateblo.jp/entry/2018/06/18/214827","author_url":"https://blog.hatena.ne.jp/d_tutuz/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftutuz.hateblo.jp%2Fentry%2F2018%2F06%2F18%2F214827\" title=\"LIS\u3068\u306f - \u6570\u5b66/\u7af6\u30d7\u30ed\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","version":"1.0","image_url":null,"author_name":"d_tutuz","provider_url":"https://hatena.blog","published":"2018-06-18 21:48:27","height":"190","blog_url":"https://tutuz.hateblo.jp/","description":"LIS LIS\u3068\u306fLongest Increase Subsequence \u306e\u7565\u3067\u6700\u9577\u5897\u52a0\u90e8\u5206\u5217\u3068\u547c\u3070\u308c\u308b\u554f\u984c\u3067\u3059\u3002\u5897\u52a0\u90e8\u5206\u5217\u3068\u306f\u3059\u3079\u3066\u306e i < j \u3067 a_i < a_j \u3068\u306a\u3063\u3066\u3044\u308b\u90e8\u5206\u5217\u306e\u3053\u3068\u3067\u3059\u3002 \u7c21\u5358\u306a\u4f8b\u3092\u898b\u3066\u307f\u307e\u3059\u3002 a_n = {1,3,5,2,4,6} \u3068\u3044\u3046\u6570\u5217 a_n \u3092\u8003\u3048\u307e\u3059\u3002 \u3053\u306e\u6642\u306e\u6700\u9577\u5897\u52a0\u90e8\u5206\u5217\u306e\u9577\u3055\u306f 4 (1,3,4,6),(1,2,4,6) \u3067\u3059\u3002 \u3053\u306e\u554f\u984c\u306fDP\u3067 O(N logN) \u3067\u89e3\u3051\u307e\u3059\u3002 \u8003\u3048\u65b9\u306f\u3001\u540c\u3058\u9577\u3055\u306e\u5897\u52a0\u90e8\u5206\u5217\u3067\u3042\u308c\u3070\u6700\u7d42\u8981\u7d20\u304c\u5c0f\u3055\u3044\u307b\u3046\u304c\u305d\u306e\u5f8c\u306b\u6709\u5229\u3067\u3059\u3002\u4f8b\u3048\u3070\u9577\u30554\u306e2\u3064\u306e\u5897\u52a0\u90e8\u5206\u5217\u304c\u3042\u308b\u3068\u3057\u3066\u3001b_n={100,200,300,4\u2026","categories":[],"type":"rich","provider_name":"Hatena Blog"}