{"id":27843,"date":"2024-10-27T15:19:48","date_gmt":"2024-10-27T15:19:48","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27843"},"modified":"2024-11-26T07:14:33","modified_gmt":"2024-11-26T07:14:33","slug":"%ec%9e%90%eb%b0%94%ec%8a%a4%ed%81%ac%eb%a6%bd%ed%8a%b8-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ec%84%a0%ed%83%9d-%ec%a0%95%eb%a0%ac","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27843\/","title":{"rendered":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \uc815\ub82c"},"content":{"rendered":"<div class=\"blog-post\">\n<h2>1. \uc11c\ub860<\/h2>\n<p>\ucf54\ub529 \ud14c\uc2a4\ud2b8, \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \ud480\uc774\uc5d0 \uc788\uc5b4\uc11c \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc740 \ud544\uc218\uc801\uc73c\ub85c \uc775\ud600\uc57c \ud560 \uc8fc\uc81c\uc785\ub2c8\ub2e4. \ub2e4\uc591\ud55c \ubc30\uc5f4\uc758 \uc815\ub82c \ubc29\ubc95 \uc911\uc5d0\uc11c \uc120\ud0dd \uc815\ub82c(Selection Sort)\uc740 \uadf8 \uad6c\ud604\uc774 \uac04\ub2e8\ud558\uace0, \uadf8 \uacfc\uc815\uc774 \uc9c1\uad00\uc801\uc774\uae30 \ub54c\ubb38\uc5d0 \ub9ce\uc740 \uc0ac\ub78c\ub4e4\uc5d0\uac8c \ucd08\uae30 \ub2e8\uacc4\uc5d0\uc11c \ubc30\uc6b0\uae30 \uc88b\uc740 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c \uc5ec\uaca8\uc9d1\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc120\ud0dd \uc815\ub82c\uc758 \uac1c\ub150\uacfc \uc6d0\ub9ac, \uadf8\ub9ac\uace0 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub85c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>2. \uc120\ud0dd \uc815\ub82c(Selection Sort)\ub780?<\/h2>\n<p>\uc120\ud0dd \uc815\ub82c\uc740 \ubc30\uc5f4\uc744 \uc815\ub82c\ud558\ub294 \uac04\ub2e8\ud55c \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \uc8fc\uc5b4\uc9c4 \ubc30\uc5f4\uc744 \ubc18\ubcf5\ud558\uba74\uc11c \uac00\uc7a5 \uc791\uc740 \uac12(\ub610\ub294 \uac00\uc7a5 \ud070 \uac12\uc744) \ucc3e\uc544\uc11c \ud604\uc7ac \uc704\uce58\uc640 \uad50\ud658\ud558\ub294 \ubc29\uc2dd\uc73c\ub85c \ub3d9\uc791\ud569\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \ub9e4 \ud68c\uc804\ub9c8\ub2e4 \uc815\ub82c\ub41c \ubd80\ubd84\uacfc \uc815\ub82c\ub418\uc9c0 \uc54a\uc740 \ubd80\ubd84\uc73c\ub85c \ub098\ub204\uc5b4 \uc9c4\ud589\ub429\ub2c8\ub2e4.<\/p>\n<h3>2.1. \ub3d9\uc791 \uc6d0\ub9ac<\/h3>\n<p>\uc120\ud0dd \uc815\ub82c\uc740 \ub2e4\uc74c\uc758 \ubc29\ubc95\uc73c\ub85c \ub3d9\uc791\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ubc30\uc5f4\uc758 \uccab \ubc88\uc9f8 \uc694\uc18c\ubd80\ud130 \uc2dc\uc791\ud558\uc5ec, \ubc30\uc5f4\uc758 \ub098\uba38\uc9c0 \uc694\uc18c \uc911\uc5d0\uc11c \uac00\uc7a5 \uc791\uc740 \uc694\uc18c\ub97c \ucc3e\uc544 \uccab \ubc88\uc9f8 \uc694\uc18c\uc640 \uad50\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li>\ub450 \ubc88\uc9f8 \uc694\uc18c\ubd80\ud130 \uac19\uc740 \uacfc\uc815\uc744 \ubc18\ubcf5\ud558\uc5ec, \ub450 \ubc88\uc9f8 \uc694\uc18c\uc640 \ub450 \ubc88\uc9f8 \uc774\ud6c4\uc758 \uc694\uc18c \uc911\uc5d0\uc11c \uac00\uc7a5 \uc791\uc740 \uc694\uc18c\ub97c \uad50\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc774 \uacfc\uc815\uc744 \ubc30\uc5f4\uc758 \ub9c8\uc9c0\ub9c9 \uc694\uc18c\uae4c\uc9c0 \ubc18\ubcf5\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>2.2. \uc120\ud0dd \uc815\ub82c\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4<\/h3>\n<p>\uc120\ud0dd \uc815\ub82c\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 \ucd5c\uc545\uc758 \uacbd\uc6b0\uc640 \ud3c9\uade0 \uacbd\uc6b0 \ubaa8\ub450 O(n^2)\uc785\ub2c8\ub2e4. \uc774\ub294 \ubc30\uc5f4\uc758 \ud06c\uae30\uc5d0 \ub530\ub77c \uc131\ub2a5\uc774 \uae09\uaca9\ud788 \uc800\ud558\ub420 \uc218 \uc788\ub2e4\ub294 \uac83\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4. \ub530\ub77c\uc11c \uc120\ud0dd \uc815\ub82c\uc740 \uc18c\uaddc\ubaa8 \ub370\uc774\ud130 \uc138\ud2b8\uc5d0\uc11c \uc0ac\uc6a9\ud560 \ub54c \uac00\uc7a5 \uc801\ud569\ud569\ub2c8\ub2e4.<\/p>\n<h2>3. \uc120\ud0dd \uc815\ub82c \uad6c\ud604\ud558\uae30<\/h2>\n<p>\uc774\ubc88 \uc7a5\uc5d0\uc11c\ub294 \uc120\ud0dd \uc815\ub82c\uc744 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub85c \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>3.1. \uae30\ubcf8 \uad6c\ud604<\/h3>\n<p>\uc544\ub798\uc758 \ucf54\ub4dc\ub294 \uc120\ud0dd \uc815\ub82c\uc744 \uad6c\ud604\ud55c \uae30\ubcf8\uc801\uc778 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ud568\uc218\uc785\ub2c8\ub2e4:<\/p>\n<pre><code>\nfunction selectionSort(arr) {\n    const n = arr.length;\n\n    for (let i = 0; i &lt; n - 1; i++) {\n        \/\/ \ud604\uc7ac \uc778\ub371\uc2a4(i)\ub97c \ud6c4\ubcf4\ub85c \ucd08\uae30\ud654\n        let minIndex = i;\n\n        \/\/ \ub098\uba38\uc9c0 \ubc30\uc5f4\uc744 \uc2a4\uce94\ud558\uc5ec \uac00\uc7a5 \uc791\uc740 \uc694\uc18c\uc758 \uc778\ub371\uc2a4\ub97c \ucc3e\uc74c\n        for (let j = i + 1; j &lt; n; j++) {\n            if (arr[j] &lt; arr[minIndex]) {\n                minIndex = j; \/\/ \ub354 \uc791\uc740 \uac12\uc744 \ucc3e\uc73c\uba74, minIndex\ub97c \uc5c5\ub370\uc774\ud2b8\n            }\n        }\n\n        \/\/ \ud6c4\ubcf4\uac00 \ub41c \ucd5c\uc18c\uac12\uacfc \ud604\uc7ac \uc704\uce58(i)\ub97c \uad50\ud658\n        \/\/ \ud604\uc7ac \uc704\uce58\uac00 \ucd5c\uc18c\uac12\uc774 \uc544\ub2c8\ub77c\uba74 \uad50\ud658\n        if (minIndex !== i) {\n            [arr[i], arr[minIndex]] = [arr[minIndex], arr[i]];\n        }\n    }\n\n    return arr;\n}\n\n\/\/ \uc0ac\uc6a9 \uc608\nconst unsortedArray = [64, 25, 12, 22, 11];\nconst sortedArray = selectionSort(unsortedArray);\nconsole.log(sortedArray); \/\/ [11, 12, 22, 25, 64]\n    <\/code><\/pre>\n<h3>3.2. \ucf54\ub4dc \uc124\uba85<\/h3>\n<p>\uc704\uc758 \ucf54\ub4dc\ub294 \uc120\ud0dd \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. \ud568\uc218\ub97c \ud558\ub098\uc529 \ubd84\uc11d\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n<ol>\n<li><code>const n = arr.length;<\/code>: \ubc30\uc5f4\uc758 \uae38\uc774\ub97c \uad6c\ud569\ub2c8\ub2e4.<\/li>\n<li><code>for (let i = 0; i &lt; n - 1; i++)<\/code>: \uccab \ubc88\uc9f8 \ub8e8\ud504\ub294 \ubc30\uc5f4\uc758 \uac01 \uc694\uc18c\ub97c \uc21c\ud68c\ud569\ub2c8\ub2e4.<\/li>\n<li><code>let minIndex = i;<\/code>: \ud604\uc7ac \uac00\uc7a5 \uc791\uc740 \uac12\uc758 \uc778\ub371\uc2a4\ub97c \ucd08\uae30\ud654\ud569\ub2c8\ub2e4.<\/li>\n<li><code>for (let j = i + 1; j &lt; n; j++)<\/code>: \ub450 \ubc88\uc9f8 \ub8e8\ud504\ub294 \ub098\uba38\uc9c0 \ubc30\uc5f4\uc744 \uc21c\ud68c\ud558\uba74\uc11c \uac00\uc7a5 \uc791\uc740 \uc694\uc18c\uc758 \uc778\ub371\uc2a4\ub97c \ucc3e\uc2b5\ub2c8\ub2e4.<\/li>\n<li><code>if (arr[j] &lt; arr[minIndex]) { minIndex = j; }<\/code>: \ubc30\uc5f4\uc758 \ud604\uc7ac \uc694\uc18c\uac00 \ud604\uc7ac\uc758 \ucd5c\uc18c\uac12\ubcf4\ub2e4 \uc791\uc73c\uba74, \ucd5c\uc18c\uac12\uc758 \uc778\ub371\uc2a4\ub97c \uc5c5\ub370\uc774\ud2b8\ud569\ub2c8\ub2e4.<\/li>\n<li><code>if (minIndex !== i) { [arr[i], arr[minIndex]] = [arr[minIndex], arr[i]]; }<\/code>: \ucd5c\uc885\uc801\uc73c\ub85c \ucd5c\uc18c\uac12\uc774 \ud604\uc7ac \uc778\ub371\uc2a4 \uc704\uce58\uc5d0 \uc5c6\uc73c\uba74, \uad50\ud658\uc744 \uc218\ud589\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h2>4. \ucd5c\uc801\ud654\ub41c \uc120\ud0dd \uc815\ub82c<\/h2>\n<p>\uae30\ubcf8 \uc120\ud0dd \uc815\ub82c\uc740 \ucd5c\uc801\ud654\ub97c \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubd88\ud544\uc694\ud55c \uad50\ud658\uc744 \uc904\uc774\ub294 \ubc29\ubc95\uc744 \ucd94\uac00\ud558\uc5ec \uc131\ub2a5\uc744 \uc870\uae08 \ub354 \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc815\ub82c\uc774 \uc644\ub8cc\ub41c \uc0c1\ud0dc\ub97c \ud655\uc778\ud558\uc5ec \ub354 \uc774\uc0c1\uc758 \uad50\ud658\uc774 \ud544\uc694 \uc5c6\uc744 \uacbd\uc6b0 \ub8e8\ud504\ub97c \uc885\ub8cc\ud558\uace0 \uc131\ub2a5\uc744 \ub192\uc774\ub294 \ubc29\ubc95\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798 \ucf54\ub4dc\ub294 \ucd5c\uc801\ud654\ub41c \uc120\ud0dd \uc815\ub82c\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4:<\/p>\n<pre><code>\nfunction optimizedSelectionSort(arr) {\n    const n = arr.length;\n    let isSorted = true;\n\n    for (let i = 0; i &lt; n - 1; i++) {\n        let minIndex = i;\n\n        for (let j = i + 1; j &lt; n; j++) {\n            if (arr[j] &lt; arr[minIndex]) {\n                minIndex = j;\n                isSorted = false; \/\/ \uad50\ud658\uc774 \ubc1c\uc0dd\ud560 \uac83\uc784\uc744 \uba54\ubaa8\n            }\n        }\n\n        if (minIndex !== i) {\n            [arr[i], arr[minIndex]] = [arr[minIndex], arr[i]];\n        }\n\n        \/\/ \ubc30\uc5f4\uc774 \uc774\ubbf8 \uc815\ub82c\ub41c \uacbd\uc6b0 \ub8e8\ud504 \uc885\ub8cc\n        if (isSorted) break;\n    }\n\n    return arr;\n}\n\n\/\/ \uc0ac\uc6a9 \uc608\nconst unsortedArray = [64, 25, 12, 22, 11];\nconst sortedArray = optimizedSelectionSort(unsortedArray);\nconsole.log(sortedArray); \/\/ [11, 12, 22, 25, 64]\n    <\/code><\/pre>\n<h3>4.1. \ucd5c\uc801\ud654 \uc124\uba85<\/h3>\n<p>\ucd5c\uc801\ud654\ub41c \uc120\ud0dd \uc815\ub82c \ud568\uc218\ub294 \ucd08\uae30\ud654 \ub2e8\uacc4\uc5d0\uc11c <code>let isSorted = true;<\/code>\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubc30\uc5f4\uc774 \uc815\ub82c\ub418\uc5c8\uc74c\uc744 \ucd94\uc801\ud569\ub2c8\ub2e4. \uac01 \ubc18\ubcf5 \ud6c4, \ubc30\uc5f4\uc5d0 \uc2e4\uc81c \uad50\ud658\uc774 \uc788\uc5c8\ub2e4\uba74 \ud574\ub2f9 \ud50c\ub798\uadf8\ub97c <code>false<\/code>\ub85c \uc124\uc815\ud569\ub2c8\ub2e4. \ub9cc\uc57d \ud604\uc7ac \ubc18\ubcf5\uc5d0\uc11c \uad50\ud658\uc774 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\uc558\ub2e4\uba74 \ubc30\uc5f4\uc774 \uc644\uc804\ud788 \uc815\ub82c\ub418\uc5c8\uc73c\uba70, \ubc18\ubcf5\ubb38\uc744 \uc885\ub8cc\ud569\ub2c8\ub2e4.<\/p>\n<h2>5. \uc2e4\uc6a9\uc801\uc778 \uc608\uc81c<\/h2>\n<p>\uc120\ud0dd \uc815\ub82c\uc744 \ud65c\uc6a9\ud558\uc5ec \uc2e4\uc81c\ub85c \ub370\uc774\ud130\ub97c \uc815\ub82c\ud558\ub294 \uc608\uc81c\ub97c \ubcf4\uc5ec\ub4dc\ub9ac\uaca0\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ud559\uc0dd\uc758 \uc131\uc801 \ub370\uc774\ud130\ub97c \uc815\ub82c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \ud559\uc0dd\ub4e4\uc758 \uc131\uc801\uc744 \ube44\uad50\ud558\uac70\ub098 \ud544\uc694\ud55c \uc815\ubcf4\ub97c \uc81c\uacf5\ud558\ub294 \ub370 \ub3c4\uc6c0\uc744 \uc904 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>\nconst students = [\n    { name: \"Emily\", score: 85 },\n    { name: \"David\", score: 92 },\n    { name: \"Sophie\", score: 76 },\n    { name: \"John\", score: 89 },\n    { name: \"Max\", score: 90 },\n];\n\nfunction selectionSortByScore(arr) {\n    const n = arr.length;\n    for (let i = 0; i &lt; n - 1; i++) {\n        let minIndex = i;\n        for (let j = i + 1; j &lt; n; j++) {\n            if (arr[j].score &lt; arr[minIndex].score) {\n                minIndex = j;\n            }\n        }\n        if (minIndex !== i) {\n            [arr[i], arr[minIndex]] = [arr[minIndex], arr[i]];\n        }\n    }\n    return arr;\n}\n\nconst sortedStudents = selectionSortByScore(students);\nconsole.log(sortedStudents);\n    <\/code><\/pre>\n<h3>5.1. \uc2e4\uc6a9\uc801 \uc608\uc81c \uc124\uba85<\/h3>\n<p>\uc704 \ucf54\ub4dc\ub294 \ud559\uc0dd\uc758 \uc131\uc801\uc744 \uae30\uc900\uc73c\ub85c \ubc30\uc5f4\uc744 \uc815\ub82c\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4. \uac01 \ud559\uc0dd\uc740 \uc774\ub984\uacfc \uc810\uc218 \uac1d\uccb4\ub85c \ud45c\ud604\ub418\uba70, <code>selectionSortByScore<\/code> \ud568\uc218\ub97c \ud1b5\ud574 \uc131\uc801 \uc624\ub984\ucc28\uc21c\uc73c\ub85c \uc815\ub82c\ub418\uc5b4 \uacb0\uacfc\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h2>6. \uacb0\ub860<\/h2>\n<p>\uc120\ud0dd \uc815\ub82c\uc740 \uad6c\ud604\uc774 \uac04\ub2e8\ud558\uc5ec \ucd08\ubcf4\uc790\ub4e4\uc774 \uc54c\uace0\ub9ac\uc998\uc758 \uae30\ubcf8 \uc6d0\ub9ac\ub97c \uc774\ud574\ud558\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ubc29\ubc95\uc785\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \uc120\ud0dd \uc815\ub82c\uc740 O(n\u00b2)\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub97c \uac00\uc9c0\uace0 \uc788\uae30 \ub54c\ubb38\uc5d0 \ub300\uaddc\ubaa8 \ub370\uc774\ud130\uc758 \uacbd\uc6b0 \ud6a8\uc728\uc774 \ub5a8\uc5b4\uc9c0\uba70, \uc2e4\uc81c \ud504\ub85c\ub355\uc158 \ud658\uacbd\uc5d0\uc11c\ub294 \ud035 \uc815\ub82c, \ubcd1\ud569 \uc815\ub82c\uacfc \uac19\uc740 \ub354 \ub098\uc740 \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. \ud558\uc9c0\ub9cc, \uc120\ud0dd \uc815\ub82c\uc744 \ud1b5\ud574 \uc54c\uace0\ub9ac\uc998\uc758 \uae30\ucd08\ub97c \ub2e4\uc9c0\ub294 \uac83\uc740 \uc911\uc694\ud55c \ud559\uc2b5 \uacfc\uc815\uc785\ub2c8\ub2e4. \uc55e\uc73c\ub85c \ucf54\ub529 \ud14c\uc2a4\ud2b8 \uc900\ube44\uc5d0 \uc774 \uc9c0\uc2dd\uc774 \ub9ce\uc740 \ub3c4\uc6c0\uc774 \ub418\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. \uc11c\ub860 \ucf54\ub529 \ud14c\uc2a4\ud2b8, \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \ud480\uc774\uc5d0 \uc788\uc5b4\uc11c \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc740 \ud544\uc218\uc801\uc73c\ub85c \uc775\ud600\uc57c \ud560 \uc8fc\uc81c\uc785\ub2c8\ub2e4. \ub2e4\uc591\ud55c \ubc30\uc5f4\uc758 \uc815\ub82c \ubc29\ubc95 \uc911\uc5d0\uc11c \uc120\ud0dd \uc815\ub82c(Selection Sort)\uc740 \uadf8 \uad6c\ud604\uc774 \uac04\ub2e8\ud558\uace0, \uadf8 \uacfc\uc815\uc774 \uc9c1\uad00\uc801\uc774\uae30 \ub54c\ubb38\uc5d0 \ub9ce\uc740 \uc0ac\ub78c\ub4e4\uc5d0\uac8c \ucd08\uae30 \ub2e8\uacc4\uc5d0\uc11c \ubc30\uc6b0\uae30 \uc88b\uc740 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c \uc5ec\uaca8\uc9d1\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc120\ud0dd \uc815\ub82c\uc758 \uac1c\ub150\uacfc \uc6d0\ub9ac, \uadf8\ub9ac\uace0 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub85c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. \uc120\ud0dd \uc815\ub82c(Selection Sort)\ub780? \uc120\ud0dd \uc815\ub82c\uc740 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27843\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \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":[26],"tags":[],"class_list":["post-27843","post","type-post","status-publish","format-standard","hentry","category-26"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \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\/27843\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \uc11c\ub860 \ucf54\ub529 \ud14c\uc2a4\ud2b8, \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \ud480\uc774\uc5d0 \uc788\uc5b4\uc11c \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc740 \ud544\uc218\uc801\uc73c\ub85c \uc775\ud600\uc57c \ud560 \uc8fc\uc81c\uc785\ub2c8\ub2e4. \ub2e4\uc591\ud55c \ubc30\uc5f4\uc758 \uc815\ub82c \ubc29\ubc95 \uc911\uc5d0\uc11c \uc120\ud0dd \uc815\ub82c(Selection Sort)\uc740 \uadf8 \uad6c\ud604\uc774 \uac04\ub2e8\ud558\uace0, \uadf8 \uacfc\uc815\uc774 \uc9c1\uad00\uc801\uc774\uae30 \ub54c\ubb38\uc5d0 \ub9ce\uc740 \uc0ac\ub78c\ub4e4\uc5d0\uac8c \ucd08\uae30 \ub2e8\uacc4\uc5d0\uc11c \ubc30\uc6b0\uae30 \uc88b\uc740 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c \uc5ec\uaca8\uc9d1\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc120\ud0dd \uc815\ub82c\uc758 \uac1c\ub150\uacfc \uc6d0\ub9ac, \uadf8\ub9ac\uace0 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub85c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. \uc120\ud0dd \uc815\ub82c(Selection Sort)\ub780? \uc120\ud0dd \uc815\ub82c\uc740 &hellip; \ub354 \ubcf4\uae30 &quot;\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \uc815\ub82c&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27843\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T15:19:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:14:33+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\/27843\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27843\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \uc815\ub82c\",\"datePublished\":\"2024-10-27T15:19:48+00:00\",\"dateModified\":\"2024-11-26T07:14:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27843\/\"},\"wordCount\":8,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/27843\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27843\/\",\"name\":\"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T15:19:48+00:00\",\"dateModified\":\"2024-11-26T07:14:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27843\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27843\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27843\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \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":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \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\/27843\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \uc11c\ub860 \ucf54\ub529 \ud14c\uc2a4\ud2b8, \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \ud480\uc774\uc5d0 \uc788\uc5b4\uc11c \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc740 \ud544\uc218\uc801\uc73c\ub85c \uc775\ud600\uc57c \ud560 \uc8fc\uc81c\uc785\ub2c8\ub2e4. \ub2e4\uc591\ud55c \ubc30\uc5f4\uc758 \uc815\ub82c \ubc29\ubc95 \uc911\uc5d0\uc11c \uc120\ud0dd \uc815\ub82c(Selection Sort)\uc740 \uadf8 \uad6c\ud604\uc774 \uac04\ub2e8\ud558\uace0, \uadf8 \uacfc\uc815\uc774 \uc9c1\uad00\uc801\uc774\uae30 \ub54c\ubb38\uc5d0 \ub9ce\uc740 \uc0ac\ub78c\ub4e4\uc5d0\uac8c \ucd08\uae30 \ub2e8\uacc4\uc5d0\uc11c \ubc30\uc6b0\uae30 \uc88b\uc740 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c \uc5ec\uaca8\uc9d1\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc120\ud0dd \uc815\ub82c\uc758 \uac1c\ub150\uacfc \uc6d0\ub9ac, \uadf8\ub9ac\uace0 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub85c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. \uc120\ud0dd \uc815\ub82c(Selection Sort)\ub780? \uc120\ud0dd \uc815\ub82c\uc740 &hellip; \ub354 \ubcf4\uae30 \"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \uc815\ub82c\"","og_url":"https:\/\/atmokpo.com\/w\/27843\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T15:19:48+00:00","article_modified_time":"2024-11-26T07:14:33+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\/27843\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27843\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \uc815\ub82c","datePublished":"2024-10-27T15:19:48+00:00","dateModified":"2024-11-26T07:14:33+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27843\/"},"wordCount":8,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/27843\/","url":"https:\/\/atmokpo.com\/w\/27843\/","name":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T15:19:48+00:00","dateModified":"2024-11-26T07:14:33+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27843\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27843\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27843\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \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\/27843","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=27843"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27843\/revisions"}],"predecessor-version":[{"id":27844,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27843\/revisions\/27844"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}