<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>agw</author_name>
  <author_url>https://blog.hatena.ne.jp/agw/</author_url>
  <blog_title>agwの日記</blog_title>
  <blog_url>https://agw.hatenablog.jp/</blog_url>
  <categories>
    <anon>Algorithm</anon>
  </categories>
  <description>さて、先日のエントリにて、メディアンを加味した2d木の構築を紹介しました。コードの見通しを簡潔にする目的もあり、メディアンの選択にはsort()を用いました。 #!/usr/bin/python -t from operator import itemgetter from random import seed, randint def build(points, d=1): pts = list(points) if not pts: return None h = len(pts) // 2 pts.sort(key=itemgetter(d)) d = (d + 1) % 2 retur…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fagw.hatenablog.jp%2Fentry%2F20090428%2F1240993676&quot; title=&quot; kd-tree Visualization(3) - agwの日記&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/a/agw/20090428/20090428002207.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-04-28 17:27:56</published>
  <title> kd-tree Visualization(3)</title>
  <type>rich</type>
  <url>https://agw.hatenablog.jp/entry/20090428/1240993676</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
