<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
    <anon>数学</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>べき乗の計算は、 1のみの要素からはじめて、要素同士足し算してその結果を加える、 といった操作と同じである。 例えば、15乗を計算するとき、 a -&gt; a2 -&gt; a3 -&gt; a6 -&gt; a12 -&gt; a15 一般的なアルゴリズムのバイナリ法より1回少なくて済む。 これは、 {1} -&gt; {1,2} -&gt; {1,2,3} -&gt; {1,2,3,6} -&gt; {1,2,3,6,12} -&gt; {1,2,3,6,12,15} ということである。 しらみつぶしに調べる。 ただし、バイナリ法よりよくならないと分かったら、 その枝の探索はやめる。 また、足し算の一方は一番大きな要素とすればよい。 3〜255乗…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20080330%2Fp1&quot; title=&quot;効率的なべき乗の計算（2） - inamori’s diary&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/i/inamori/20080330/20080330130221.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-03-30 00:00:00</published>
  <title>効率的なべき乗の計算（2）</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20080330/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
