{"published":"2024-11-29 23:15:18","title":"ARC 164 E - Segment-Tree Optimization \u306e\u5225\u89e3\u6cd5\uff08Knuth\u2013Yao speedup\uff09","author_name":"ngtkana","width":"100%","blog_url":"https://blog.ngtkana.com/","blog_title":"\u30d6\u30ed\u30b0\u540d","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/n/ngtkana/20241129/20241129180221.png","url":"https://blog.ngtkana.com/entry/2024/11/29/231518","provider_url":"https://hatena.blog","categories":[],"type":"rich","height":"190","description":"\u554f\u984c ARC 164 E - Segment-Tree Optimization \u89e3\u6cd5 mark \u304c\u3072\u3068\u3064\u3082\u306a\u3044\u3068\u304d\uff08\u3064\u307e\u308a\u3059\u3079\u3066\u306e\u30af\u30a8\u30ea\u304c\u5168\u4f53\u30af\u30a8\u30ea\u306e\u3068\u304d\uff09\u306f\u7279\u5225\u3067\u3001\u7b54\u3048\u306f $(0, q)$ \u3068\u306a\u308a\u307e\u3059\u304c\u3001\u305d\u3046\u3067\u306a\u3044\u3068\u304d\u3092\u8003\u3048\u307e\u3057\u3087\u3046\u3002 \u533a\u9593 $[l, r[$ \u306b\u5bfe\u3059\u308b\u30af\u30a8\u30ea\u304c\u6765\u308b\u305f\u3073\u306b\u3001$[l - 1, l + 1[$ \u3092\u542b\u3080\u7bc0\u70b9\u5168\u3066\u306b mark \u3057\u3001\u307e\u305f $[r - 1, r + 1[$ \u3092\u542b\u3080\u7bc0\u70b9\u5168\u3066\u306b\u3082 mark \u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304d mark \u306e\u6df1\u3055\u306e\u6700\u5927\u5024\u3092 $d$\u3001\u6df1\u3055 $d$ \u306e mark \u306e\u500b\u6570\u306e\u6700\u5c0f\u5024\u3092 $c$ \u3068\u304a\u304f\u3068\u3001\u7b54\u3048\u306f $(1 + d, 2c)$ \u306e\u6700\u5c0f\u5024\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ngtkana.com%2Fentry%2F2024%2F11%2F29%2F231518\" title=\"ARC 164 E - Segment-Tree Optimization \u306e\u5225\u89e3\u6cd5\uff08Knuth\u2013Yao speedup\uff09 - \u30d6\u30ed\u30b0\u540d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/ngtkana/"}