{"id":28126,"date":"2024-10-27T15:31:58","date_gmt":"2024-10-27T15:31:58","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=28126"},"modified":"2024-11-26T07:08:52","modified_gmt":"2024-11-26T07:08:52","slug":"%ec%8a%a4%ec%9c%84%ed%94%84%ed%8a%b8-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ea%b5%ac%ea%b0%84-%ed%95%a9-%ea%b5%ac%ed%95%98%ea%b8%b0-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/28126\/","title":{"rendered":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2"},"content":{"rendered":"<p><body><\/p>\n<article>\n<section>\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\n                \uc8fc\uc5b4\uc9c0\ub294 \uc815\uc218 \ubc30\uc5f4 <code>arr<\/code>\uc640 \ucffc\ub9ac \ubc30\uc5f4 <code>queries<\/code>\uac00 \uc788\ub2e4. <code>arr<\/code>\uc758 \uac01 \ucffc\ub9ac\ub294<br \/>\n                \ub450 \uac1c\uc758 \uc778\ub371\uc2a4\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uc73c\uba70, \uc774 \uc778\ub371\uc2a4\ub97c \ud1b5\ud574 <code>arr<\/code>\uc758 \ubd80\ubd84 \ubc30\uc5f4\uc758 \ud569\uc744 \uad6c\ud574\uc57c \ud55c\ub2e4.<br \/>\n                \uac01 \ucffc\ub9ac\ub294 (\uc2dc\uc791 \uc778\ub371\uc2a4, \ub05d \uc778\ub371\uc2a4) \ud615\ud0dc\ub85c \uc81c\uacf5\ub418\uba70, \ubd80\ubd84 \ubc30\uc5f4\uc758 \ud569\uc744 \ube60\ub974\uac8c \uacc4\uc0b0\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744<br \/>\n                \uad6c\ud604\ud574\uc57c \ud55c\ub2e4.\n            <\/p>\n<h3>\uc785\ub825<\/h3>\n<ul>\n<li>\uc815\uc218 \ubc30\uc5f4 <code>arr<\/code>: \uae38\uc774\ub294 N (1 \u2264 N \u2264 100,000)<\/li>\n<li>\uc815\uc218 \ubc30\uc5f4 <code>queries<\/code>: \uae38\uc774\ub294 M (1 \u2264 M \u2264 100,000), \uac01 \uc6d0\uc18c\ub294 (x, y) \ud615\ud0dc\ub85c \uc8fc\uc5b4\uc9d0<\/li>\n<\/ul>\n<h3>\ucd9c\ub825<\/h3>\n<ul>\n<li><code>queries<\/code>\uc758 \uac01 \ucffc\ub9ac\uc5d0 \ub300\ud55c \ubd80\ubd84 \ubc30\uc5f4\uc758 \ud569\uc744 \ubc30\uc5f4\ub85c \ubc18\ud658<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>\uc608\uc81c<\/h2>\n<h3>\uc785\ub825<\/h3>\n<pre><code>\narr = [1, 2, 3, 4, 5]\nqueries = [(0, 2), (1, 3), (2, 4)]\n            <\/code><\/pre>\n<h3>\ucd9c\ub825<\/h3>\n<pre><code>\n[6, 9, 12]\n            <\/code><\/pre>\n<h3>\uc124\uba85<\/h3>\n<p>\n                &#8211; \uccab \ubc88\uc9f8 \ucffc\ub9ac (0, 2): arr[0] + arr[1] + arr[2] = 1 + 2 + 3 = 6<br \/>\n                &#8211; \ub450 \ubc88\uc9f8 \ucffc\ub9ac (1, 3): arr[1] + arr[2] + arr[3] = 2 + 3 + 4 = 9<br \/>\n                &#8211; \uc138 \ubc88\uc9f8 \ucffc\ub9ac (2, 4): arr[2] + arr[3] + arr[4] = 3 + 4 + 5 = 12\n            <\/p>\n<\/section>\n<section>\n<h2>\ubb38\uc81c \ud574\uacb0 \uacfc\uc815<\/h2>\n<p>\n                \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \uba3c\uc800 \ubc30\uc5f4\uc758 \ubd80\ubd84 \ud569\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \uad6c\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uace0\ubbfc\ud574\uc57c \ud569\ub2c8\ub2e4.<br \/>\n                \uac01 \ucffc\ub9ac\uac00 O(N) \uc2dc\uac04\uc5d0 \ucc98\ub9ac\ub41c\ub2e4\uba74 \uc804\uccb4 \ucffc\ub9ac\ub97c \ucc98\ub9ac\ud558\ub294 \ub370 O(N * M) \uc2dc\uac04\uc774 \uc18c\uc694\ub418\uc5b4 \ub9e4\uc6b0 \ube44\ud6a8\uc728\uc801\uc785\ub2c8\ub2e4.<br \/>\n                \ub530\ub77c\uc11c \ubd80\ubd84 \ud569\uc744 \ubbf8\ub9ac \uacc4\uc0b0\ud574 \ub450\uace0 \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \uace0\ub824\ud574\uc57c \ud569\ub2c8\ub2e4.\n            <\/p>\n<h3>1. \ubd80\ubd84 \ud569 \ubc30\uc5f4 \ub9cc\ub4e4\uae30<\/h3>\n<p>\n                \ubd80\ubd84 \ud569 \ubc30\uc5f4 <code>prefixSum<\/code>\uc744 \ub9cc\ub4e4\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. <code>prefixSum[i]<\/code>\ub294 <code>arr[0] + arr[1] + ... + arr[i]<\/code>\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4.<br \/>\n                \uc774\ub97c \ud1b5\ud574, \uc8fc\uc5b4\uc9c4 \ucffc\ub9ac\uc758 \uc2dc\uc791 \uc778\ub371\uc2a4\uc640 \ub05d \uc778\ub371\uc2a4\ub97c \uc774\uc6a9\ud558\uc5ec \uac04\ub2e8\ud788 \ubd80\ubd84 \ud569\uc744 \uacc4\uc0b0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<pre><code>\nfunc createPrefixSum(arr: [Int]) -&gt; [Int] {\n    var prefixSum = [Int](repeating: 0, count: arr.count)\n    prefixSum[0] = arr[0]\n\n    for i in 1..<arr.count +=\"\" -=\"\" 1]=\"\" <=\"\" arr[i]=\"\" code=\"\" prefixsum=\"\" prefixsum[i]=\"prefixSum[i\" return=\"\" {=\"\" }=\"\"><\/arr.count><\/code><\/pre>\n<p>\n                \uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c, <code>createPrefixSum<\/code> \ud568\uc218\ub294 \uc785\ub825 \ubc30\uc5f4 <code>arr<\/code>\ub97c \ubc1b\uc544 \ubd80\ubd84 \ud569 \ubc30\uc5f4\uc744 \uc0dd\uc131\ud558\uc5ec \ubc18\ud658\ud569\ub2c8\ub2e4.\n            <\/p>\n<h3>2. \ucffc\ub9ac\uc5d0 \ub300\ud55c \ubd80\ubd84 \ud569 \uacc4\uc0b0<\/h3>\n<p>\n                \ubd80\ubd84 \ud569 \ubc30\uc5f4\uc744 \uc0dd\uc131\ud55c \ud6c4, \uac01 \ucffc\ub9ac\uc5d0 \ub300\ud574 \ubd80\ubd84 \ud569\uc744 \uacc4\uc0b0\ud558\ub294 \ud568\uc218\ub3c4 \uc791\uc131\ud569\ub2c8\ub2e4.<br \/>\n                \uc8fc\uc5b4\uc9c4 \ucffc\ub9ac (x, y)\uc5d0\uc11c \ubd80\ubd84 \ud569\uc740 <code>prefixSum[y]<\/code>\uc5d0\uc11c <code>prefixSum[x - 1]<\/code>\ub97c \ube7c\uba74 \uad6c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<pre><code>\nfunc rangeSum(prefixSum: [Int], queries: [(Int, Int)]) -&gt; [Int] {\n    var result = [Int]()\n\n    for query in queries {\n        let x = query.0\n        let y = query.1\n        let sum = prefixSum[y] - (x &gt; 0 ? prefixSum[x - 1] : 0)\n        result.append(sum)\n    }\n    \n    return result\n}\n            <\/code><\/pre>\n<p>\n<code>rangeSum<\/code> \ud568\uc218\ub294 \ubd80\ubd84 \ud569 \ubc30\uc5f4\uacfc \ucffc\ub9ac \ubc30\uc5f4\uc744 \ubc1b\uc544 \uac01 \ucffc\ub9ac\uc758 \ubd80\ubd84 \ud569\uc744 \uacc4\uc0b0\ud558\uc5ec \ubc18\ud658\ud569\ub2c8\ub2e4.<br \/>\n                <code>result<\/code> \ubc30\uc5f4\uc5d0 \uac01 \ucffc\ub9ac\uc758 \uacb0\uacfc\ub97c \uc800\uc7a5\ud55c \ud6c4, \ub9c8\uc9c0\ub9c9\uc5d0 \ubc18\ud658\ud569\ub2c8\ub2e4.\n            <\/p>\n<h3>3. \uc804\uccb4 \uad6c\ud604<\/h3>\n<p>\n                \uc704\uc758 \ubaa8\ub4e0 \ub0b4\uc6a9\uc744 \uc885\ud569\ud558\uc5ec \uc804\uccb4 \ucf54\ub4dc\ub97c \uc791\uc131\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<pre><code>\nfunc rangeSumQueries(arr: [Int], queries: [(Int, Int)]) -&gt; [Int] {\n    let prefixSum = createPrefixSum(arr: arr)\n    return rangeSum(prefixSum: prefixSum, queries: queries)\n}\n\n\/\/ \uc608\uc81c \uc0ac\uc6a9\nlet arr = [1, 2, 3, 4, 5]\nlet queries = [(0, 2), (1, 3), (2, 4)]\nlet results = rangeSumQueries(arr: arr, queries: queries)\nprint(results) \/\/ [6, 9, 12]\n            <\/code><\/pre>\n<p>\n                \uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c\ub294 \ubc30\uc5f4\uacfc \ucffc\ub9ac\ub97c \ud3ec\ud568\ud558\ub294 \uc785\ub825\uc744 \ubc1b\uc544\uc11c \ubd80\ubd84 \ud569 \ucffc\ub9ac\ub97c \uc2e4\ud589\ud558\uace0<br \/>\n                \uacb0\uacfc\ub97c \ucd9c\ub825\ud569\ub2c8\ub2e4. <code>print(results)<\/code>\ub97c \ud1b5\ud574 \uacb0\uacfc\ub97c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>\ucd5c\uc801\ud654 \ubc0f \ubcc0\ud615<\/h2>\n<p>\n                \ud604\uc7ac \uc54c\uace0\ub9ac\uc998\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 O(N + M)\uc73c\ub85c \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc785\ub2c8\ub2e4.<br \/>\n                \uadf8\ub7ec\ub098 \uc774 \uc678\uc5d0\ub3c4 \ub354 \ub9ce\uc740 \ubcc0\ud615 \ubc0f \ucd5c\uc801\ud654\ub97c \uace0\ub824\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uad6c\uac04 \ud569\uc758<br \/>\n                \uc5f0\uc0b0\ubfd0\ub9cc \uc544\ub2c8\ub77c \uc5c5\ub370\uc774\ud2b8\ub3c4 \uac00\ub2a5\ud558\ub3c4\ub85d \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n                \uc774\ub294 Fenwick Tree(\ub610\ub294 Binary Indexed Tree)\ub098 Segment Tree\uc640 \uac19\uc740 \uace0\uae09 \uc790\ub8cc\uad6c\uc870\ub97c<br \/>\n                \uc0ac\uc6a9\ud558\uc5ec \uc218\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<p>\n                \uc774\ub7ec\ud55c \uc790\ub8cc\uad6c\uc870\ub294 \ub3d9\uc801 \uc5c5\ub370\uc774\ud2b8\uc640 \ucffc\ub9ac \uc5f0\uc0b0\uc744 \ub3d9\uc2dc\uc5d0 \uc9c0\uc6d0\ud560 \uc218 \uc788\uc5b4 \uc2e4\uc2dc\uac04\uc73c\ub85c<br \/>\n                \ub370\uc774\ud130\uc758 \ubcc0\ud654\ub97c \ubc18\uc601\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4.<br \/>\n                \uc774\ub97c \ud1b5\ud574 \uc880 \ub354 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub97c \ud574\uacb0\ud560 \uc218 \uc788\ub294 \uae30\ubc18\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>\uacb0\ub860<\/h2>\n<p>\n                \uc774\ubc88 \uac15\uc88c\ub97c \ud1b5\ud574 \uae30\ubcf8\uc801\uc778 \uad6c\uac04 \ud569 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4.<br \/>\n                \ubd80\ubd84 \ud569 \ubc30\uc5f4\uc744 \ud65c\uc6a9\ud558\uc5ec \ud6a8\uc728\uc801\uc73c\ub85c \ubb38\uc81c\ub97c \ud574\uacb0\ud560 \uc218 \uc788\uc5c8\uc73c\uba70,<br \/>\n                \uc774\ub97c \ud1b5\ud574 \ucd5c\uc801\ud654\ub41c \ucf54\ub4dc\ub97c \uc791\uc131\ud558\ub294 \ub370 \ud544\uc694\ud55c \uae30\ucd08\ub97c \ub2e4\uc84c\uc2b5\ub2c8\ub2e4.<br \/>\n                \ub2e4\uc74c \uac15\uc88c\uc5d0\uc11c\ub294 \ub354 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub098 \uace0\uae09 \uc790\ub8cc\uad6c\uc870\ub97c \ud65c\uc6a9\ud55c \ubb38\uc81c \ud574\uacb0 \ubc29\ubc95\uc5d0 \ub300\ud574<br \/>\n                \ub2e4\ub8f0 \uc608\uc815\uc785\ub2c8\ub2e4.\n            <\/p>\n<p>\n                \ub3c5\uc790 \uc5ec\ub7ec\ubd84\ub4e4\uc774 \uc790\uc2e0\ub9cc\uc758 \ubb38\uc81c \ud574\uacb0 \ubc29\ubc95\uacfc \ud6a8\uc728\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc744 \uac1c\ubc1c\ud558\ub294 \ub370<br \/>\n                \ub9ce\uc740 \ub3c4\uc6c0\uc774 \ub418\uc5c8\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4. \uac10\uc0ac\ud569\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c0\ub294 \uc815\uc218 \ubc30\uc5f4 arr\uc640 \ucffc\ub9ac \ubc30\uc5f4 queries\uac00 \uc788\ub2e4. arr\uc758 \uac01 \ucffc\ub9ac\ub294 \ub450 \uac1c\uc758 \uc778\ub371\uc2a4\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uc73c\uba70, \uc774 \uc778\ub371\uc2a4\ub97c \ud1b5\ud574 arr\uc758 \ubd80\ubd84 \ubc30\uc5f4\uc758 \ud569\uc744 \uad6c\ud574\uc57c \ud55c\ub2e4. \uac01 \ucffc\ub9ac\ub294 (\uc2dc\uc791 \uc778\ub371\uc2a4, \ub05d \uc778\ub371\uc2a4) \ud615\ud0dc\ub85c \uc81c\uacf5\ub418\uba70, \ubd80\ubd84 \ubc30\uc5f4\uc758 \ud569\uc744 \ube60\ub974\uac8c \uacc4\uc0b0\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uad6c\ud604\ud574\uc57c \ud55c\ub2e4. \uc785\ub825 \uc815\uc218 \ubc30\uc5f4 arr: \uae38\uc774\ub294 N (1 \u2264 N \u2264 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/28126\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2&#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":[27],"tags":[],"class_list":["post-28126","post","type-post","status-publish","format-standard","hentry","category-27"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2 - \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\/28126\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c0\ub294 \uc815\uc218 \ubc30\uc5f4 arr\uc640 \ucffc\ub9ac \ubc30\uc5f4 queries\uac00 \uc788\ub2e4. arr\uc758 \uac01 \ucffc\ub9ac\ub294 \ub450 \uac1c\uc758 \uc778\ub371\uc2a4\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uc73c\uba70, \uc774 \uc778\ub371\uc2a4\ub97c \ud1b5\ud574 arr\uc758 \ubd80\ubd84 \ubc30\uc5f4\uc758 \ud569\uc744 \uad6c\ud574\uc57c \ud55c\ub2e4. \uac01 \ucffc\ub9ac\ub294 (\uc2dc\uc791 \uc778\ub371\uc2a4, \ub05d \uc778\ub371\uc2a4) \ud615\ud0dc\ub85c \uc81c\uacf5\ub418\uba70, \ubd80\ubd84 \ubc30\uc5f4\uc758 \ud569\uc744 \ube60\ub974\uac8c \uacc4\uc0b0\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uad6c\ud604\ud574\uc57c \ud55c\ub2e4. \uc785\ub825 \uc815\uc218 \ubc30\uc5f4 arr: \uae38\uc774\ub294 N (1 \u2264 N \u2264 &hellip; \ub354 \ubcf4\uae30 &quot;\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/28126\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T15:31:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:08:52+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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/28126\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28126\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2\",\"datePublished\":\"2024-10-27T15:31:58+00:00\",\"dateModified\":\"2024-11-26T07:08:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28126\/\"},\"wordCount\":35,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/28126\/\",\"url\":\"https:\/\/atmokpo.com\/w\/28126\/\",\"name\":\"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T15:31:58+00:00\",\"dateModified\":\"2024-11-26T07:08:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28126\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/28126\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/28126\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2\"}]},{\"@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":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2 - \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\/28126\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c0\ub294 \uc815\uc218 \ubc30\uc5f4 arr\uc640 \ucffc\ub9ac \ubc30\uc5f4 queries\uac00 \uc788\ub2e4. arr\uc758 \uac01 \ucffc\ub9ac\ub294 \ub450 \uac1c\uc758 \uc778\ub371\uc2a4\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uc73c\uba70, \uc774 \uc778\ub371\uc2a4\ub97c \ud1b5\ud574 arr\uc758 \ubd80\ubd84 \ubc30\uc5f4\uc758 \ud569\uc744 \uad6c\ud574\uc57c \ud55c\ub2e4. \uac01 \ucffc\ub9ac\ub294 (\uc2dc\uc791 \uc778\ub371\uc2a4, \ub05d \uc778\ub371\uc2a4) \ud615\ud0dc\ub85c \uc81c\uacf5\ub418\uba70, \ubd80\ubd84 \ubc30\uc5f4\uc758 \ud569\uc744 \ube60\ub974\uac8c \uacc4\uc0b0\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uad6c\ud604\ud574\uc57c \ud55c\ub2e4. \uc785\ub825 \uc815\uc218 \ubc30\uc5f4 arr: \uae38\uc774\ub294 N (1 \u2264 N \u2264 &hellip; \ub354 \ubcf4\uae30 \"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2\"","og_url":"https:\/\/atmokpo.com\/w\/28126\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T15:31:58+00:00","article_modified_time":"2024-11-26T07:08:52+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/28126\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/28126\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2","datePublished":"2024-10-27T15:31:58+00:00","dateModified":"2024-11-26T07:08:52+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/28126\/"},"wordCount":35,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/28126\/","url":"https:\/\/atmokpo.com\/w\/28126\/","name":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T15:31:58+00:00","dateModified":"2024-11-26T07:08:52+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/28126\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/28126\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/28126\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2"}]},{"@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":[{"id":26730,"url":"https:\/\/atmokpo.com\/w\/26730\/","url_meta":{"origin":28126,"position":0},"title":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uad6c\uac04 \ud569 \uad6c\ud558\uae30 2","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc800\uc790: \uc870\uad11\ud615 \uc791\uc131\uc77c: 2024\ub144 11\uc6d4 26\uc77c 1. \ubb38\uc81c \uc124\uba85 \uc774\ubc88 \uc2dc\uac04\uc5d0\ub294 \uad6c\uac04 \ud569 \ubb38\uc81c\ub97c \ub2e4\ub904 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc54c\uace0\ub9ac\uc998 \ubc0f \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \uc811\ud560 \uc218 \uc788\ub294 \ubb38\uc81c \uc911 \ud558\ub098\ub85c, \uc8fc\uc5b4\uc9c4 \ubc30\uc5f4\uc758 \ud2b9\uc815 \uad6c\uac04\uc758 \ud569\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \uacc4\uc0b0\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6cc\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ubb38\uc81c\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. \uc815\uc218\ub85c \uc774\ub8e8\uc5b4\uc9c4 \ubc30\uc5f4 A\uc640 \ub2e4\uc591\ud55c \ucffc\ub9ac\ub4e4\uc774 \uc8fc\uc5b4\uc9c8 \ub54c, \uac01 \ucffc\ub9ac\uc5d0\uc11c \uc81c\uc2dc\ud55c\u2026","rel":"","context":"&quot;\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ec%9e%90%eb%b0%94-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27772,"url":"https:\/\/atmokpo.com\/w\/27772\/","url_meta":{"origin":28126,"position":1},"title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud035 \uc815\ub82c","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \uc2dc\uac04\uc5d0\ub294 C++\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud035 \uc815\ub82c(Quick Sort) \uc54c\uace0\ub9ac\uc998\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud035 \uc815\ub82c\uc740 \ub2e4\uc591\ud55c \ud504\ub85c\uadf8\ub798\ubc0d \uc778\ud130\ubdf0\uc640 \uc54c\uace0\ub9ac\uc998 \uc2dc\ud5d8\uc5d0\uc11c \uc790\uc8fc \ub4f1\uc7a5\ud558\ub294 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 \ud035 \uc815\ub82c\uc758 \uac1c\ub150, \uad6c\ud604\ubc29\ubc95, \uc2dc\uac04\ubcf5\uc7a1\ub3c4 \ubc0f \uc608\uc81c\ubb38\uc81c\ub97c \ud1b5\ud574 \ud035 \uc815\ub82c\uc744 \ub9c8\uc2a4\ud130\ud574\ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. \ud035 \uc815\ub82c \uac1c\uc694 \ud035 \uc815\ub82c\uc740 \ubd84\ud560 \uc815\ubcf5 \uc54c\uace0\ub9ac\uc998\uc758 \uc77c\uc885\uc73c\ub85c, \ub370\uc774\ud130\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uc815\ub82c\ud558\ub294\u2026","rel":"","context":"&quot;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-2\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26782,"url":"https:\/\/atmokpo.com\/w\/26782\/","url_meta":{"origin":28126,"position":2},"title":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubc84\ube14 \uc815\ub82c","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \ube14\ub85c\uadf8 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \uc790\ubc14\ub97c \ud65c\uc6a9\ud55c \ucf54\ub529 \ud14c\uc2a4\ud2b8 \uc900\ube44 \uacfc\uc815\uacfc \uadf8 \uc911\uc5d0\uc11c\ub3c4 \uc911\uc694\ud55c \uc815\ub82c \uc54c\uace0\ub9ac\uc998 \uc911 \ud558\ub098\uc778 \ubc84\ube14 \uc815\ub82c(Bubble Sort)\uc5d0 \ub300\ud574 \uc2ec\uce35\uc801\uc73c\ub85c \ub2e4\ub904\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ubc84\ube14 \uc815\ub82c\uc740 \uadf8 \uad6c\ud604\uc774 \uac04\ub2e8\ud558\uc5ec \uc54c\uace0\ub9ac\uc998\uc758 \uae30\ucd08 \uac1c\ub150\uc744 \uc774\ud574\ud558\ub294 \ub370 \uc720\uc6a9\ud558\uc9c0\ub9cc, \uc2e4\uc81c \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c\ub294 \uc131\ub2a5 \uba74\uc5d0\uc11c \ub2e4\ub978 \uc54c\uace0\ub9ac\uc998\uc5d0 \ube44\ud574 \ubd80\uc871\ud55c \uc810\uc774 \ub9ce\uc73c\ubbc0\ub85c \uc774\ub7ec\ud55c \uc810\ub3c4 \ud568\uaed8 \ub17c\uc758\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ubc84\ube14\u2026","rel":"","context":"&quot;\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ec%9e%90%eb%b0%94-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":28478,"url":"https:\/\/atmokpo.com\/w\/28478\/","url_meta":{"origin":28126,"position":3},"title":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \uc815\ub82c","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 | \ub0a0\uc9dc: [\ub0a0\uc9dc] \uc11c\ub860 \ucf54\ub529 \ud14c\uc2a4\ud2b8\ub294 \uc624\ub298\ub0a0 \ub9ce\uc740 \uae30\uc5c5\uc758 \ucc44\uc6a9 \uacfc\uc815\uc5d0\uc11c \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \ud2b9\ud788, \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub2a5\ub825\uc740 \uc774\uc9c1\uacfc \uc2e0\uc785 \ucc44\uc6a9 \ubaa8\ub450\uc5d0 \uc788\uc5b4 \ud070 \uc601\ud5a5\uc744 \ubbf8\uce69\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc120\ud0dd \uc815\ub82c(Selection Sort) \uc54c\uace0\ub9ac\uc998\uc744 \ucf54\ud2c0\ub9b0\uc73c\ub85c \uad6c\ud604\ud558\uace0, \uc774\uc5d0 \ub300\ud55c \ubb38\uc81c\ub97c \ud480\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc120\ud0dd \uc815\ub82c\uc774\ub780? \uc120\ud0dd \uc815\ub82c\uc740 \uac04\ub2e8\ud55c \uc815\ub82c \uc54c\uace0\ub9ac\uc998 \uc911 \ud558\ub098\ub85c,\u2026","rel":"","context":"&quot;\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%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\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26808,"url":"https:\/\/atmokpo.com\/w\/26808\/","url_meta":{"origin":28126,"position":4},"title":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ud0dd \uc815\ub82c","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \uc791\uc131\uc77c: 2024\ub144 11\uc6d4 26\uc77c 1. \uc120\ud0dd \uc815\ub82c(Selection Sort)\ub780? \uc120\ud0dd \uc815\ub82c\uc740 \uc815\ub82c \uc54c\uace0\ub9ac\uc998 \uc911 \ud558\ub098\ub85c, \uc8fc\uc5b4\uc9c4 \ubc30\uc5f4\uc5d0\uc11c \uac00\uc7a5 \uc791\uc740(\ud639\uc740 \uac00\uc7a5 \ud070) \uc6d0\uc18c\ub97c \uc120\ud0dd\ud558\uc5ec \uc815\ub82c\uc744 \uc218\ud589\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \ubc30\uc5f4\uc758 \uae38\uc774\uac00 n\uc77c \ub54c, n-1\ubc88\uc758 \ube44\uad50 \uc5f0\uc0b0\uc744 \ud1b5\ud574 \uc815\ub82c\uc774 \uc644\ub8cc\ub418\uae30 \ub54c\ubb38\uc5d0 O(n^2)\uc758 \uc2dc\uac04\ubcf5\uc7a1\ub3c4\ub97c \uac00\uc9d1\ub2c8\ub2e4. \uc120\ud0dd \uc815\ub82c\uc758 \uc8fc\uc694 \ud2b9\uc9d5\uc740 \ub2e8\uc21c\ud558\uace0 \uc9c1\uad00\uc801\uc774\uba70 \uba54\ubaa8\ub9ac\u2026","rel":"","context":"&quot;\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ec%9e%90%eb%b0%94-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24125,"url":"https:\/\/atmokpo.com\/w\/24125\/","url_meta":{"origin":28126,"position":5},"title":"\ud30c\uc774\uc36c \uc790\ub8cc\ud615\uacfc \ub118\ud30c\uc774 \ubc30\uc5f4: \uae30\ucd08\ubd80\ud130 \uc774\ud574\ud558\uae30","author":"root","date":"2024\ub144 10\uc6d4 22\uc77c","format":false,"excerpt":"\ud30c\uc774\uc36c \uc790\ub8cc\ud615\uacfc \ub118\ud30c\uc774 \ubc30\uc5f4: \uae30\ucd08\ubd80\ud130 \uc774\ud574\ud558\uae30 \ud30c\uc774\uc36c\uc740 \ub2e4\uc591\ud55c \uc790\ub8cc\ud615(data types)\uc744 \uc81c\uacf5\ud558\uc5ec \ub370\uc774\ud130\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \uad00\ub9ac\ud558\uace0 \uc870\uc791\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub610\ud55c, \uc218\uce58 \ub370\uc774\ud130\uc758 \ud6a8\uc728\uc801\uc778 \ucc98\ub9ac\ub97c \uc704\ud574 \uac15\ub825\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 NumPy\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \ud30c\uc774\uc36c\uc758 \uae30\ubcf8 \uc790\ub8cc\ud615\uacfc \ud568\uaed8 NumPy \ubc30\uc5f4\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \ud30c\uc774\uc36c\uc758 \uae30\ubcf8 \uc790\ub8cc\ud615 \ud30c\uc774\uc36c\uc5d0\uc11c\ub294 \ub2e4\uc591\ud55c \uc790\ub8cc\ud615\uc744 \uc81c\uacf5\ud558\uc5ec, \uac1c\ubc1c\uc790\uac00 \ub370\uc774\ud130\ub97c \ub2e4\uc591\ud55c \ubc29\uc2dd\uc73c\ub85c \uc870\uc791\ud560\u2026","rel":"","context":"&quot;\ud30c\uc774\uc36c\uacf5\ubd80&quot;\uc5d0\uc11c","block_context":{"text":"\ud30c\uc774\uc36c\uacf5\ubd80","link":"https:\/\/atmokpo.com\/w\/category\/%ed%8c%8c%ec%9d%b4%ec%8d%ac%ea%b3%b5%eb%b6%80\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28126","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=28126"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28126\/revisions"}],"predecessor-version":[{"id":28127,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28126\/revisions\/28127"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=28126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=28126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=28126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}