<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>重心分解 Centroid Decomposition 資料1 資料2 資料3 「木上のクエリ」と「木全体についての数え上げ・最大最小」で使える。実装方針が全然違うので、別物で考えたほうがいい。 木上のクエリでは同心円状に伝搬させることが出来るのが良い （「部分木-&gt;オイラーツアー, パス-&gt;HL分解, 同心円状-&gt;重心分解」というイメージ） 木全体についての数え上げは重心から毎回dfsをしていく（深さがO(logN)で各深さでのdfsをまとめるとO(N)となり、O(NlogN)となる） 問題 重心分解のみを使うもの CF190 Ciel the Commander（入門） 木上のクエリ CF…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2017%2F12%2F19%2F152143&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-19 15:21:43</published>
  <title>競技プログラミングにおける重心分解問題まとめ</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2017/12/19/152143</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
