<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chang_app_dev</author_name>
  <author_url>https://blog.hatena.ne.jp/chang_app_dev/</author_url>
  <blog_title>note-tmk</blog_title>
  <blog_url>https://note-tmk.hatenablog.com/</blog_url>
  <categories>
    <anon>Recursion</anon>
    <anon>python</anon>
    <anon>アルゴリズム</anon>
  </categories>
  <description>選択ソート 配列から最小・最大値を探し，先頭要素と交換することを繰り返すことで整列を行う方法。 未整列部分の値を全て確認するので、等差数列的に計算数が加算され、時間計算量は0(n2)必要になる。 def selection_sort(arr): # 結果を出力するリスト result = arr for i in range(len(result)): # 未整列部分の中から最小値を探す for j in range(i + 1, len(result)): if result[i] &gt; result[j]: tmp = result[i] result[i] = result[j] resu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnote-tmk.hatenablog.com%2Fentry%2F2024%2F01%2F29%2F083852&quot; title=&quot;【Python】選択ソート、挿入ソートの実装 - note-tmk&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.image.st-hatena.com/image/square/adad63b72f1d6545b2ba2538c3fc2923b2fd5989/backend=imagemagick;height=80;version=1;width=80/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Fcircle%2Fofficial-circle-icon%2Fcomputers.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-01-29 08:38:52</published>
  <title>【Python】選択ソート、挿入ソートの実装</title>
  <type>rich</type>
  <url>https://note-tmk.hatenablog.com/entry/2024/01/29/083852</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
