<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>asi1024</author_name>
  <author_url>https://blog.hatena.ne.jp/asi1024/</author_url>
  <blog_title>(o_o)</blog_title>
  <blog_url>https://asi1024.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>蟻本には再帰で書かれた Segment Tree が載っているが，うまく書けば再帰を使わず書くこともできる．再帰あり gist9219b197f2a177931e54627003b51c6f再帰なし gistfe04fcefcc5581d60da6150a621d549e それぞれの方法で長さ 200000 でランダムな 1000000 クエリに対して RMQ を書き，実行時間を比較した． (GNU C++ 5.1.0 で -O2 最適化オプションを付けた) それぞれの 1 クエリあたりの時間は以下のようになった． 実行時間 (ns) 再帰あり 179 再帰なし 74 再帰なしだとかなり速く，…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fasi1024.hatenablog.com%2Fentry%2F2017%2F02%2F24%2F144843&quot; title=&quot;再帰を使わない Segment Tree - (o_o)&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>2017-02-24 14:48:43</published>
  <title>再帰を使わない Segment Tree</title>
  <type>rich</type>
  <url>https://asi1024.hatenablog.com/entry/2017/02/24/144843</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
