<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ymaru</author_name>
  <author_url>https://blog.hatena.ne.jp/ymaru/</author_url>
  <blog_title>つれづれ日記</blog_title>
  <blog_url>https://ymaru.hatenadiary.org/</blog_url>
  <categories>
    <anon>JAVA</anon>
    <anon>アルゴリズム</anon>
  </categories>
  <description>ソート済み領域にデータを挿入してソートする方法。 比較回数は最悪、O(n2) かかるが、それなりにソートされているデータに対してはバブルソートより早い。 public void sort(int[] data) { for (int i=1; i&lt;data.length; i++) { for (int j=i-1; 0&lt;=j; j--) { if (data[j] &gt; data[j+1]) { int tmp = data[j]; data[j] = data[j+1]; data[j+1] = tmp; } else { break; } } } }</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fymaru.hatenadiary.org%2Fentry%2F20081124%2Fp1&quot; title=&quot; 基本挿入法（Insertion Sort） - つれづれ日記&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>2008-11-24 00:00:00</published>
  <title> 基本挿入法（Insertion Sort）</title>
  <type>rich</type>
  <url>https://ymaru.hatenadiary.org/entry/20081124/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
