{"title":"Manacher's algorithm \u3067\u30c0\u30df\u30fc\u6587\u5b57\u3092\u4f7f\u308f\u306a\u304f\u3066\u6e08\u3080\u65b9\u6cd5","author_url":"https://blog.hatena.ne.jp/ngtkana/","blog_url":"https://blog.ngtkana.com/","url":"https://blog.ngtkana.com/entry/2024/03/17/034026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ngtkana.com%2Fentry%2F2024%2F03%2F17%2F034026\" title=\"Manacher&#39;s algorithm \u3067\u30c0\u30df\u30fc\u6587\u5b57\u3092\u4f7f\u308f\u306a\u304f\u3066\u6e08\u3080\u65b9\u6cd5 - \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>","published":"2024-03-17 03:40:26","width":"100%","description":"\u6982\u8981 Mancher \u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u4e0e\u3048\u3089\u308c\u305f\u9577\u3055 $n$ \u306e\u6587\u5b57\u5217 $s$ \u306b\u5bfe\u3057\u3066\u3001\u5404\u6587\u5b57\u306e\u56de\u6587\u534a\u5f84\uff08\u305d\u306e\u6587\u5b57\u3092\u4e2d\u5fc3\u3068\u3057\u305f\u56de\u6587\u306e\u9577\u3055\u5f15\u304f $1$ \u5272\u308b $2$\uff09\u3092\u8a08\u7b97\u3059\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u3059\u3002\u3053\u308c\u306e\u51fa\u529b\u8981\u4ef6\u3068\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u5c11\u3057\u5909\u3048\u308b\u3053\u3068\u3067\u3001\u5b9f\u88c5\u306e\u8907\u96d1\u3055\u306f\u307b\u3068\u3093\u3069\u5909\u308f\u3089\u305a\u3001\u3088\u308a\u4f7f\u3044\u3084\u3059\u3044\u3082\u306e\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u65b9\u91dd \u5404 $i$\uff08$0 \\le i \\le 2n$\uff09\u306b\u5bfe\u3057\u3066\u3001$l + r = i$ \u3092\u6e80\u305f\u3059\u6700\u5927\u306e\u56de\u6587\u533a\u9593 $[l, r[ \\subseteq [0, n[$ \u306e\u9577\u3055 $r - l$ \u3092 $A _ i$ \u3068\u5b9a\u3081\u3001\u3053\u308c\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u3046\u3059\u308b\u3068\u5076\u6570\u9577\u56de\u6587\u306b\u5bfe\u5fdc\u3057\u3084\u3059\u3044\u3067\u3059\u2026","provider_name":"Hatena Blog","categories":[],"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/n/ngtkana/20240530/20240530203622.png","blog_title":"\u30d6\u30ed\u30b0\u540d","author_name":"ngtkana","provider_url":"https://hatena.blog","version":"1.0","type":"rich","height":"190"}