<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d_tutuz</author_name>
  <author_url>https://blog.hatena.ne.jp/d_tutuz/</author_url>
  <blog_title>数学/競プロメモ</blog_title>
  <blog_url>https://tutuz.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>文字列の探索について 文字列の探索について 力まかせ法 考え方 計算量 実装 BM法 考え方 不一致の場合にパターンをずらす文字数について 計算量 実装 以下ではパターンを 文字、テキストを 文字とします。 力まかせ法 考え方 テキストの先頭とパターンを重ねます。パターンとテキストが一致すれば探索は成功。不一致の場合は、パターンを1文字分だけ後ろにずらして、再びパターンとテキストを比較します。この手順をテキストの最後尾になるまで繰り返します。 計算量 最悪のケースは、テキストが&quot;aaaaaaaab&quot;で、パターンが&quot;aaab&quot;というようになっている場合です。 パターンとテキストを重ね合わせる位置…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftutuz.hateblo.jp%2Fentry%2F2018%2F01%2F22%2F234928&quot; title=&quot;文字列探索のアルゴリズム - 数学/競プロメモ&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>http://chart.apis.google.com/chart?cht=tx&amp;chl=%20m</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-22 23:49:28</published>
  <title>文字列探索のアルゴリズム</title>
  <type>rich</type>
  <url>https://tutuz.hateblo.jp/entry/2018/01/22/234928</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
