{"id":27570,"date":"2024-10-27T14:42:00","date_gmt":"2024-10-27T14:42:00","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27570"},"modified":"2024-11-26T07:17:12","modified_gmt":"2024-11-26T07:17:12","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ea%b7%b8%eb%9e%98%ed%94%84%ec%9d%98-%ed%91%9c%ed%98%84-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27570\/","title":{"rendered":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub798\ud504\uc758 \ud45c\ud604"},"content":{"rendered":"<p><body><\/p>\n<p>\n        \ud604\ub300\uc758 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ud480\uc774\uc5d0\uc11c \uadf8\ub798\ud504\ub294 \ub9e4\uc6b0 \uc911\uc694\ud558\uace0 \uae30\ubcf8\uc801\uc778 \ub370\uc774\ud130 \uad6c\uc870\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 \uadf8\ub798\ud504\uc758 \ud45c\ud604 \ubc29\uc2dd\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uace0, C++\uc744 \uc0ac\uc6a9\ud558\uc5ec \uad00\ub828 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6cc\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>\uadf8\ub798\ud504\ub780 \ubb34\uc5c7\uc778\uac00?<\/h2>\n<p>\n        \uadf8\ub798\ud504\ub780 \uc815\uc810(vertex)\uacfc \uac04\uc120(edge)\uc73c\ub85c \uad6c\uc131\ub41c \uc790\ub8cc\uad6c\uc870\ub85c, \ub2e4\uc591\ud55c \uad00\uacc4\ub97c \ud45c\ud604\ud558\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc18c\uc15c \ub124\ud2b8\uc6cc\ud06c\uc5d0\uc11c\uc758 \uc0ac\uc6a9\uc790 \uac04\uc758 \uad00\uacc4, \ub3c4\ub85c\ub9dd\uc5d0\uc11c\uc758 \ub3c4\uc2dc \uac04\uc758 \uc5f0\uacb0, \uc6f9 \ud398\uc774\uc9c0 \uac04\uc758 \ub9c1\ud06c \ub4f1 \ub2e4\uc591\ud55c \uc0c1\ud669\uc5d0\uc11c \uadf8\ub798\ud504\ub97c \ud65c\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>\uadf8\ub798\ud504\uc758 \ud45c\ud604 \ubc29\ubc95<\/h2>\n<p>\n        \uadf8\ub798\ud504\ub294 \uc77c\ubc18\uc801\uc73c\ub85c \ub450 \uac00\uc9c0 \ubc29\ubc95\uc73c\ub85c \ud45c\ud604\ub429\ub2c8\ub2e4: \uc778\uc811 \ud589\ub82c(Adjacency Matrix)\uacfc \uc778\uc811 \ub9ac\uc2a4\ud2b8(Adjacency List)\uc785\ub2c8\ub2e4. \uac01\uac01\uc758 \ubc29\ubc95\uc740 \uc7a5\ub2e8\uc810\uc774 \uc788\uc73c\ubbc0\ub85c, \ubb38\uc81c\uc758 \ud2b9\uc131\uc5d0 \ub530\ub77c \uc801\ud569\ud55c \ubc29\ubc95\uc744 \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>1. \uc778\uc811 \ud589\ub82c<\/h3>\n<p>\n        \uc778\uc811 \ud589\ub82c\uc740 2\ucc28\uc6d0 \ubc30\uc5f4\uc744 \uc0ac\uc6a9\ud558\uc5ec \uadf8\ub798\ud504\ub97c \ud45c\ud604\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4. \ud589\ub82c\uc758 \ud06c\uae30\ub294 V x V(V\ub294 \uc815\uc810\uc758 \uac1c\uc218)\ub85c, \ud589\ub82c\uc758 \uac01 \uc6d0\uc18c (i, j)\ub294 \uc815\uc810 i\uc640 \uc815\uc810 j\uac04\uc758 \uac04\uc120 \uc874\uc7ac \uc5ec\ubd80\ub97c \ub098\ud0c0\ub0c5\ub2c8\ub2e4.\n    <\/p>\n<pre><code>\n        \/\/ C++\uc5d0\uc11c\uc758 \uc778\uc811 \ud589\ub82c \uc120\uc5b8\n        const int MAX = 100; \/\/ \ucd5c\ub300 \uc815\uc810 \uc218\n        int adj[MAX][MAX]; \/\/ \uc778\uc811 \ud589\ub82c\n        int V; \/\/ \uc815\uc810\uc758 \uac1c\uc218\n        <\/code><\/pre>\n<p>\n        \uc778\uc811 \ud589\ub82c\uc758 \uc7a5\uc810\uc740 \ud2b9\uc815 \uac04\uc120\uc758 \uc874\uc7ac \uc5ec\ubd80\ub97c O(1)\ub85c \ud655\uc778\ud560 \uc218 \uc788\ub2e4\ub294 \uc810\uc785\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \uba54\ubaa8\ub9ac \uce21\uba74\uc5d0\uc11c\ub294 V\uc758 \uc81c\uacf1\ub9cc\ud07c \uc0ac\uc6a9\ud558\ubbc0\ub85c, \uc815\uc810 \uc218\uac00 \ub9ce\uace0 \uac04\uc120 \uc218\uac00 \uc801\uc740 \uacbd\uc6b0 \ube44\ud6a8\uc728\uc801\uc785\ub2c8\ub2e4.\n    <\/p>\n<h3>2. \uc778\uc811 \ub9ac\uc2a4\ud2b8<\/h3>\n<p>\n        \uc778\uc811 \ub9ac\uc2a4\ud2b8\ub294 \uac01 \uc815\uc810\uc5d0 \uc5f0\uacb0\ub41c \uc815\uc810\ub4e4\uc758 \ub9ac\uc2a4\ud2b8\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4. \uc774\ub294 \uac04\uc120\uc774 \uc801\uc740 \ud76c\uc18c \uadf8\ub798\ud504(sparse graph)\uc5d0 \ub354 \uc801\ud569\ud569\ub2c8\ub2e4.\n    <\/p>\n<pre><code>\n        \/\/ C++\uc5d0\uc11c\uc758 \uc778\uc811 \ub9ac\uc2a4\ud2b8 \uc120\uc5b8\n        #include <vector>\n        #include <iostream>\n        using namespace std;\n\n        vector<int> adj[MAX]; \/\/ \uc778\uc811 \ub9ac\uc2a4\ud2b8\n        int V; \/\/ \uc815\uc810\uc758 \uac1c\uc218\n        <\/int><\/iostream><\/vector><\/code><\/pre>\n<p>\n        \uc778\uc811 \ub9ac\uc2a4\ud2b8\ub294 \uba54\ubaa8\ub9ac\ub97c \uc880 \ub354 \ud6a8\uc728\uc801\uc73c\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc73c\uba70, \uac04\uc120 \ub9ac\uc2a4\ud2b8\ub97c \uc21c\ud68c\ud558\ub294 \ub370 \uc788\uc5b4 O(E)\uc758 \uc2dc\uac04\uc774 \uc18c\uc694\ub429\ub2c8\ub2e4.\n    <\/p>\n<h2>\ubb38\uc81c: \uc5f0\uacb0\ub41c \ucef4\ud3ec\ub10c\ud2b8 \ucc3e\uae30<\/h2>\n<p>\n        \uc774 \ubb38\uc81c\uc5d0\uc11c\ub294 \uc8fc\uc5b4\uc9c4 \uc720\ud5a5 \uadf8\ub798\ud504\uc5d0\uc11c \uc11c\ub85c \uc5f0\uacb0\ub41c \ubaa8\ub4e0 \ucef4\ud3ec\ub10c\ud2b8\ub97c \ucc3e\uc544\uc57c \ud569\ub2c8\ub2e4. \uc989, \ud558\ub098\uc758 \uc815\uc810\uc5d0\uc11c \uc2dc\uc791\ud574\uc11c \ub3c4\ub2ec\ud560 \uc218 \uc788\ub294 \uc815\uc810\ub4e4\uc758 \uc9d1\ud569\uc744 \ucc3e\uc544\ub0b4\ub294 \uac83\uc785\ub2c8\ub2e4.\n    <\/p>\n<h3>\ubb38\uc81c \uc124\uba85<\/h3>\n<p>\n        \uc815\uc810\uc758 \uc218 V\uc640 \uac04\uc120\uc758 \uc218 E\uac00 \uc8fc\uc5b4\uc9c0\uace0, \uac01 \uac04\uc120\uc740 \ub450 \uc815\uc810\uc758 \uc30d\uc73c\ub85c \uc8fc\uc5b4\uc9d1\ub2c8\ub2e4. \uc774 \uadf8\ub798\ud504\uc5d0\uc11c \uc5f0\uacb0\ub41c \ucef4\ud3ec\ub10c\ud2b8\ub97c \ubaa8\ub450 \ucc3e\uc544 \ucd9c\ub825\ud558\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\uc131\ud558\uc138\uc694.\n    <\/p>\n<h3>\uc785\ub825 \ud615\uc2dd<\/h3>\n<ul>\n<li>\uccab \ubc88\uc9f8 \uc904: \uc815\uc810\uc758 \uc218 V (1 \u2264 V \u2264 1000)<\/li>\n<li>\ub450 \ubc88\uc9f8 \uc904: \uac04\uc120\uc758 \uc218 E (0 \u2264 E \u2264 10000)<\/li>\n<li>\ub2e4\uc74c E \uc904: \uac04\uc120 (u, v) \ud615\ud0dc\ub85c \uc8fc\uc5b4\uc9d0<\/li>\n<\/ul>\n<h3>\ucd9c\ub825 \ud615\uc2dd<\/h3>\n<p>\n        \uc5f0\uacb0\ub41c \ucef4\ud3ec\ub10c\ud2b8\uc758 \uc218\uc640 \uac01 \ucef4\ud3ec\ub10c\ud2b8\uc758 \uc815\uc810\uc744 \uc624\ub984\ucc28\uc21c\uc73c\ub85c \ucd9c\ub825\ud569\ub2c8\ub2e4.\n    <\/p>\n<h2>\ubb38\uc81c \ud480\uc774 \uacfc\uc815<\/h2>\n<p>\n        \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \uc778\uc811 \ub9ac\uc2a4\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \uadf8\ub798\ud504\ub97c \uc800\uc7a5\ud558\uace0, \uae4a\uc774 \uc6b0\uc120 \ud0d0\uc0c9(DFS)\uc744 \ud1b5\ud574 \uc5f0\uacb0\ub41c \ucef4\ud3ec\ub10c\ud2b8\ub97c \ucc3e\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h3>1\ub2e8\uacc4: \uc778\uc811 \ub9ac\uc2a4\ud2b8 \uad6c\uc131\ud558\uae30<\/h3>\n<p>\n        \uc6b0\uc120 \uc785\ub825\uc744 \ubc1b\uc544 \uc778\uc811 \ub9ac\uc2a4\ud2b8\ub97c \uad6c\uc131\ud574\uc57c \ud569\ub2c8\ub2e4. \uc815\uc810\uc758 \uac1c\uc218\uc640 \uac04\uc120\uc758 \uc218\ub97c \uc785\ub825\ubc1b\uace0, \uac01 \uac04\uc120\uc744 \ud1b5\ud574 \uad00\uacc4\ub97c \ub098\ud0c0\ub0b4\ub294 \ub9ac\uc2a4\ud2b8\ub97c \uc644\uc131\ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>2\ub2e8\uacc4: DFS\ub85c \uc5f0\uacb0\ub41c \ucef4\ud3ec\ub10c\ud2b8 \ucc3e\uae30<\/h3>\n<p>\n        \ud0d0\uc0c9\uc774 \uc774\ub8e8\uc5b4\uc9c8 \ub54c\ub9c8\ub2e4 \ubc29\ubb38\ud55c \uc815\uc810\uc744 \ub9c8\ud0b9\ud558\uace0, \ub354 \uc774\uc0c1 \ubc29\ubb38\ud560 \uc815\uc810\uc774 \uc5c6\uc744 \ub54c\uae4c\uc9c0 \ubc18\ubcf5\ud558\uba70 \ucef4\ud3ec\ub10c\ud2b8\ub97c \ucc3e\uc2b5\ub2c8\ub2e4. DFS\uc758 \uad6c\ud604\uc740 \uc7ac\uadc0\ub97c \ud1b5\ud574 \uac04\ub2e8\ud788 \uc9c4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre><code>\n        #include <iostream>\n        #include <vector>\n        #include <algorithm>\n\n        using namespace std;\n\n        vector<int> adj[1001]; \/\/ \uc778\uc811 \ub9ac\uc2a4\ud2b8\n        bool visited[1001]; \/\/ \ubc29\ubb38 \uc5ec\ubd80 \uccb4\ud06c\n        vector<vector<int>&gt; components; \/\/ \uc5f0\uacb0\ub41c \ucef4\ud3ec\ub10c\ud2b8 \uc800\uc7a5\n\n        void dfs(int v, vector<int> &amp;component) {\n            visited[v] = true; \/\/ \ubc29\ubb38 \uccb4\ud06c\n            component.push_back(v); \/\/ \ucef4\ud3ec\ub10c\ud2b8\uc5d0 \ucd94\uac00\n\n            for (int u : adj[v]) {\n                if (!visited[u]) {\n                    dfs(u, component); \/\/ \uc7ac\uadc0 \ud638\ucd9c\n                }\n            }\n        }\n\n        int main() {\n            int V, E;\n            cin &gt;&gt; V &gt;&gt; E;\n\n            for (int i = 0; i &lt; E; i++) {\n                int u, v;\n                cin &gt;&gt; u &gt;&gt; v; \/\/ \uac04\uc120 \uc785\ub825\n                adj[u].push_back(v); \/\/ \uc778\uc811 \ub9ac\uc2a4\ud2b8 \uad6c\uc131\n                adj[v].push_back(u); \/\/ \ubb34\ud5a5 \uadf8\ub798\ud504\uc784\uc744 \uac00\uc815\n            }\n\n            \/\/ \uac01 \uc815\uc810\uc5d0 \ub300\ud574 \uc5f0\uacb0\ub41c \ucef4\ud3ec\ub10c\ud2b8 \ucc3e\uae30\n            for (int i = 1; i &lt;= V; i++) {\n                if (!visited[i]) {\n                    vector<int> component;\n                    dfs(i, component); \/\/ DFS \ud0d0\uc0c9\n                    components.push_back(component); \/\/ \ucc3e\uc740 \ucef4\ud3ec\ub10c\ud2b8 \uc800\uc7a5\n                }\n            }\n\n            \/\/ \uacb0\uacfc \ucd9c\ub825\n            cout &lt;&lt; components.size() &lt;&lt; \"\\n\"; \/\/ \uc5f0\uacb0\ub41c \ucef4\ud3ec\ub10c\ud2b8 \uc218\n            for (const auto &amp;component : components) {\n                sort(component.begin(), component.end()); \/\/ \ucef4\ud3ec\ub10c\ud2b8 \uc815\ub82c\n                for (int v : component) {\n                    cout &lt;&lt; v &lt;&lt; \" \"; \/\/ \uc815\uc810 \ucd9c\ub825\n                }\n                cout &lt;&lt; \"\\n\";\n            }\n\n            return 0;\n        }\n        <\/int><\/int><\/vector<int><\/int><\/algorithm><\/vector><\/iostream><\/code><\/pre>\n<p>\n        \uc704 \ucf54\ub4dc\ub97c \ud1b5\ud574 \uc785\ub825\ub41c \uadf8\ub798\ud504\uc5d0\uc11c \uc5f0\uacb0\ub41c \ucef4\ud3ec\ub10c\ud2b8\ub97c \ucc3e\uace0 \ucd9c\ub825\ud558\ub294 \ub85c\uc9c1\uc744 \uad6c\ud604\ud588\uc2b5\ub2c8\ub2e4. \uc785\ub825\ub41c \uadf8\ub798\ud504\uc758 \uac01 \ucef4\ud3ec\ub10c\ud2b8\ub97c \uc624\ub984\ucc28\uc21c\uc73c\ub85c \uc815\ub82c\ud558\uace0 \ucd9c\ub825\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4.\n    <\/p>\n<h2>\uacb0\ub860<\/h2>\n<p>\n        \uadf8\ub798\ud504\uc758 \ud45c\ud604 \ubc29\uc2dd\uacfc DFS\ub97c \ud1b5\ud574 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \uacfc\uc815\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uadf8\ub798\ud504\ub294 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\uc5d0\uc11c \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud558\uba70, \uc774\ub97c \uc775\ud788\ub294 \uac83\uc740 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc88b\uc740 \uacb0\uacfc\ub97c \uc5bb\uae30 \uc704\ud55c \uae30\ucd08\uac00 \ub429\ub2c8\ub2e4. \uc774 \uac15\uc88c\ub97c \ud1b5\ud574 \uadf8\ub798\ud504\uc758 \uae30\ucd08\uc801\uc778 \uc774\ud574\uc640 \ubb38\uc81c \ud480\uc774 \ub2a5\ub825\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\uae38 \ubc14\ub78d\ub2c8\ub2e4.\n    <\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud604\ub300\uc758 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ud480\uc774\uc5d0\uc11c \uadf8\ub798\ud504\ub294 \ub9e4\uc6b0 \uc911\uc694\ud558\uace0 \uae30\ubcf8\uc801\uc778 \ub370\uc774\ud130 \uad6c\uc870\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 \uadf8\ub798\ud504\uc758 \ud45c\ud604 \ubc29\uc2dd\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uace0, C++\uc744 \uc0ac\uc6a9\ud558\uc5ec \uad00\ub828 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6cc\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uadf8\ub798\ud504\ub780 \ubb34\uc5c7\uc778\uac00? \uadf8\ub798\ud504\ub780 \uc815\uc810(vertex)\uacfc \uac04\uc120(edge)\uc73c\ub85c \uad6c\uc131\ub41c \uc790\ub8cc\uad6c\uc870\ub85c, \ub2e4\uc591\ud55c \uad00\uacc4\ub97c \ud45c\ud604\ud558\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc18c\uc15c \ub124\ud2b8\uc6cc\ud06c\uc5d0\uc11c\uc758 \uc0ac\uc6a9\uc790 \uac04\uc758 \uad00\uacc4, \ub3c4\ub85c\ub9dd\uc5d0\uc11c\uc758 \ub3c4\uc2dc \uac04\uc758 \uc5f0\uacb0, \uc6f9 \ud398\uc774\uc9c0 \uac04\uc758 \ub9c1\ud06c \ub4f1 \ub2e4\uc591\ud55c \uc0c1\ud669\uc5d0\uc11c \uadf8\ub798\ud504\ub97c \ud65c\uc6a9\ud560 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27570\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub798\ud504\uc758 \ud45c\ud604&#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-27570","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, \uadf8\ub798\ud504\uc758 \ud45c\ud604 - \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\/27570\/\" \/>\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, \uadf8\ub798\ud504\uc758 \ud45c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ud604\ub300\uc758 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ud480\uc774\uc5d0\uc11c \uadf8\ub798\ud504\ub294 \ub9e4\uc6b0 \uc911\uc694\ud558\uace0 \uae30\ubcf8\uc801\uc778 \ub370\uc774\ud130 \uad6c\uc870\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 \uadf8\ub798\ud504\uc758 \ud45c\ud604 \ubc29\uc2dd\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uace0, C++\uc744 \uc0ac\uc6a9\ud558\uc5ec \uad00\ub828 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6cc\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uadf8\ub798\ud504\ub780 \ubb34\uc5c7\uc778\uac00? \uadf8\ub798\ud504\ub780 \uc815\uc810(vertex)\uacfc \uac04\uc120(edge)\uc73c\ub85c \uad6c\uc131\ub41c \uc790\ub8cc\uad6c\uc870\ub85c, \ub2e4\uc591\ud55c \uad00\uacc4\ub97c \ud45c\ud604\ud558\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc18c\uc15c \ub124\ud2b8\uc6cc\ud06c\uc5d0\uc11c\uc758 \uc0ac\uc6a9\uc790 \uac04\uc758 \uad00\uacc4, \ub3c4\ub85c\ub9dd\uc5d0\uc11c\uc758 \ub3c4\uc2dc \uac04\uc758 \uc5f0\uacb0, \uc6f9 \ud398\uc774\uc9c0 \uac04\uc758 \ub9c1\ud06c \ub4f1 \ub2e4\uc591\ud55c \uc0c1\ud669\uc5d0\uc11c \uadf8\ub798\ud504\ub97c \ud65c\uc6a9\ud560 &hellip; \ub354 \ubcf4\uae30 &quot;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub798\ud504\uc758 \ud45c\ud604&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27570\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:42:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:17:12+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\/27570\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27570\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub798\ud504\uc758 \ud45c\ud604\",\"datePublished\":\"2024-10-27T14:42:00+00:00\",\"dateModified\":\"2024-11-26T07:17:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27570\/\"},\"wordCount\":35,\"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\/27570\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27570\/\",\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub798\ud504\uc758 \ud45c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:42:00+00:00\",\"dateModified\":\"2024-11-26T07:17:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27570\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27570\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27570\/#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, \uadf8\ub798\ud504\uc758 \ud45c\ud604\"}]},{\"@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, \uadf8\ub798\ud504\uc758 \ud45c\ud604 - \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\/27570\/","og_locale":"ko_KR","og_type":"article","og_title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub798\ud504\uc758 \ud45c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ud604\ub300\uc758 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ud480\uc774\uc5d0\uc11c \uadf8\ub798\ud504\ub294 \ub9e4\uc6b0 \uc911\uc694\ud558\uace0 \uae30\ubcf8\uc801\uc778 \ub370\uc774\ud130 \uad6c\uc870\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 \uadf8\ub798\ud504\uc758 \ud45c\ud604 \ubc29\uc2dd\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uace0, C++\uc744 \uc0ac\uc6a9\ud558\uc5ec \uad00\ub828 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6cc\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uadf8\ub798\ud504\ub780 \ubb34\uc5c7\uc778\uac00? \uadf8\ub798\ud504\ub780 \uc815\uc810(vertex)\uacfc \uac04\uc120(edge)\uc73c\ub85c \uad6c\uc131\ub41c \uc790\ub8cc\uad6c\uc870\ub85c, \ub2e4\uc591\ud55c \uad00\uacc4\ub97c \ud45c\ud604\ud558\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc18c\uc15c \ub124\ud2b8\uc6cc\ud06c\uc5d0\uc11c\uc758 \uc0ac\uc6a9\uc790 \uac04\uc758 \uad00\uacc4, \ub3c4\ub85c\ub9dd\uc5d0\uc11c\uc758 \ub3c4\uc2dc \uac04\uc758 \uc5f0\uacb0, \uc6f9 \ud398\uc774\uc9c0 \uac04\uc758 \ub9c1\ud06c \ub4f1 \ub2e4\uc591\ud55c \uc0c1\ud669\uc5d0\uc11c \uadf8\ub798\ud504\ub97c \ud65c\uc6a9\ud560 &hellip; \ub354 \ubcf4\uae30 \"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub798\ud504\uc758 \ud45c\ud604\"","og_url":"https:\/\/atmokpo.com\/w\/27570\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:42:00+00:00","article_modified_time":"2024-11-26T07:17:12+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\/27570\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27570\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub798\ud504\uc758 \ud45c\ud604","datePublished":"2024-10-27T14:42:00+00:00","dateModified":"2024-11-26T07:17:12+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27570\/"},"wordCount":35,"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\/27570\/","url":"https:\/\/atmokpo.com\/w\/27570\/","name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub798\ud504\uc758 \ud45c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:42:00+00:00","dateModified":"2024-11-26T07:17:12+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27570\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27570\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27570\/#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, \uadf8\ub798\ud504\uc758 \ud45c\ud604"}]},{"@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\/27570","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=27570"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27570\/revisions"}],"predecessor-version":[{"id":27571,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27570\/revisions\/27571"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}