<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ishikado</author_name>
  <author_url>https://blog.hatena.ne.jp/ishikado/</author_url>
  <blog_title>ishikadoのアルゴリズム勉強録</blog_title>
  <blog_url>https://ishikado.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>editorial見た。 基本的にはx回進んだ時の遷移スコア最大値行列をべき乗法を用いて計算していく感じ。f(x + y)=f(x) op f(y) が成り立つ場合、f(x) op f(y)がちゃんと計算できれば、べき乗法で高速にf(n)を計算できる っぽい(O(logN*1回にかかる演算回数))。a^xとかも、op=*,f(x)=a^xと定義すると、f(x)*f(y)=a^(x+y)=f(x+y)となるので使える。 行列のn乗も同じ。べき乗法が使える条件はだいたい上の条件にマッチするかでとりあえず判断できる気がした。今回はf(x)を x step進んだ時のスコア最大値の行列と定義する。 する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fishikado.hatenadiary.org%2Fentry%2F20130908%2F1378628758&quot; title=&quot;SRM446 div1Medium - ishikadoのアルゴリズム勉強録&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-09-08 17:25:58</published>
  <title>SRM446 div1Medium</title>
  <type>rich</type>
  <url>https://ishikado.hatenadiary.org/entry/20130908/1378628758</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
