{"id":27623,"date":"2024-10-27T14:42:28","date_gmt":"2024-10-27T14:42:28","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27623"},"modified":"2024-11-26T07:16:41","modified_gmt":"2024-11-26T07:16:41","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%eb%b3%91%ed%95%a9-%ec%a0%95%eb%a0%ac-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27623\/","title":{"rendered":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \uc815\ub82c"},"content":{"rendered":"<div class=\"post-content\">\n<h2>1. \ubb38\uc81c \uc124\uba85<\/h2>\n<p>\n        \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ub9ac\uc2a4\ud2b8\ub97c \uc624\ub984\ucc28\uc21c\uc73c\ub85c \uc815\ub82c\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294<br \/>\n        <em>\ubcd1\ud569 \uc815\ub82c(Merge Sort)<\/em> \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud569\ub2c8\ub2e4.<br \/>\n        \ubcd1\ud569 \uc815\ub82c\uc740 \ubd84\ud560 \uc815\ubcf5(divide and conquer) \uc54c\uace0\ub9ac\uc998\uc758 \uc77c\uc885\uc73c\ub85c, \uc8fc\uc5b4\uc9c4 \ub9ac\uc2a4\ud2b8\ub97c<br \/>\n        \uc7ac\uadc0\uc801\uc73c\ub85c \ub450 \uac1c\uc758 \uc11c\ube0c \ub9ac\uc2a4\ud2b8\ub85c \ub098\ub208 \ub4a4, \uc774\ub4e4\uc744 \uac01\uac01 \uc815\ub82c\ud558\uace0 \ub2e4\uc2dc \ud558\ub098\uc758 \ub9ac\uc2a4\ud2b8\ub85c<br \/>\n        \ubcd1\ud569\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4.\n    <\/p>\n<h2>2. \ubb38\uc81c \uc785\ub825<\/h2>\n<p>\n        &#8211; \uccab \ubc88\uc9f8 \uc785\ub825\uc740 \uc815\ub82c\ud560 \uc815\uc218\uc758 \uac1c\uc218 <code>N<\/code> (1 \u2264 <code>N<\/code> \u2264 10<sup>6<\/sup>)\uc785\ub2c8\ub2e4.<br \/>\n        &#8211; \ub450 \ubc88\uc9f8 \uc785\ub825\uc73c\ub85c\ub294 <code>N<\/code>\uac1c\uc758 \uc815\uc218\uac00 \uc8fc\uc5b4\uc9d1\ub2c8\ub2e4. \uc774 \uc815\uc218\ub4e4\uc740 \uc784\uc758\uc758 \uc74c\uc218 \ubc0f<br \/>\n        \uc591\uc218\ub97c \ud3ec\ud568\ud560 \uc218 \uc788\uc73c\uba70, \uac01 \uc815\uc218\ub294 32\ube44\ud2b8 \uc815\uc218\uc758 \ubc94\uc704\uc5d0 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>3. \ubb38\uc81c \ucd9c\ub825<\/h2>\n<p>\n        \uc815\ub82c\ub41c \uc815\uc218 \ub9ac\uc2a4\ud2b8\ub97c \ud55c \uc904\uc5d0 \uacf5\ubc31\uc73c\ub85c \uad6c\ubd84\ud558\uc5ec \ucd9c\ub825\ud569\ub2c8\ub2e4.\n    <\/p>\n<h2>4. \uc54c\uace0\ub9ac\uc998 \uc124\uba85<\/h2>\n<p>\n        \ubcd1\ud569 \uc815\ub82c\uc758 \uc8fc\uc694 \uc544\uc774\ub514\uc5b4\ub294 \ubc30\uc5f4\uc744 \uc911\uac04\uc5d0\uc11c \ub450 \ubd80\ubd84\uc73c\ub85c \ub098\ub204\uace0, \uac01\uac01\uc758 \ubd80\ubd84\uc744 \uc7ac\uadc0\uc801\uc73c\ub85c \uc815\ub82c\ud55c \ub2e4\uc74c,<br \/>\n        \uc815\ub82c\ub41c \ub450 \ubd80\ubd84\uc744 \ubcd1\ud569\ud558\uc5ec \ucd5c\uc885\uc801\uc73c\ub85c \uc815\ub82c\ub41c \ubc30\uc5f4\uc744 \ub9cc\ub4dc\ub294 \uac83\uc785\ub2c8\ub2e4.\n    <\/p>\n<h3>4.1 \uc54c\uace0\ub9ac\uc998 \ub2e8\uacc4<\/h3>\n<ol>\n<li>\ubc30\uc5f4\uc758 \ud06c\uae30\uac00 1 \uc774\ud558\uc77c \uacbd\uc6b0, \uc774\ubbf8 \uc815\ub82c\ub418\uc5b4 \uc788\uc73c\ubbc0\ub85c \ud574\ub2f9 \ubc30\uc5f4\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li>\ubc30\uc5f4\uc744 \uc911\uac04 \uc778\ub371\uc2a4\ub97c \uae30\uc900\uc73c\ub85c \ub450 \uac1c\uc758 \ubd80\ubd84 \ubc30\uc5f4\ub85c \ub098\ub215\ub2c8\ub2e4.<\/li>\n<li>\uac01 \ubd80\ubd84 \ubc30\uc5f4\uc5d0 \ub300\ud574 \uc7ac\uadc0\uc801\uc73c\ub85c \ubcd1\ud569 \uc815\ub82c\uc744 \ud638\ucd9c\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc815\ub82c\uc774 \uc644\ub8cc\ub41c \ub450 \ubd80\ubd84 \ubc30\uc5f4\uc744 \ubcd1\ud569\ud558\uc5ec \ud558\ub098\uc758 \uc815\ub82c\ub41c \ubc30\uc5f4\ub85c \ub9cc\ub4ed\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h2>5. \ucf54\ub4dc \uad6c\ud604<\/h2>\n<pre><code>\n#include &lt;iostream&gt;\n#include &lt;vector&gt;\n\nusing namespace std;\n\n\/\/ \ubc30\uc5f4\uc744 \ubcd1\ud569\ud558\ub294 \ud568\uc218\nvoid merge(vector<int> &amp;arr, int left, int mid, int right) {\n    int n1 = mid - left + 1; \/\/ \uc67c\ucabd \ubc30\uc5f4 \ud06c\uae30\n    int n2 = right - mid;    \/\/ \uc624\ub978\ucabd \ubc30\uc5f4 \ud06c\uae30\n    vector<int> L(n1), R(n2); \/\/ \uc11c\ube0c \ubc30\uc5f4 \uc0dd\uc131\n\n    \/\/ \uc11c\ube0c \ubc30\uc5f4\uc5d0 \uac12 \uc800\uc7a5\n    for (int i = 0; i &lt; n1; ++i)\n        L[i] = arr[left + i];\n    for (int j = 0; j &lt; n2; ++j)\n        R[j] = arr[mid + 1 + j];\n\n    \/\/ \uc11c\ube0c \ubc30\uc5f4 \ubcd1\ud569\n    int i = 0; \/\/ \uc778\ub371\uc2a4 i\ub294 L\n    int j = 0; \/\/ \uc778\ub371\uc2a4 j\ub294 R\n    int k = left; \/\/ \uc778\ub371\uc2a4 k\ub294 arr\n\n    while (i &lt; n1 &amp;&amp; j &lt; n2) {\n        if (L[i] &lt;= R[j]) {\n            arr[k] = L[i];\n            i++;\n        } else {\n            arr[k] = R[j];\n            j++;\n        }\n        k++;\n    }\n\n    \/\/ \ub0a8\uc740 \uc694\uc18c\ub4e4 \ucc98\ub9ac\n    while (i &lt; n1) {\n        arr[k] = L[i];\n        i++;\n        k++;\n    }\n    while (j &lt; n2) {\n        arr[k] = R[j];\n        j++;\n        k++;\n    }\n}\n\n\/\/ \ubcd1\ud569 \uc815\ub82c \ud568\uc218\nvoid mergeSort(vector<int> &amp;arr, int left, int right) {\n    if (left &lt; right) {\n        int mid = left + (right - left) \/ 2; \/\/ \uc911\uac04\uc810 \uacc4\uc0b0\n\n        mergeSort(arr, left, mid); \/\/ \uc67c\ucabd \ubc30\uc5f4 \uc815\ub82c\n        mergeSort(arr, mid + 1, right); \/\/ \uc624\ub978\ucabd \ubc30\uc5f4 \uc815\ub82c\n\n        merge(arr, left, mid, right); \/\/ \ub450 \ubc30\uc5f4 \ubcd1\ud569\n    }\n}\n\nint main() {\n    int N;\n    cin &gt;&gt; N; \/\/ \uc815\uc218 \uac1c\uc218 \uc785\ub825\n    vector<int> arr(N);\n\n    for (int i = 0; i &lt; N; i++) {\n        cin &gt;&gt; arr[i]; \/\/ \uc815\uc218 \ub9ac\uc2a4\ud2b8 \uc785\ub825\n    }\n\n    mergeSort(arr, 0, N - 1); \/\/ \ubcd1\ud569 \uc815\ub82c \ud638\ucd9c\n\n    \/\/ \uacb0\uacfc \ucd9c\ub825\n    for (int i = 0; i &lt; N; i++) {\n        cout &lt;&lt; arr[i];\n        if (i &lt; N - 1) cout &lt;&lt; \" \"; \/\/ \uacf5\ubc31 \uad6c\ubd84\n    }\n    cout &lt;&lt; endl;\n\n    return 0;\n}\n    <\/int><\/int><\/int><\/int><\/code><\/pre>\n<h2>6. \ubcf5\uc7a1\ub3c4 \ubd84\uc11d<\/h2>\n<p>\n        \ubcd1\ud569 \uc815\ub82c\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 <code>O(N log N)<\/code>\uc785\ub2c8\ub2e4. \uc5ec\uae30\uc11c <code>N<\/code>\uc740 \ubc30\uc5f4\uc758 \ud06c\uae30\uc785\ub2c8\ub2e4.<br \/>\n        \uc774\ub294 \ubc30\uc5f4\uc774 \ub450 \ubc88\uc73c\ub85c \ub098\ub204\uc5b4\uc9c0\uae30 \ub54c\ubb38\uc5d0 <code>log N<\/code>\uc758 \uae4a\uc774\ub97c \uac00\uc9c0\uba70,<br \/>\n        \uac01 \ub2e8\uacc4\uc5d0\uc11c \ud569\uce58\ub294 \ub370 <code>N<\/code>\uc758 \uc2dc\uac04\uc774 \uc18c\uc694\ub418\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4.<br \/>\n        \ub530\ub77c\uc11c \ubcd1\ud569 \uc815\ub82c\uc740 \ud3c9\uade0\uc801\uc778 \uacbd\uc6b0\uc640 \ucd5c\uc545\uc758 \uacbd\uc6b0 \ubaa8\ub450 <code>O(N log N)<\/code>\uc758 \uc131\ub2a5\uc744 \ubcf4\uc7a5\ud569\ub2c8\ub2e4.\n    <\/p>\n<p>\n        \uacf5\uac04 \ubcf5\uc7a1\ub3c4\ub294 \uc0ac\uc6a9\ub41c \ucd94\uac00\uc801\uc778 \uba54\ubaa8\ub9ac\uc640 \uad00\ub828\uc774 \uc788\uc73c\uba70,<br \/>\n        \ubcd1\ud569 \uc815\ub82c\uc5d0\uc11c\ub294 \ub450 \uac1c\uc758 \uc11c\ube0c \ubc30\uc5f4\uc744 \uc0dd\uc131\ud558\ubbc0\ub85c <code>O(N)<\/code>\uc758 \ucd94\uac00 \uba54\ubaa8\ub9ac\ub97c \ud544\uc694\ub85c \ud569\ub2c8\ub2e4.\n    <\/p>\n<h2>7. \uacb0\ub860<\/h2>\n<p>\n        \ubcd1\ud569 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc740 \uc548\uc815\uc801(stable)\uc774\uba70, \ub300\ub7c9\uc758 \ub370\uc774\ud130\ub97c \uc815\ub82c\ud558\ub294 \ub370 \ud6a8\uacfc\uc801\uc785\ub2c8\ub2e4.<br \/>\n        \ub2e4\uc591\ud55c \ud504\ub85c\uadf8\ub798\ubc0d \uacfc\uc81c \ubc0f \ubb38\uc81c \ud574\uacb0\uc5d0\uc11c \ud65c\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \ucd08\uace0\uc18d\uc758 \uc815\ub82c \uc54c\uace0\ub9ac\uc998\uc774 \ud544\uc694\ud55c \uacbd\uc6b0(\uc608: Quick Sort)\uc640\ub294 \ub2ec\ub9ac,<br \/>\n        \ubcd1\ud569 \uc815\ub82c\uc740 \uc77c\uad00\ub41c \uc131\ub2a5\uacfc \uac04\ub2e8\ud55c \uad6c\ud604\uc744 \ud2b9\uc9d5\uc73c\ub85c \ud558\uc5ec \ub9ce\uc740 \uc0c1\ud669\uc5d0\uc11c \uc0ac\ub791\ubc1b\uace0 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>8. \ucd94\uac00 \uc5f0\uc2b5 \ubb38\uc81c<\/h2>\n<p>\n        \uc544\ub798\uc758 \ubb38\uc81c\ub97c \ud480\uc5b4\ubcf4\uc138\uc694.\n    <\/p>\n<ol>\n<li>\uc8fc\uc5b4\uc9c4 \ub9ac\uc2a4\ud2b8\uc5d0\uc11c \ucd5c\ube48\uac12\uc744 \ucc3e\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\uc131\ud558\uc138\uc694.<\/li>\n<li>\ubcd1\ud569 \uc815\ub82c\uc744 \uc751\uc6a9\ud558\uc5ec \ub450 \uac1c\uc758 \uc815\ub82c\ub41c \ubc30\uc5f4\uc744 \ud558\ub098\uc758 \uc815\ub82c\ub41c \ubc30\uc5f4\ub85c \ubcd1\ud569\ud558\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\uc131\ud558\uc138\uc694.<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ub9ac\uc2a4\ud2b8\ub97c \uc624\ub984\ucc28\uc21c\uc73c\ub85c \uc815\ub82c\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ubcd1\ud569 \uc815\ub82c(Merge Sort) \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud569\ub2c8\ub2e4. \ubcd1\ud569 \uc815\ub82c\uc740 \ubd84\ud560 \uc815\ubcf5(divide and conquer) \uc54c\uace0\ub9ac\uc998\uc758 \uc77c\uc885\uc73c\ub85c, \uc8fc\uc5b4\uc9c4 \ub9ac\uc2a4\ud2b8\ub97c \uc7ac\uadc0\uc801\uc73c\ub85c \ub450 \uac1c\uc758 \uc11c\ube0c \ub9ac\uc2a4\ud2b8\ub85c \ub098\ub208 \ub4a4, \uc774\ub4e4\uc744 \uac01\uac01 \uc815\ub82c\ud558\uace0 \ub2e4\uc2dc \ud558\ub098\uc758 \ub9ac\uc2a4\ud2b8\ub85c \ubcd1\ud569\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. 2. \ubb38\uc81c \uc785\ub825 &#8211; \uccab \ubc88\uc9f8 \uc785\ub825\uc740 \uc815\ub82c\ud560 \uc815\uc218\uc758 \uac1c\uc218 N (1 \u2264 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27623\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \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":[25],"tags":[],"class_list":["post-27623","post","type-post","status-publish","format-standard","hentry","category-c---2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \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\/27623\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ub9ac\uc2a4\ud2b8\ub97c \uc624\ub984\ucc28\uc21c\uc73c\ub85c \uc815\ub82c\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ubcd1\ud569 \uc815\ub82c(Merge Sort) \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud569\ub2c8\ub2e4. \ubcd1\ud569 \uc815\ub82c\uc740 \ubd84\ud560 \uc815\ubcf5(divide and conquer) \uc54c\uace0\ub9ac\uc998\uc758 \uc77c\uc885\uc73c\ub85c, \uc8fc\uc5b4\uc9c4 \ub9ac\uc2a4\ud2b8\ub97c \uc7ac\uadc0\uc801\uc73c\ub85c \ub450 \uac1c\uc758 \uc11c\ube0c \ub9ac\uc2a4\ud2b8\ub85c \ub098\ub208 \ub4a4, \uc774\ub4e4\uc744 \uac01\uac01 \uc815\ub82c\ud558\uace0 \ub2e4\uc2dc \ud558\ub098\uc758 \ub9ac\uc2a4\ud2b8\ub85c \ubcd1\ud569\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. 2. \ubb38\uc81c \uc785\ub825 &#8211; \uccab \ubc88\uc9f8 \uc785\ub825\uc740 \uc815\ub82c\ud560 \uc815\uc218\uc758 \uac1c\uc218 N (1 \u2264 &hellip; \ub354 \ubcf4\uae30 &quot;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \uc815\ub82c&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27623\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:42:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:16:41+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\/27623\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27623\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \uc815\ub82c\",\"datePublished\":\"2024-10-27T14:42:28+00:00\",\"dateModified\":\"2024-11-26T07:16:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27623\/\"},\"wordCount\":11,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/27623\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27623\/\",\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:42:28+00:00\",\"dateModified\":\"2024-11-26T07:16:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27623\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27623\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27623\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \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":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \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\/27623\/","og_locale":"ko_KR","og_type":"article","og_title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ub9ac\uc2a4\ud2b8\ub97c \uc624\ub984\ucc28\uc21c\uc73c\ub85c \uc815\ub82c\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ubcd1\ud569 \uc815\ub82c(Merge Sort) \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud569\ub2c8\ub2e4. \ubcd1\ud569 \uc815\ub82c\uc740 \ubd84\ud560 \uc815\ubcf5(divide and conquer) \uc54c\uace0\ub9ac\uc998\uc758 \uc77c\uc885\uc73c\ub85c, \uc8fc\uc5b4\uc9c4 \ub9ac\uc2a4\ud2b8\ub97c \uc7ac\uadc0\uc801\uc73c\ub85c \ub450 \uac1c\uc758 \uc11c\ube0c \ub9ac\uc2a4\ud2b8\ub85c \ub098\ub208 \ub4a4, \uc774\ub4e4\uc744 \uac01\uac01 \uc815\ub82c\ud558\uace0 \ub2e4\uc2dc \ud558\ub098\uc758 \ub9ac\uc2a4\ud2b8\ub85c \ubcd1\ud569\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. 2. \ubb38\uc81c \uc785\ub825 &#8211; \uccab \ubc88\uc9f8 \uc785\ub825\uc740 \uc815\ub82c\ud560 \uc815\uc218\uc758 \uac1c\uc218 N (1 \u2264 &hellip; \ub354 \ubcf4\uae30 \"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \uc815\ub82c\"","og_url":"https:\/\/atmokpo.com\/w\/27623\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:42:28+00:00","article_modified_time":"2024-11-26T07:16:41+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\/27623\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27623\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \uc815\ub82c","datePublished":"2024-10-27T14:42:28+00:00","dateModified":"2024-11-26T07:16:41+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27623\/"},"wordCount":11,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/27623\/","url":"https:\/\/atmokpo.com\/w\/27623\/","name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \uc815\ub82c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:42:28+00:00","dateModified":"2024-11-26T07:16:41+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27623\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27623\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27623\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubcd1\ud569 \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\/27623","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=27623"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27623\/revisions"}],"predecessor-version":[{"id":27624,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27623\/revisions\/27624"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}