<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ngtkana</author_name>
  <author_url>https://blog.hatena.ne.jp/ngtkana/</author_url>
  <blog_title>ブログ名</blog_title>
  <blog_url>https://blog.ngtkana.com/</blog_url>
  <categories>
  </categories>
  <description>概要 Mancher のアルゴリズムは与えられた長さ $n$ の文字列 $s$ に対して、各文字の回文半径（その文字を中心とした回文の長さ引く $1$ 割る $2$）を計算するアルゴリズムです。これの出力要件とアルゴリズムを少し変えることで、実装の複雑さはほとんど変わらず、より使いやすいものにすることができます。 方針 各 $i$（$0 \le i \le 2n$）に対して、$l + r = i$ を満たす最大の回文区間 $[l, r[ \subseteq [0, n[$ の長さ $r - l$ を $A _ i$ と定め、これを計算することにしましょう。こうすると偶数長回文に対応しやすいです…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ngtkana.com%2Fentry%2F2024%2F03%2F17%2F034026&quot; title=&quot;Manacher&amp;#39;s algorithm でダミー文字を使わなくて済む方法 - ブログ名&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/ngtkana/20240530/20240530203622.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-03-17 03:40:26</published>
  <title>Manacher's algorithm でダミー文字を使わなくて済む方法</title>
  <type>rich</type>
  <url>https://blog.ngtkana.com/entry/2024/03/17/034026</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
