{"id":28468,"date":"2024-10-27T16:11:29","date_gmt":"2024-10-27T16:11:29","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=28468"},"modified":"2024-11-26T07:02:27","modified_gmt":"2024-11-26T07:02:27","slug":"%ec%bd%94%ed%8b%80%eb%a6%b0-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ec%82%bd%ec%9e%85-%ec%a0%95%eb%a0%ac","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/28468\/","title":{"rendered":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c"},"content":{"rendered":"<p><body><\/p>\n<p>\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \uc911 \ud558\ub098\uc778 <strong>\uc0bd\uc785 \uc815\ub82c(Insertion Sort)<\/strong>\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc0bd\uc785 \uc815\ub82c\uc740 \uac04\ub2e8\ud558\uace0 \uc774\ud574\ud558\uae30 \uc26c\uc6b4 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \ud2b9\ud788 \ub370\uc774\ud130\uac00 \uac70\uc758 \uc815\ub82c\ub418\uc5b4 \uc788\ub294 \uacbd\uc6b0 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc785\ub2c8\ub2e4. \ucf54\ud2c0\ub9b0(Kotlin) \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0bd\uc785 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. \uc0bd\uc785 \uc815\ub82c\uc774\ub780?<\/h2>\n<p>\uc0bd\uc785 \uc815\ub82c\uc740 \ub9ac\uc2a4\ud2b8\ub97c \uc815\ub82c\ud560 \ub54c, \ub370\uc774\ud130\ub97c \ud558\ub098\uc529 &#8216;\uc0bd\uc785&#8217;\ud558\uc5ec \uc815\ub82c\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \uac01 \uc694\uc18c\ub97c \uc815\ub82c\ub41c \ub9ac\uc2a4\ud2b8\uc640 \ube44\uad50\ud558\uc5ec \uc801\uc808\ud55c \uc704\uce58\uc5d0 \uc0bd\uc785\ud558\ub294 \ubc29\uc2dd\uc73c\ub85c \uc791\ub3d9\ud569\ub2c8\ub2e4. \uc774 \ubc29\ubc95\uc740 \uce74\ub4dc \uc815\ub82c\uacfc \uc720\uc0ac\ud558\uc5ec, \uac01 \uce74\ub4dc\ub97c \uc815\ub82c\ub41c \uc0c1\ud0dc\ub85c \uc720\uc9c0\ud558\uba70 \uce74\ub4dc\ub97c \ud558\ub098\uc529 \ucd94\uac00\ud574 \ub098\uac00\ub294 \ubaa8\uc2b5\uc744 \ub5a0\uc62c\ub9ac\uc2dc\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<h3>1.1 \uc54c\uace0\ub9ac\uc998 \uac1c\uc694<\/h3>\n<ul>\n<li>\uc815\ub82c\ub418\uc9c0 \uc54a\uc740 \ub9ac\uc2a4\ud2b8\uc5d0\uc11c \ud558\ub098\uc758 \uc694\uc18c\ub97c \uc120\ud0dd\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc120\ud0dd\ud55c \uc694\uc18c\ub97c \uc815\ub82c\ub41c \ub9ac\uc2a4\ud2b8\uc5d0 \uc801\uc808\ud55c \uc704\uce58\uc5d0 \uc0bd\uc785\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc774 \uacfc\uc815\uc744 \ubaa8\ub4e0 \uc694\uc18c\uac00 \uc815\ub82c\ub420 \ub54c\uae4c\uc9c0 \ubc18\ubcf5\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. \uc2dc\uac04 \ubcf5\uc7a1\ub3c4 \ubd84\uc11d<\/h2>\n<p>\uc0bd\uc785 \uc815\ub82c\uc758 \ud3c9\uade0 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 <strong>O(n\u00b2)<\/strong>\uc785\ub2c8\ub2e4. \ucd5c\uc545\uc758 \uacbd\uc6b0\uc5d0\ub3c4 O(n\u00b2)\uc774\uba70, \ucd5c\uc120\uc758 \uacbd\uc6b0\ub294 O(n)\uc785\ub2c8\ub2e4. \uc774\ub294 \ub9ac\uc2a4\ud2b8\uac00 \uac70\uc758 \uc815\ub82c\ub41c \uacbd\uc6b0\uc5d0 \uc0c1\ub300\uc801\uc73c\ub85c \uc131\ub2a5\uc774 \uc6b0\uc218\ud568\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4.<\/p>\n<h3>2.1 \uacf5\uac04 \ubcf5\uc7a1\ub3c4<\/h3>\n<p>\uc0bd\uc785 \uc815\ub82c\uc740 \ucd94\uac00\uc801\uc778 \uc800\uc7a5 \uacf5\uac04\uc744 \ud544\uc694\ub85c \ud558\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc5d0, \uacf5\uac04 \ubcf5\uc7a1\ub3c4\ub294 O(1)\uc785\ub2c8\ub2e4.<\/p>\n<h2>3. \uc0bd\uc785 \uc815\ub82c \uad6c\ud604\ud558\uae30<\/h2>\n<p>\uc774\uc81c \ucf54\ud2c0\ub9b0\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc0bd\uc785 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uba3c\uc800, \uc0bd\uc785 \uc815\ub82c\uc758 \uae30\ubcf8 \uad6c\uc870\ub97c \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>3.1 \uae30\ubcf8 \uc0bd\uc785 \uc815\ub82c \uad6c\ud604<\/h3>\n<pre><code>fun insertionSort(arr: IntArray) {\n        for (i in 1 until arr.size) {\n            val key = arr[i]\n            var j = i - 1\n            \n            \/\/ key\ubcf4\ub2e4 \ud070 \uc694\uc18c\ub97c \uc624\ub978\ucabd\uc73c\ub85c \uc774\ub3d9\n            while (j &gt;= 0 &amp;&amp; arr[j] &gt; key) {\n                arr[j + 1] = arr[j]\n                j--\n            }\n            arr[j + 1] = key\n        }\n    }<\/code><\/pre>\n<h4>3.1.1 \ucf54\ub4dc \uc124\uba85<\/h4>\n<p>\n        &#8211; <code>insertionSort<\/code> \ud568\uc218\ub294 \uc815\uc218 \ubc30\uc5f4 <code>arr<\/code>\uc744 \ubc1b\uc544 \uc815\ub82c\ud569\ub2c8\ub2e4.<br \/>\n        &#8211; \uccab \ubc88\uc9f8 \uc694\uc18c\ub294 \uc774\ubbf8 \uc815\ub82c\ub41c \uac83\uc73c\ub85c \uac04\uc8fc\ud558\ubbc0\ub85c, \ub450 \ubc88\uc9f8 \uc694\uc18c\ubd80\ud130 \uc2dc\uc791\ud558\uc5ec \ubc18\ubcf5\ud569\ub2c8\ub2e4. ( <code>for (i in 1 until arr.size)<\/code> \uad6c\ubb38 \uc0ac\uc6a9)<br \/>\n        &#8211; \ud604\uc7ac \ucc98\ub9ac\ud558\uace0 \uc788\ub294 \uc694\uc18c\ub97c <code>key<\/code>\ub85c \uc800\uc7a5\ud558\uace0, \uc774 \uc694\uc18c\ubcf4\ub2e4 \ud070 \uc694\uc18c\ub97c \ucc3e\uc544 \uc624\ub978\ucabd\uc73c\ub85c \uc774\ub3d9\uc2dc\ud0b5\ub2c8\ub2e4.<br \/>\n        &#8211; <code>while<\/code> \ub8e8\ud504\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc62c\ubc14\ub978 \uc704\uce58\ub97c \ucc3e\uc544 <code>key<\/code>\ub97c \uc0bd\uc785\ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>3.2 \uc0bd\uc785 \uc815\ub82c\uc744 \ud14c\uc2a4\ud2b8\ud574\ubcf4\uc790<\/h3>\n<p>\uc6b0\ub9ac\uac00 \uad6c\ud604\ud55c \uc0bd\uc785 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc744 \uc2e4\uc81c\ub85c \ud14c\uc2a4\ud2b8\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \ud14c\uc2a4\ud2b8 \ucf54\ub4dc\ub97c \ud3ec\ud568\ud55c \uc804\uccb4 \uc608\uc81c\uc785\ub2c8\ub2e4.<\/p>\n<pre><code>fun main() {\n        val arr = intArrayOf(5, 3, 1, 4, 2)\n        println(\"\uc815\ub82c \uc804 \ubc30\uc5f4: ${arr.joinToString(\", \")}\")\n        \n        insertionSort(arr)\n        \n        println(\"\uc815\ub82c \ud6c4 \ubc30\uc5f4: ${arr.joinToString(\", \")}\")\n    }<\/code><\/pre>\n<h4>3.2.1 \ud14c\uc2a4\ud2b8 \ucf54\ub4dc \uc124\uba85<\/h4>\n<p>\n        &#8211; <code>main<\/code> \ud568\uc218\uc5d0\uc11c \uc815\ub82c\ud560 \ubc30\uc5f4\uc744 \uc815\uc758\ud558\uace0 \ucd9c\ub825\ud569\ub2c8\ub2e4.<br \/>\n        &#8211; <code>insertionSort<\/code> \ud568\uc218\ub97c \ud638\ucd9c\ud55c \ud6c4, \uc815\ub82c\ub41c \ubc30\uc5f4\uc744 \ub2e4\uc2dc \ucd9c\ub825\ud569\ub2c8\ub2e4.\n    <\/p>\n<h2>4. \uc0bd\uc785 \uc815\ub82c\uc758 \uc7a5\ub2e8\uc810<\/h2>\n<h3>4.1 \uc7a5\uc810<\/h3>\n<ul>\n<li>\uad6c\ud604\uc774 \uac04\ub2e8\ud558\uace0 \uc774\ud574\ud558\uae30 \uc27d\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uc791\uc740 \ub370\uc774\ud130 \uc9d1\ud569\uc5d0 \ub300\ud574 \ud6a8\uc728\uc801\uc785\ub2c8\ub2e4.<\/li>\n<li>\ub370\uc774\ud130\uac00 \uac70\uc758 \uc815\ub82c\ub418\uc5b4 \uc788\ub294 \uacbd\uc6b0 \ub9e4\uc6b0 \ube60\ub985\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>4.2 \ub2e8\uc810<\/h3>\n<ul>\n<li>\uc2dc\uac04 \ubcf5\uc7a1\ub3c4\uac00 O(n\u00b2)\ub85c \ube44\ud6a8\uc728\uc801\uc785\ub2c8\ub2e4. \ub370\uc774\ud130\uac00 \ud074 \uacbd\uc6b0, \uc131\ub2a5\uc774 \uc800\ud558\ub429\ub2c8\ub2e4.<\/li>\n<li>\ub300\ub7c9\uc758 \ub370\uc774\ud130\ub97c \uc815\ub82c\ud560 \ub54c\ub294 \ubcd1\ud569 \uc815\ub82c\uc774\ub098 \ud035 \uc815\ub82c\uacfc \uac19\uc740 \ub2e4\ub978 \uc54c\uace0\ub9ac\uc998\uc774 \ub354 \uc801\ud569\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>5. \ub2e4\uc591\ud55c \ubcc0\ud615<\/h2>\n<p>\uc0bd\uc785 \uc815\ub82c\uc740 \ub2e4\uc591\ud55c \ubcc0\ud615\uc744 \ud1b5\ud574 \ud6a8\uc728\uc131\uc744 \ub192\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ub370\uc774\ud130\ub97c \uc0bd\uc785\ud560 \uc704\uce58\ub97c \ucc3e\ub294 \uacfc\uc815\uc5d0\uc11c \uc774\uc9c4 \ud0d0\uc0c9\uc744 \uc0ac\uc6a9\ud55c\ub2e4\uba74, \uc0bd\uc785\ud558\ub294 \uc791\uc5c5\uc744 \ucd5c\uc801\ud654\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>fun insertionSortBinary(arr: IntArray) {\n        for (i in 1 until arr.size) {\n            val key = arr[i]\n            var left = 0\n            var right = i - 1\n            \n            \/\/ \uc774\uc9c4 \ud0d0\uc0c9\uc744 \uc774\uc6a9\ud574 key\uc758 \uc0bd\uc785 \uc704\uce58\ub97c \ucc3e\uc74c\n            while (left &lt;= right) {\n                val mid = left + (right - left) \/ 2\n                if (arr[mid] &gt; key) right = mid - 1\n                else left = mid + 1\n            }\n            \n            \/\/ \ucc3e\uc740 \uc704\uce58\uc5d0 key \uc0bd\uc785\n            for (j in i downTo left + 1) {\n                arr[j] = arr[j - 1]\n            }\n            arr[left] = key\n        }\n    }<\/code><\/pre>\n<h4>5.1 \uc774\uc9c4 \uc0bd\uc785 \uc815\ub82c \uc124\uba85<\/h4>\n<p>\n        &#8211; <code>insertionSortBinary<\/code> \ud568\uc218\ub294 \uae30\uc874 \uc0bd\uc785 \uc815\ub82c\uacfc \ube44\uc2b7\ud558\uc9c0\ub9cc, \uc694\uc18c\ub97c \uc0bd\uc785\ud560 \uc704\uce58\ub97c \ucc3e\ub294 \uacfc\uc815\uc5d0\uc11c \uc774\uc9c4 \ud0d0\uc0c9\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4.<br \/>\n        &#8211; \uc774\uc9c4 \ud0d0\uc0c9\uc744 \ud1b5\ud574 \uc801\uc808\ud55c \uc0bd\uc785 \uc704\uce58\ub97c \ucc3e\uc544 \ud6a8\uc728\uc131\uc744 \ub192\uc774\ub294 \ud6a8\uacfc\uac00 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>6. \uc815\ub9ac<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc0bd\uc785 \uc815\ub82c\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uace0, \ucf54\ud2c0\ub9b0\uc73c\ub85c \uc9c1\uc811 \uad6c\ud604\ud574 \ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc0bd\uc785 \uc815\ub82c\uc740 \uac04\ub2e8\ud558\uba74\uc11c\ub3c4 \uc720\uc6a9\ud55c \uc54c\uace0\ub9ac\uc998\uc774\uba70, \ud2b9\ud788 \ub370\uc774\ud130\uac00 \uc801\uac70\ub098 \uac70\uc758 \uc815\ub82c\ub41c \uc0c1\ud0dc\uc77c \ub54c \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \ub300\ub7c9\uc758 \ub370\uc774\ud130\ub97c \ub2e4\ub8f0 \ub54c\ub294 \ub354 \ud6a8\uc728\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. \uc774\ub807\uac8c \ub2e4\uc591\ud55c \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc744 \uc774\ud574\ud558\uace0 \uc801\uc6a9\ud560 \uc218 \uc788\uc5b4\uc57c, \ub354\uc6b1 \ub098\uc740 \ud504\ub85c\uadf8\ub798\ubc0d \uae30\uc220\uc744 \uac16\ucd94\uac8c \ub420 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<h2>7. \ucc38\uace0 \uc790\ub8cc<\/h2>\n<p>\n        &#8211; \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \ud574\uc124\uc11c<br \/>\n        &#8211; \ucf54\ud2c0\ub9b0 \uacf5\uc2dd \ubb38\uc11c<br \/>\n        &#8211; \ub2e4\uc591\ud55c \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc758 \ube44\uad50 \ubd84\uc11d\n    <\/p>\n<p>\uac10\uc0ac\ud569\ub2c8\ub2e4! \ub2e4\uc74c \uac15\uc88c\uc5d0\uc11c\ub294 \ub2e4\ub978 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc5d0 \ub300\ud574 \ud559\uc2b5\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \uc911 \ud558\ub098\uc778 \uc0bd\uc785 \uc815\ub82c(Insertion Sort)\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc0bd\uc785 \uc815\ub82c\uc740 \uac04\ub2e8\ud558\uace0 \uc774\ud574\ud558\uae30 \uc26c\uc6b4 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \ud2b9\ud788 \ub370\uc774\ud130\uac00 \uac70\uc758 \uc815\ub82c\ub418\uc5b4 \uc788\ub294 \uacbd\uc6b0 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc785\ub2c8\ub2e4. \ucf54\ud2c0\ub9b0(Kotlin) \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0bd\uc785 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \uc0bd\uc785 \uc815\ub82c\uc774\ub780? \uc0bd\uc785 \uc815\ub82c\uc740 \ub9ac\uc2a4\ud2b8\ub97c \uc815\ub82c\ud560 \ub54c, \ub370\uc774\ud130\ub97c \ud558\ub098\uc529 &#8216;\uc0bd\uc785&#8217;\ud558\uc5ec \uc815\ub82c\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \uac01 \uc694\uc18c\ub97c \uc815\ub82c\ub41c \ub9ac\uc2a4\ud2b8\uc640 \ube44\uad50\ud558\uc5ec &hellip; <a href=\"https:\/\/atmokpo.com\/w\/28468\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28],"tags":[],"class_list":["post-28468","post","type-post","status-publish","format-standard","hentry","category-28"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/28468\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \uc911 \ud558\ub098\uc778 \uc0bd\uc785 \uc815\ub82c(Insertion Sort)\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc0bd\uc785 \uc815\ub82c\uc740 \uac04\ub2e8\ud558\uace0 \uc774\ud574\ud558\uae30 \uc26c\uc6b4 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \ud2b9\ud788 \ub370\uc774\ud130\uac00 \uac70\uc758 \uc815\ub82c\ub418\uc5b4 \uc788\ub294 \uacbd\uc6b0 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc785\ub2c8\ub2e4. \ucf54\ud2c0\ub9b0(Kotlin) \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0bd\uc785 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \uc0bd\uc785 \uc815\ub82c\uc774\ub780? \uc0bd\uc785 \uc815\ub82c\uc740 \ub9ac\uc2a4\ud2b8\ub97c \uc815\ub82c\ud560 \ub54c, \ub370\uc774\ud130\ub97c \ud558\ub098\uc529 &#8216;\uc0bd\uc785&#8217;\ud558\uc5ec \uc815\ub82c\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \uac01 \uc694\uc18c\ub97c \uc815\ub82c\ub41c \ub9ac\uc2a4\ud2b8\uc640 \ube44\uad50\ud558\uc5ec &hellip; \ub354 \ubcf4\uae30 &quot;\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/28468\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T16:11:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:02:27+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/28468\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28468\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c\",\"datePublished\":\"2024-10-27T16:11:29+00:00\",\"dateModified\":\"2024-11-26T07:02:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28468\/\"},\"wordCount\":23,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/28468\/\",\"url\":\"https:\/\/atmokpo.com\/w\/28468\/\",\"name\":\"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T16:11:29+00:00\",\"dateModified\":\"2024-11-26T07:02:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28468\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/28468\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/28468\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/28468\/","og_locale":"ko_KR","og_type":"article","og_title":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \uc911 \ud558\ub098\uc778 \uc0bd\uc785 \uc815\ub82c(Insertion Sort)\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc0bd\uc785 \uc815\ub82c\uc740 \uac04\ub2e8\ud558\uace0 \uc774\ud574\ud558\uae30 \uc26c\uc6b4 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \ud2b9\ud788 \ub370\uc774\ud130\uac00 \uac70\uc758 \uc815\ub82c\ub418\uc5b4 \uc788\ub294 \uacbd\uc6b0 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc785\ub2c8\ub2e4. \ucf54\ud2c0\ub9b0(Kotlin) \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0bd\uc785 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \uc0bd\uc785 \uc815\ub82c\uc774\ub780? \uc0bd\uc785 \uc815\ub82c\uc740 \ub9ac\uc2a4\ud2b8\ub97c \uc815\ub82c\ud560 \ub54c, \ub370\uc774\ud130\ub97c \ud558\ub098\uc529 &#8216;\uc0bd\uc785&#8217;\ud558\uc5ec \uc815\ub82c\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \uac01 \uc694\uc18c\ub97c \uc815\ub82c\ub41c \ub9ac\uc2a4\ud2b8\uc640 \ube44\uad50\ud558\uc5ec &hellip; \ub354 \ubcf4\uae30 \"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c\"","og_url":"https:\/\/atmokpo.com\/w\/28468\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T16:11:29+00:00","article_modified_time":"2024-11-26T07:02:27+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/28468\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/28468\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c","datePublished":"2024-10-27T16:11:29+00:00","dateModified":"2024-11-26T07:02:27+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/28468\/"},"wordCount":23,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/28468\/","url":"https:\/\/atmokpo.com\/w\/28468\/","name":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T16:11:29+00:00","dateModified":"2024-11-26T07:02:27+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/28468\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/28468\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/28468\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc0bd\uc785 \uc815\ub82c"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=28468"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28468\/revisions"}],"predecessor-version":[{"id":28469,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28468\/revisions\/28469"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=28468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=28468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=28468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}