{"categories":["Clojure","\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0"],"image_url":null,"published":"2016-05-08 07:42:14","width":"100%","title":"Clojure\u3067\u30d0\u30d6\u30eb\u30bd\u30fc\u30c8\uff12","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2016%2F05%2F08%2F074214\" title=\"Clojure\u3067\u30d0\u30d6\u30eb\u30bd\u30fc\u30c8\uff12 - Arantium Maestum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://zehnpaard.hatenablog.com/","url":"https://zehnpaard.hatenablog.com/entry/2016/05/08/074214","author_url":"https://blog.hatena.ne.jp/zehnpaard/","provider_url":"https://hatena.blog","version":"1.0","blog_title":"Arantium Maestum","type":"rich","description":"\u305d\u3046\u3044\u3048\u3070Clojure\u306esequence\u306fvector\u3058\u3083\u306a\u3044\u5834\u5408\u306f\u5927\u62b5count\u304cO(n)\u3060\u3063\u305f\u3002 bubble-sort\u3067O(n)\u56debubble\u3092\u547c\u3073\u3001bubble\u5185\u3067O(n)\u56de\u518d\u5e30\u3057\u3066\u3001\u305d\u306e\u4e2d\u3067O(1)\u306e\u4f5c\u696d\u3060\u3063\u305f\u306f\u305a\u304c\u3001(cond (>= i (count xs)))\u3067\u3082\u3046\u4e00\u56deO(n)\u306e\u4f5c\u696d\u3092\u5165\u308c\u3066\u3044\u305f\u306e\u3067O(n3)\u306b\u306a\u308b\u3002 \u89e3\u6c7a\u7b56\u3068\u3057\u3066\u3001count\u306fbubble\u5185\u3067\u4e00\u56de\u3060\u3051\u547c\u3093\u3067\u305d\u306e\u5f8c\u518d\u5e30\u3059\u308b\u305f\u3073\u306bdec\u3057\u3066\u3044\u304f\u3002 (defn bubble [xs i] (loop [left [] x1 (first xs) [x2 & right :as xs] (rest xs) j (co\u2026","provider_name":"Hatena Blog","author_name":"zehnpaard","height":"190"}