<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deve68</author_name>
  <author_url>https://blog.hatena.ne.jp/deve68/</author_url>
  <blog_title>コードの恵み</blog_title>
  <blog_url>https://deve68.hatenadiary.org/</blog_url>
  <categories>
    <anon>algorithm</anon>
  </categories>
  <description>ゲーム おはじきを使ったゲームをやっていた。 おはじきに 1 から 100 までの数字を書き缶に入れておく。 缶を振ってから10個とりだして並べる。 両手の指を使っておはじきを入れ替えながら数字の順に並べる。 一応競争なんだけど一斉にやったりしているわけではないので好き勝手に遊んでいた。 すぐに効率的なやり方に気がついた。 1番小さい数字を探して1番左と入れ替える。 2番目に小さい数字を探して左から2番目と入れ替える。 要するに Selection sort だ。 他のみんなもその方法だったのだけれどもひとりだけ違っていた。 こまめに入れ替えている。Bubble sort だった。 彼は言った…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdeve68.hatenadiary.org%2Fentry%2F20120219%2F1329657093&quot; title=&quot; Sorting by swap distance - コードの恵み&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>2012-02-19 22:11:33</published>
  <title> Sorting by swap distance</title>
  <type>rich</type>
  <url>https://deve68.hatenadiary.org/entry/20120219/1329657093</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
