<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>noshi91</author_name>
  <author_url>https://blog.hatena.ne.jp/noshi91/</author_url>
  <blog_title>noshi91のメモ</blog_title>
  <blog_url>https://noshi91.hatenablog.com/</blog_url>
  <categories>
    <anon>アルゴリズム</anon>
  </categories>
  <description>概要 シンプルなアルゴリズムですが、Level Ancestor Problem 自体の知名度が低そうなので宣伝を兼ねて紹介します。 Level Ancestor Level Ancestor とは、根付き木について定義される概念です。 の祖先であって、深さが であるもの ( の深さ ) の深さが分かれば「 から根の方向に 回親を辿った頂点は何か」というクエリを Level Ancestor を求める問題に帰着できます。 逆もまた帰着可能なので、多くの状況でこれらは同一の問題とみなすことが出来ます。 アルゴリズム 頂点の根付き木と 個のクエリ が与えられたとき、全てのクエリの結果を で得るアル…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoshi91.hatenablog.com%2Fentry%2F2019%2F09%2F22%2F114149&quot; title=&quot;Offline Level Ancestor Θ(N+Q) - noshi91のメモ&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/noshi91/20190922/20190922114110.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-09-22 11:41:49</published>
  <title>Offline Level Ancestor Θ(N+Q)</title>
  <type>rich</type>
  <url>https://noshi91.hatenablog.com/entry/2019/09/22/114149</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
