{"id":27649,"date":"2024-10-27T14:42:44","date_gmt":"2024-10-27T14:42:44","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27649"},"modified":"2024-11-26T07:16:27","modified_gmt":"2024-11-26T07:16:27","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ec%84%b8%ec%9d%bc%ec%a6%88%eb%a7%a8%ec%9d%98-%ea%b3%a0%eb%af%bc-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27649\/","title":{"rendered":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc"},"content":{"rendered":"<p><body><\/p>\n<p>\n        \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc\uc740 \uc804\ud1b5\uc801\uc778 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \uc911 \ud558\ub098\ub85c, &#8220;\uc678\ud310\uc6d0 \uc21c\ud68c \ubb38\uc81c&#8221; \ub610\ub294 &#8220;\uc5ec\ud589\ud558\ub294 \uc138\uc77c\uc988\ub9e8 \ubb38\uc81c&#8221;\ub77c\uace0\ub3c4 \ubd88\ub9b0\ub2e4.<br \/>\n        \uc774 \ubb38\uc81c\ub294 \uc5ec\ub7ec \ub3c4\uc2dc\uac00 \uc788\uc744 \ub54c, \uc138\uc77c\uc988\ub9e8\uc774 \ubaa8\ub4e0 \ub3c4\uc2dc\ub97c \ubc29\ubb38\ud55c \ud6c4 \ub2e4\uc2dc \ucd9c\ubc1c \ub3c4\uc2dc\ub85c \ub3cc\uc544\uc624\ub294 \uac00\uc7a5 \uc9e7\uc740 \uacbd\ub85c\ub97c \ucc3e\ub294 \uac83\uc774\ub2e4.<br \/>\n        \uc774 \ubb38\uc81c\ub294 \uc870\ud569 \ucd5c\uc801\ud654(combinatorial optimization) \ubb38\uc81c\uc5d0 \uc18d\ud558\uba70 NP-hard\ub85c \ubd84\ub958\ub41c\ub2e4.<br \/>\n        \ub530\ub77c\uc11c, \uc791\uc740 \ub370\uc774\ud130 \uc14b\uc740 \ube0c\ub8e8\ud2b8 \ud3ec\uc2a4(brute force) \uc54c\uace0\ub9ac\uc998\uc73c\ub85c \ud574\uacb0\ud560 \uc218 \uc788\uc9c0\ub9cc, \ud070 \ub370\uc774\ud130 \uc14b\uc740 \ub354 \ud6a8\uc728\uc801\uc778 \uc811\uadfc \ubc29\ubc95\uc774 \ud544\uc694\ud558\ub2e4.\n    <\/p>\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\n        N\uac1c\uc758 \ub3c4\uc2dc\uac00 \uc8fc\uc5b4\uc9c0\uace0, \uac01 \ub3c4\uc2dc \uac04\uc758 \uac70\ub9ac \ud589\ub82c\uc774 \uc8fc\uc5b4\uc9c4\ub2e4. \ubaa9\ud45c\ub294 \uc138\uc77c\uc988\ub9e8\uc774 \uac01 \ub3c4\uc2dc\uc5d0 \ud55c \ubc88\uc529 \ubc29\ubb38\ud55c \ud6c4 \ucd9c\ubc1c \uc9c0\uc810\uc73c\ub85c \ub3cc\uc544\uc624\ub294 \uac00\uc7a5 \uc9e7\uc740 \uacbd\ub85c\uc758 \uac70\ub9ac \ud569\uc744 \uad6c\ud558\ub294 \uac83\uc774\ub2e4.<br \/>\n        \ub2e4\uc74c\uc740 \ubb38\uc81c\uc758 \ud615\uc2dd\uc774\ub2e4.\n    <\/p>\n<pre>\n        <code>\n        \uc785\ub825:\n        N (\ub3c4\uc2dc\uc758 \uc218)\n        \uac70\ub9ac \ud589\ub82c (nxn \ud589\ub82c)\n        \n        \ucd9c\ub825:\n        \ucd5c\uc18c \uacbd\ub85c\uc758 \uae38\uc774\n        <\/code>\n    <\/pre>\n<h2>\uc608\uc81c<\/h2>\n<p>\n<strong>\uc785\ub825 \uc608\uc2dc:<\/strong>\n<\/p>\n<pre>\n        4\n        0 10 15 20\n        10 0 35 25\n        15 35 0 30\n        20 25 30 0\n    <\/pre>\n<p>\n<strong>\ucd9c\ub825 \uc608\uc2dc:<\/strong><br \/>\n        80\n    <\/p>\n<h2>\ubb38\uc81c \ud574\uacb0 \uacfc\uc815<\/h2>\n<p>\n        \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud55c \uc5ec\ub7ec \uac00\uc9c0 \uc811\uadfc\ubc95\uc774 \uc788\uc73c\uba70, \uc5ec\uae30\uc11c\ub294 \ube0c\ub8e8\ud2b8 \ud3ec\uc2a4 \uc54c\uace0\ub9ac\uc998\uacfc \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(DP) \ub450 \uac00\uc9c0 \ubc29\ubc95\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud574\ubcf4\uaca0\ub2e4.\n    <\/p>\n<h3>1. \ube0c\ub8e8\ud2b8 \ud3ec\uc2a4 \ubc29\ubc95<\/h3>\n<p>\n        \ube0c\ub8e8\ud2b8 \ud3ec\uc2a4 \ubc29\ubc95\uc740 \ubaa8\ub4e0 \uac00\ub2a5\ud55c \uacbd\ub85c\ub97c \ud0d0\uc0c9\ud558\uc5ec \ucd5c\ub2e8 \uacbd\ub85c\ub97c \ucc3e\ub294 \ubc29\uc2dd\uc774\ub2e4.<br \/>\n        \ubaa8\ub4e0 \ub3c4\uc2dc\uc758 \uc21c\uc5f4\uc744 \uc0dd\uc131\ud558\uc5ec \uac01 \uacbd\ub85c \uac70\ub9ac\ub97c \uacc4\uc0b0\ud558\uace0, \uc774 \uc911\uc5d0\uc11c \ucd5c\uc18c \uac70\ub9ac\ub97c \ucc3e\ub294\ub2e4.\n    <\/p>\n<h4>\uc54c\uace0\ub9ac\uc998 \uc124\uba85<\/h4>\n<ol>\n<li>\ubaa8\ub4e0 \ub3c4\uc2dc\uc758 \uc21c\uc5f4\uc744 \uc0dd\uc131\ud55c\ub2e4.<\/li>\n<li>\uac01 \uc21c\uc5f4\uc5d0 \ub300\ud574 \uc804\uccb4 \uac70\ub9ac \uac12\uc744 \uacc4\uc0b0\ud55c\ub2e4.<\/li>\n<li>\uacc4\uc0b0\ub41c \uac70\ub9ac \uc911 \ucd5c\uc18c \uac70\ub9ac \uac12\uc744 \ucc3e\ub294\ub2e4.<\/li>\n<\/ol>\n<h4>C++ \ucf54\ub4dc \uc608\uc2dc<\/h4>\n<pre>\n        <code>\n        #include <iostream>\n        #include <vector>\n        #include <algorithm>\n        #include <limits.h>\n\n        using namespace std;\n\n        int calculateDistance(const vector<vector<int>&gt;&amp; dist, const vector<int>&amp; path) {\n            int totalDistance = 0;\n            for (int i = 0; i &lt; path.size() - 1; i++) {\n                totalDistance += dist[path[i]][path[i + 1]];\n            }\n            totalDistance += dist[path.back()][path[0]]; \/\/ Return to start\n            return totalDistance;\n        }\n\n        int main() {\n            int N;\n            cin &gt;&gt; N;\n            vector<vector<int>&gt; dist(N, vector<int>(N, 0));\n\n            for (int i = 0; i &lt; N; i++)\n                for (int j = 0; j &lt; N; j++)\n                    cin &gt;&gt; dist[i][j];\n\n            vector<int> cities(N);\n            for (int i = 0; i &lt; N; i++) cities[i] = i;\n\n            int minDistance = INT_MAX;\n\n            do {\n                int currentDistance = calculateDistance(dist, cities);\n                minDistance = min(minDistance, currentDistance);\n            } while (next_permutation(cities.begin() + 1, cities.end())); \/\/ Fix first city\n\n            cout &lt;&lt; minDistance &lt;&lt; endl;\n\n            return 0;\n        }\n        <\/int><\/int><\/vector<int><\/int><\/vector<int><\/limits.h><\/algorithm><\/vector><\/iostream><\/code>\n    <\/pre>\n<h3>2. \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(DP) \ubc29\ubc95<\/h3>\n<p>\n        \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d \ubc29\ubc95\uc740 \uba54\ubaa8\ub9ac\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc774\ub2e4.<br \/>\n        \ub3c4\uc2dc\ub97c \ube44\ud2b8\ub9c8\uc2a4\ud06c\ub85c \ud45c\ud604\ud558\uc5ec \uac01 \ub3c4\uc2dc\uc758 \ubc29\ubb38 \uc5ec\ubd80\ub97c \ub098\ud0c0\ub0b4\uace0, \uc7ac\uadc0 \ud568\uc218\uc640 \uba54\ubaa8\uc774\uc81c\uc774\uc158\uc744 \uc774\uc6a9\ud558\uc5ec \ucd5c\ub2e8 \uacbd\ub85c\ub97c \uacc4\uc0b0\ud55c\ub2e4.<br \/>\n        \uc774 \uacbd\uc6b0 \ubcf5\uc7a1\ub3c4\ub294 O(n^2 * 2^n)\ub85c \uc904\uc5b4\ub4e0\ub2e4. \ub2e4\uc74c\uc740 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d \uc194\ub8e8\uc158\uc758 \uc124\uba85\uc774\ub2e4.\n    <\/p>\n<h4>\uc54c\uace0\ub9ac\uc998 \uc124\uba85<\/h4>\n<ol>\n<li>\ube44\ud2b8\ub9c8\uc2a4\ud06c\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac01 \ub3c4\uc2dc\uc758 \ubc29\ubb38 \uc5ec\ubd80\ub97c \ub098\ud0c0\ub0b8\ub2e4.<\/li>\n<li>\ucd5c\uc18c \ube44\uc6a9 \ud14c\uc774\ube14\uc744 \ucd08\uae30\ud654\ud558\uace0 0\uc73c\ub85c \uc124\uc815\ud55c\ub2e4.<\/li>\n<li>\uc7ac\uadc0 \ud568\uc218\ub97c \ud1b5\ud574 \uac00\ub2a5\ud55c \uacbd\ub85c\ub97c \ud0d0\uc0c9\ud558\uba70 \ucd5c\uc18c \uac70\ub9ac \uac12\uc744 \uac31\uc2e0\ud55c\ub2e4.<\/li>\n<\/ol>\n<h4>C++ \ucf54\ub4dc \uc608\uc2dc<\/h4>\n<pre>\n        <code>\n        #include <iostream>\n        #include <vector>\n        #include <limits.h>\n\n        using namespace std;\n\n        int tsp(int pos, int visited, const vector<vector<int>&gt;&amp; dist, vector<vector<int>&gt;&amp; memo) {\n            if (visited == ((1 &lt;&lt; dist.size()) - 1)) {\n                return dist[pos][0]; \/\/ Return to the start city\n            }\n\n            if (memo[pos][visited] != -1) {\n                return memo[pos][visited];\n            }\n\n            int minCost = INT_MAX;\n\n            for (int city = 0; city &lt; dist.size(); city++) {\n                if ((visited &amp; (1 &lt;&lt; city)) == 0) {\n                    int newCost = dist[pos][city] + tsp(city, visited | (1 &lt;&lt; city), dist, memo);\n                    minCost = min(minCost, newCost);\n                }\n            }\n\n            return memo[pos][visited] = minCost;\n        }\n\n        int main() {\n            int N;\n            cin &gt;&gt; N;\n            vector<vector<int>&gt; dist(N, vector<int>(N, 0));\n\n            for (int i = 0; i &lt; N; i++)\n                for (int j = 0; j &lt; N; j++)\n                    cin &gt;&gt; dist[i][j];\n\n            vector<vector<int>&gt; memo(N, vector<int>((1 &lt;&lt; N), -1));\n\n            cout &lt;&lt; tsp(0, 1, dist, memo) &lt;&lt; endl;\n\n            return 0;\n        }\n        <\/int><\/vector<int><\/int><\/vector<int><\/vector<int><\/vector<int><\/limits.h><\/vector><\/iostream><\/code>\n    <\/pre>\n<h2>\uacb0\ub860<\/h2>\n<p>\n        \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 C++\ub85c \uad6c\ud604\ub41c \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc \ubb38\uc81c\ub97c \ud1b5\ud574 \ubb38\uc81c \uc815\uc758, \uc608\uc81c,<br \/>\n        \uadf8\ub9ac\uace0 \ubb38\uc81c \ud574\uacb0\uc744 \uc704\ud55c \ube0c\ub8e8\ud2b8 \ud3ec\uc2a4 \ubc0f \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d \ubc29\ubc95\uc744 \uc0c1\uc138\ud788 \uc54c\uc544\ubcf4\uc558\ub2e4.<br \/>\n        \uc8fc\uc758\ud560 \uc810\uc740 \ube0c\ub8e8\ud2b8 \ud3ec\uc2a4 \ubc29\ubc95\uc740 \ub3c4\uc2dc\uc758 \uc218\uac00 \uc791\uc744 \ub54c\ub9cc \uc0ac\uc6a9\ud574\uc57c \ud558\uba70, \ub3c4\uc2dc\uc758 \uc218\uac00 \uc99d\uac00\ud560\uc218\ub85d \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d \ubc29\ubc95\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \ub354 \ud6a8\uc728\uc801\uc774\ub2e4.<br \/>\n        \uc774\ub7ec\ud55c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub4e4\uc740 \uc2e4\uc81c \ucf54\ub529 \ud14c\uc2a4\ud2b8 \ubc0f \uba74\uc811\uc5d0\uc11c \uc790\uc8fc \ub4f1\uc7a5\ud558\ubbc0\ub85c, \ucda9\ubd84\ud55c \uc5f0\uc2b5\uc774 \ud544\uc694\ud558\ub2e4.\n    <\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc\uc740 \uc804\ud1b5\uc801\uc778 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \uc911 \ud558\ub098\ub85c, &#8220;\uc678\ud310\uc6d0 \uc21c\ud68c \ubb38\uc81c&#8221; \ub610\ub294 &#8220;\uc5ec\ud589\ud558\ub294 \uc138\uc77c\uc988\ub9e8 \ubb38\uc81c&#8221;\ub77c\uace0\ub3c4 \ubd88\ub9b0\ub2e4. \uc774 \ubb38\uc81c\ub294 \uc5ec\ub7ec \ub3c4\uc2dc\uac00 \uc788\uc744 \ub54c, \uc138\uc77c\uc988\ub9e8\uc774 \ubaa8\ub4e0 \ub3c4\uc2dc\ub97c \ubc29\ubb38\ud55c \ud6c4 \ub2e4\uc2dc \ucd9c\ubc1c \ub3c4\uc2dc\ub85c \ub3cc\uc544\uc624\ub294 \uac00\uc7a5 \uc9e7\uc740 \uacbd\ub85c\ub97c \ucc3e\ub294 \uac83\uc774\ub2e4. \uc774 \ubb38\uc81c\ub294 \uc870\ud569 \ucd5c\uc801\ud654(combinatorial optimization) \ubb38\uc81c\uc5d0 \uc18d\ud558\uba70 NP-hard\ub85c \ubd84\ub958\ub41c\ub2e4. \ub530\ub77c\uc11c, \uc791\uc740 \ub370\uc774\ud130 \uc14b\uc740 \ube0c\ub8e8\ud2b8 \ud3ec\uc2a4(brute force) \uc54c\uace0\ub9ac\uc998\uc73c\ub85c \ud574\uacb0\ud560 \uc218 \uc788\uc9c0\ub9cc, &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27649\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc&#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-27649","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, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc - \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\/27649\/\" \/>\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, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc\uc740 \uc804\ud1b5\uc801\uc778 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \uc911 \ud558\ub098\ub85c, &#8220;\uc678\ud310\uc6d0 \uc21c\ud68c \ubb38\uc81c&#8221; \ub610\ub294 &#8220;\uc5ec\ud589\ud558\ub294 \uc138\uc77c\uc988\ub9e8 \ubb38\uc81c&#8221;\ub77c\uace0\ub3c4 \ubd88\ub9b0\ub2e4. \uc774 \ubb38\uc81c\ub294 \uc5ec\ub7ec \ub3c4\uc2dc\uac00 \uc788\uc744 \ub54c, \uc138\uc77c\uc988\ub9e8\uc774 \ubaa8\ub4e0 \ub3c4\uc2dc\ub97c \ubc29\ubb38\ud55c \ud6c4 \ub2e4\uc2dc \ucd9c\ubc1c \ub3c4\uc2dc\ub85c \ub3cc\uc544\uc624\ub294 \uac00\uc7a5 \uc9e7\uc740 \uacbd\ub85c\ub97c \ucc3e\ub294 \uac83\uc774\ub2e4. \uc774 \ubb38\uc81c\ub294 \uc870\ud569 \ucd5c\uc801\ud654(combinatorial optimization) \ubb38\uc81c\uc5d0 \uc18d\ud558\uba70 NP-hard\ub85c \ubd84\ub958\ub41c\ub2e4. \ub530\ub77c\uc11c, \uc791\uc740 \ub370\uc774\ud130 \uc14b\uc740 \ube0c\ub8e8\ud2b8 \ud3ec\uc2a4(brute force) \uc54c\uace0\ub9ac\uc998\uc73c\ub85c \ud574\uacb0\ud560 \uc218 \uc788\uc9c0\ub9cc, &hellip; \ub354 \ubcf4\uae30 &quot;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27649\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:42:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:16: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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/27649\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27649\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc\",\"datePublished\":\"2024-10-27T14:42:44+00:00\",\"dateModified\":\"2024-11-26T07:16:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27649\/\"},\"wordCount\":15,\"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\/27649\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27649\/\",\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:42:44+00:00\",\"dateModified\":\"2024-11-26T07:16:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27649\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27649\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27649\/#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, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc\"}]},{\"@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, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc - \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\/27649\/","og_locale":"ko_KR","og_type":"article","og_title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc\uc740 \uc804\ud1b5\uc801\uc778 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \uc911 \ud558\ub098\ub85c, &#8220;\uc678\ud310\uc6d0 \uc21c\ud68c \ubb38\uc81c&#8221; \ub610\ub294 &#8220;\uc5ec\ud589\ud558\ub294 \uc138\uc77c\uc988\ub9e8 \ubb38\uc81c&#8221;\ub77c\uace0\ub3c4 \ubd88\ub9b0\ub2e4. \uc774 \ubb38\uc81c\ub294 \uc5ec\ub7ec \ub3c4\uc2dc\uac00 \uc788\uc744 \ub54c, \uc138\uc77c\uc988\ub9e8\uc774 \ubaa8\ub4e0 \ub3c4\uc2dc\ub97c \ubc29\ubb38\ud55c \ud6c4 \ub2e4\uc2dc \ucd9c\ubc1c \ub3c4\uc2dc\ub85c \ub3cc\uc544\uc624\ub294 \uac00\uc7a5 \uc9e7\uc740 \uacbd\ub85c\ub97c \ucc3e\ub294 \uac83\uc774\ub2e4. \uc774 \ubb38\uc81c\ub294 \uc870\ud569 \ucd5c\uc801\ud654(combinatorial optimization) \ubb38\uc81c\uc5d0 \uc18d\ud558\uba70 NP-hard\ub85c \ubd84\ub958\ub41c\ub2e4. \ub530\ub77c\uc11c, \uc791\uc740 \ub370\uc774\ud130 \uc14b\uc740 \ube0c\ub8e8\ud2b8 \ud3ec\uc2a4(brute force) \uc54c\uace0\ub9ac\uc998\uc73c\ub85c \ud574\uacb0\ud560 \uc218 \uc788\uc9c0\ub9cc, &hellip; \ub354 \ubcf4\uae30 \"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc\"","og_url":"https:\/\/atmokpo.com\/w\/27649\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:42:44+00:00","article_modified_time":"2024-11-26T07:16:27+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\/27649\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27649\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc","datePublished":"2024-10-27T14:42:44+00:00","dateModified":"2024-11-26T07:16:27+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27649\/"},"wordCount":15,"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\/27649\/","url":"https:\/\/atmokpo.com\/w\/27649\/","name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:42:44+00:00","dateModified":"2024-11-26T07:16:27+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27649\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27649\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27649\/#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, \uc138\uc77c\uc988\ub9e8\uc758 \uace0\ubbfc"}]},{"@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":27268,"url":"https:\/\/atmokpo.com\/w\/27268\/","url_meta":{"origin":27649,"position":0},"title":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc5ec\ud589 \uacc4\ud68d \uc9dc\uae30","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. \ubb38\uc81c \uac1c\uc694 \ucc44\uc6a9 \uacfc\uc815\uc5d0\uc11c \ub9ce\uc774 \ub2e4\ub904\uc9c0\ub294 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \uc911 \ud558\ub098\ub294 \u2018\uc5ec\ud589 \uacc4\ud68d \uc9dc\uae30\u2019\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \uc8fc\uc5b4\uc9c4 \uc5ec\ub7ec \uc870\uac74\uc744 \ucda9\uc871\ud558\uba74\uc11c \uc5ec\ud589\uc9c0\ub97c \uc120\uc815\ud558\ub294 \uac83\uc5d0 \ub300\ud55c \uac83\uc785\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc6b0\ub9ac\ub294 \uc790\ub8cc\uad6c\uc870\uc640 \uc54c\uace0\ub9ac\uc998\uc744 \ud65c\uc6a9\ud558\uc5ec \ud6a8\uc728\uc801\uc73c\ub85c \ubb38\uc81c\ub97c \ud574\uacb0\ud560 \uc218 \uc788\ub294 \ub2a5\ub825\uc744 \uae30\ub974\uac8c \ub429\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 C# \uc5b8\uc5b4\ub85c \uc774\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\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27696,"url":"https:\/\/atmokpo.com\/w\/27696\/","url_meta":{"origin":27649,"position":1},"title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc678\ud310\uc6d0\uc758 \uc21c\ud68c \uacbd\ub85c \uc9dc\uae30","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 \ubb38\uc81c \uc815\uc758 \"\uc678\ud310\uc6d0 \ubb38\uc81c\"\ub294 \uc8fc\uc5b4\uc9c4 \ub3c4\uc2dc\ub4e4\uc744 \ubaa8\ub450 \ubc29\ubb38\ud558\uace0 \ub2e4\uc2dc \uc2dc\uc791\uc810\uc73c\ub85c \ub3cc\uc544\uc624\ub294 \ucd5c\uc18c \uacbd\ub85c\ub97c \ucc3e\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ucef4\ud4e8\ud130 \uacfc\ud559 \ubc0f \ucd5c\uc801\ud654 \uc774\ub860\uc5d0\uc11c \uc911\uc694\ud55c \ubb38\uc81c\uc774\uba70, \ub2e4\uc591\ud55c \uc2e4\uc81c \ubb38\uc81c\uc5d0 \uc751\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc678\ud310\uc6d0 \ubb38\uc81c\ub294 \ud2b9\ud788 NP-\uc644\uc804 \ubb38\uc81c\ub85c \uc54c\ub824\uc838 \uc788\uc73c\uba70, \ud6a8\uacfc\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc744 \ud1b5\ud574 \ud574\uacb0\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744\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":27232,"url":"https:\/\/atmokpo.com\/w\/27232\/","url_meta":{"origin":27649,"position":2},"title":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud2b9\uc815 \uac70\ub9ac\uc758 \ub3c4\uc2dc \ucc3e\uae30","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 \ubb38\uc81c \uc815\uc758 \uc8fc\uc5b4\uc9c4 \ub3c4\uc2dc\uc640 \uac70\ub9ac \uc815\ubcf4\ub97c \ubc14\ud0d5\uc73c\ub85c, \ud2b9\uc815 \uac70\ub9ac K\uc5d0 \uc815\ud655\ud788 \ub3c4\ub2ec\ud560 \uc218 \uc788\ub294 \ub3c4\uc2dc \ubaa9\ub85d\uc744 \uad6c\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uac01 \ub3c4\uc2dc\ub294 \ubc88\ud638\ub85c \ud45c\ud604\ub418\uba70, \ub450 \ub3c4\uc2dc \uac04\uc758 \uac70\ub9ac \uc815\ubcf4\ub294 \uc591\ubc29\ud5a5 \ub3c4\ub85c\ub85c \uc5f0\uacb0\ub41c \ud615\ud0dc\ub85c \uc8fc\uc5b4\uc9d1\ub2c8\ub2e4. \ubaa9\ud45c\ub294 K\ub9cc\ud07c \ub5a8\uc5b4\uc9c4 \ub3c4\uc2dc\ub97c \ucc3e\ub294 \uac83\uc785\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, N\uac1c\uc758 \ub3c4\uc2dc\uac00 \uc788\uace0, M\uac1c\uc758\u2026","rel":"","context":"&quot;\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ed%8c%8c%ec%9d%b4%ec%8d%ac-%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":27776,"url":"https:\/\/atmokpo.com\/w\/27776\/","url_meta":{"origin":27649,"position":3},"title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud1f4\uc0ac \uc900\ube44\ud558\uae30","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc5ec\ub7ec\ubd84 \uc548\ub155\ud558\uc138\uc694! \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 C++\ub85c \ucde8\uc5c5\uc744 \uc900\ube44\ud558\ub294 \uc774\ub4e4\uc744 \uc704\ud55c \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ucf54\ub529\ud14c\uc2a4\ud2b8\uc758 \uc911\uc694\uc131 \ucd5c\uadfc \ub9ce\uc740 \uae30\uc5c5\ub4e4\uc774 \uae30\uc220 \uba74\uc811\uc744 \uc704\ud574 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \uc81c\uc2dc\ud569\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c \uc6b0\ub9ac\ub294 \uc54c\uace0\ub9ac\uc998\uc744 \uc774\ud574\ud558\uace0 \uc774\ub97c C++\ub85c \uad6c\ud604\ud560 \uc218 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. \uc54c\uace0\ub9ac\uc998\uacfc \uc790\ub8cc \uad6c\uc870\uc5d0 \ub300\ud55c \uae4a\uc740 \uc774\ud574\ub294 \uba74\uc811\uc5d0\uc11c \uc88b\uc740 \uacb0\uacfc\ub97c \uac00\uc838\uc62c \uc218 \uc788\ub294 \uc5f4\uc1e0\uc785\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \ubb38\uc81c:\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":27621,"url":"https:\/\/atmokpo.com\/w\/27621\/","url_meta":{"origin":27649,"position":4},"title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ubca8\ub9cc-\ud3ec\ub4dc","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: [\uc870\uad11\ud615] \ub0a0\uc9dc: [\ub0a0\uc9dc] 1. \uac1c\uc694 \ucf54\ub529\ud14c\uc2a4\ud2b8\ub294 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c \uc9c1\uad70\uc5d0 \uc9c0\uc6d0\ud568\uc5d0 \uc788\uc5b4 \ud544\uc218\uc801\uc73c\ub85c \uc694\uad6c\ub418\ub294 \uacfc\uc815\uc785\ub2c8\ub2e4. \ub9ce\uc740 \uae30\uc5c5\ub4e4\uc774 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud1b5\ud574 \uc9c0\uc6d0\uc790\uc758 \ubb38\uc81c\ud574\uacb0 \ub2a5\ub825\uc744 \ud3c9\uac00\ud558\uace0, \uc774\ub97c \uc704\ud574 \ubca8\ub9cc-\ud3ec\ub4dc \uc54c\uace0\ub9ac\uc998\uc744 \uc774\ud574\ud558\uace0 \ud65c\uc6a9\ud558\ub294 \ub2a5\ub825\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \ubca8\ub9cc-\ud3ec\ub4dc \uc54c\uace0\ub9ac\uc998\uc744 \uc18c\uac1c\ud558\uace0, C++\ub97c \uc774\uc6a9\ud558\uc5ec \uc2e4\uc2b5\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. \uc54c\uace0\ub9ac\uc998 \uc18c\uac1c \ubca8\ub9cc-\ud3ec\ub4dc \uc54c\uace0\ub9ac\uc998(Bellman-Ford Algorithm)\uc740 \uc8fc\uc5b4\uc9c4 \ucd9c\ubc1c\uc810\uc5d0\uc11c \ubaa8\ub4e0\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":27825,"url":"https:\/\/atmokpo.com\/w\/27825\/","url_meta":{"origin":27649,"position":5},"title":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud50c\ub85c\uc774\ub4dc-\uc6cc\uc15c","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 \ubaa9\ucc28 1. \uc18c\uac1c 2. \ubb38\uc81c \uc124\uba85 3. \ud50c\ub85c\uc774\ub4dc-\uc6cc\uc15c \uc54c\uace0\ub9ac\uc998 \uc774\ud574 4. \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \uad6c\ud604 5. \uc2dc\uac04 \ubcf5\uc7a1\ub3c4 6. \uacb0\ub860 1. \uc18c\uac1c \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub294 \ube48\ubc88\ud558\uac8c \ucd9c\uc81c\ub418\uba70, \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998\uc744 \uc774\ud574\ud558\uace0 \uad6c\ud604\ud560 \uc218 \uc788\ub294 \ub2a5\ub825\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 \ud50c\ub85c\uc774\ub4dc-\uc6cc\uc15c(Floyd-Warshall) \uc54c\uace0\ub9ac\uc998\uc5d0 \ub300\ud574 \ub2e4\ub8e8\uace0, \uc774\ub97c \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub85c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6c1\ub2c8\ub2e4.\u2026","rel":"","context":"&quot;\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%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\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27649","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=27649"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27649\/revisions"}],"predecessor-version":[{"id":27650,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27649\/revisions\/27650"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}