{"id":27408,"date":"2024-10-27T14:11:23","date_gmt":"2024-10-27T14:11:23","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27408"},"modified":"2024-11-26T07:18:40","modified_gmt":"2024-11-26T07:18:40","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ec%b5%9c%ec%86%8c-%ec%8b%a0%ec%9e%a5-%ed%8a%b8%eb%a6%ac-%ea%b5%ac%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27408\/","title":{"rendered":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<p>\uc548\ub155\ud558\uc138\uc694, \uc5ec\ub7ec\ubd84! \uc774\ubc88 \ube14\ub85c\uadf8 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac(Minimum Spanning Tree, MST)\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. MST\ub294 \uadf8\ub798\ud504\uc758 \ubaa8\ub4e0 \uc815\uc810\uc744 \ud3ec\ud568\ud558\uba74\uc11c, \uac04\uc120\uc758 \ud569\uc774 \ucd5c\uc18c\uc778 \ud2b8\ub9ac\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub124\ud2b8\uc6cc\ud06c \uc124\uacc4, \ub370\uc774\ud130 \ud074\ub7ec\uc2a4\ud130\ub9c1, \uadf8\ub9ac\uace0 \uadf8\ub8f9\ud654\ub97c \ud3ec\ud568\ud55c \ub2e4\uc591\ud55c \ubd84\uc57c\uc5d0\uc11c \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4.<\/p>\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\ub2e4\uc74c\uacfc \uac19\uc740 \uadf8\ub798\ud504\uac00 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\ub97c \ud574\uacb0\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>\n<code>\n\uc785\ub825: \n5 6\n1 2 1\n1 3 3\n2 3 2\n2 4 4\n3 4 5\n4 5 6\n<\/code>\n<\/pre>\n<p>\uc5ec\uae30\uc11c \uccab \uc904\uc758 &#8216;5 6&#8217;\uc740 \uac01\uac01 \uc815\uc810\uc758 \uac1c\uc218\uc640 \uac04\uc120\uc758 \uac1c\uc218\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774\uc5b4\uc9c0\ub294 \uc904\uc5d0\uc11c\ub294 \uac01 \uac04\uc120\uacfc \uadf8 \uac00\uc911\uce58\uac00 \uc8fc\uc5b4\uc9d1\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 &#8216;1 2 1&#8217;\uc740 \uc815\uc810 1\uacfc \uc815\uc810 2\ub97c \uc5f0\uacb0\ud558\ub294 \uac04\uc120\uc758 \uac00\uc911\uce58\uac00 1\uc774\ub77c\ub294 \uc758\ubbf8\uc785\ub2c8\ub2e4.<\/p>\n<h3>\ucd9c\ub825 \ud615\uc2dd<\/h3>\n<p>\ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\uc5d0 \ud3ec\ud568\ub41c \uac04\uc120\uc758 \ubaa9\ub85d\uacfc \ud574\ub2f9 \uac04\uc120\uc758 \uac00\uc911\uce58\uc758 \ud569\uc744 \ucd9c\ub825\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<h2>\ubb38\uc81c \ud480\uc774 \uc811\uadfc\ubc95<\/h2>\n<p>\ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \uad6c\ud558\ub294 \ubc29\ubc95\uc5d0\ub294 \uc5ec\ub7ec \uac00\uc9c0\uac00 \uc788\uc9c0\ub9cc, \uc5ec\uae30\uc11c\ub294 \ub300\ud45c\uc801\uc73c\ub85c \ud504\ub9bc(Prim&#8217;s) \uc54c\uace0\ub9ac\uc998\uacfc \ud06c\ub8e8\uc2a4\uce7c(Kruskal&#8217;s) \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ub450 \uac00\uc9c0 \ubc29\ubc95 \ubaa8\ub450 \ud6a8\uc728\uc801\uc774\uba70, \uc0c1\ud669\uc5d0 \ub530\ub77c \ub2e4\ub974\uac8c \uc801\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\ud504\ub9bc \uc54c\uace0\ub9ac\uc998<\/h3>\n<p>\ud504\ub9bc \uc54c\uace0\ub9ac\uc998\uc740 \ud2b9\uc815 \uc815\uc810\uc5d0\uc11c \uc2dc\uc791\ud558\uc5ec \uac00\uc7a5 \uc791\uc740 \uac00\uc911\uce58\ub97c \uac00\uc9c4 \uac04\uc120\uc744 \uc120\ud0dd\ud568\uc73c\ub85c\uc368 \uc810\ucc28\uc801\uc73c\ub85c \ud2b8\ub9ac\ub97c \ud655\uc7a5\ud574 \ub098\uac00\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc804\uccb4 \uacfc\uc815\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ol>\n<li>\uc2dc\uc791 \uc815\uc810\uc744 \uc120\ud0dd\ud558\uace0, \ud574\ub2f9 \uc815\uc810\uc744 \ubc29\ubb38\ud55c \uac83\uc73c\ub85c \ud45c\uc2dc\ud569\ub2c8\ub2e4.<\/li>\n<li>\ud604\uc7ac \ud2b8\ub9ac\uc640 \uc5f0\uacb0\ub41c \uac04\uc120 \uc911 \uac00\uc911\uce58\uac00 \uac00\uc7a5 \ub0ae\uc740 \uac04\uc120\uc744 \uc120\ud0dd\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc0c8\ub85c\uc6b4 \uc815\uc810\uc744 \ubc29\ubb38\ud558\uace0 \ud2b8\ub9ac\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/li>\n<li>1~3\ub2e8\uacc4\ub97c \ubaa8\ub4e0 \uc815\uc810\uc744 \ubc29\ubb38\ud560 \ub54c\uae4c\uc9c0 \ubc18\ubcf5\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h3>C# \ucf54\ub4dc \uad6c\ud604<\/h3>\n<p>\uc544\ub798\ub294 \ud504\ub9bc \uc54c\uace0\ub9ac\uc998\uc744 C#\uc73c\ub85c \uad6c\ud604\ud55c \uc608\uc81c\uc785\ub2c8\ub2e4:<\/p>\n<pre>\n<code>\nusing System;\nusing System.Collections.Generic;\n\nclass Graph\n{\n    public int Vertices { get; set; }\n    public List<tuple<int, int=\"\" int,=\"\">&gt; Edges { get; set; }\n\n    public Graph(int vertices)\n    {\n        Vertices = vertices;\n        Edges = new List<tuple<int, int=\"\" int,=\"\">&gt;();\n    }\n\n    public void AddEdge(int u, int v, int weight)\n    {\n        Edges.Add(Tuple.Create(u, v, weight));\n    }\n\n    public void PrimsMST()\n    {\n        int[] parent = new int[Vertices];\n        int[] key = new int[Vertices];\n        bool[] mstSet = new bool[Vertices];\n\n        for (int i = 0; i &lt; Vertices; i++)\n        {\n            key[i] = Int32.MaxValue;\n            mstSet[i] = false;\n        }\n\n        key[0] = 0;\n        parent[0] = -1;\n\n        for (int count = 0; count &lt; Vertices - 1; count++)\n        {\n            int u = MinKey(key, mstSet);\n            mstSet[u] = true;\n\n            foreach (var edge in Edges)\n            {\n                int v = edge.Item2;\n                int weight = edge.Item3;\n                if (edge.Item1 == u &amp;&amp; !mstSet[v] &amp;&amp; weight &lt; key[v])\n                {\n                    parent[v] = u;\n                    key[v] = weight;\n                }\n            }\n        }\n\n        PrintResult(parent);\n    }\n\n    private int MinKey(int[] key, bool[] mstSet)\n    {\n        int min = Int32.MaxValue, minIndex = -1;\n\n        for (int v = 0; v &lt; Vertices; v++)\n        {\n            if (mstSet[v] == false &amp;&amp; key[v] &lt; min)\n            {\n                min = key[v];\n                minIndex = v;\n            }\n        }\n\n        return minIndex;\n    }\n\n    private void PrintResult(int[] parent)\n    {\n        Console.WriteLine(\"\uac04\uc120 \\t \uac00\uc911\uce58\");\n        int totalWeight = 0;\n        for (int i = 1; i &lt; Vertices; i++)\n        {\n            Console.WriteLine(parent[i] + \" - \" + i + \"\\t \" + Edges[i].Item3);\n            totalWeight += Edges[i].Item3;\n        }\n        Console.WriteLine(\"\ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\uc758 \ucd1d \uac00\uc911\uce58: \" + totalWeight);\n    }\n}\n\nclass Program\n{\n    static void Main(string[] args)\n    {\n        int vertices = 5;\n        Graph g = new Graph(vertices);\n\n        g.AddEdge(1, 2, 1);\n        g.AddEdge(1, 3, 3);\n        g.AddEdge(2, 3, 2);\n        g.AddEdge(2, 4, 4);\n        g.AddEdge(3, 4, 5);\n        g.AddEdge(4, 5, 6);\n\n        g.PrimsMST();\n    }\n}\n<\/tuple<int,><\/tuple<int,><\/code>\n<\/pre>\n<p>\uc704 \ucf54\ub4dc\uc5d0\uc11c Graph \ud074\ub798\uc2a4\ub294 \uadf8\ub798\ud504\uc758 \uc815\uc810\uacfc \uac04\uc120\uc744 \uc800\uc7a5\ud558\uba70, AddEdge \uba54\uc11c\ub4dc\ub97c \uc0ac\uc6a9\ud574 \uac04\uc120\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4. PrimsMST \uba54\uc11c\ub4dc\ub294 \ud504\ub9bc \uc54c\uace0\ub9ac\uc998\uc758 \ub85c\uc9c1\uc744 \uad6c\ud604\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uac00\uc911\uce58\uac00 \uac00\uc7a5 \uc791\uc740 \uac04\uc120\uc744 \ubc18\ubcf5\uc801\uc73c\ub85c \uc120\ud0dd\ud558\uc5ec \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \uc644\uc131\ud569\ub2c8\ub2e4.<\/p>\n<h3>\ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998<\/h3>\n<p>\ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998\uc740 \uac04\uc120\uc744 \uae30\uc900\uc73c\ub85c \uac00\uc911\uce58\ub97c \uc624\ub984\ucc28\uc21c\uc73c\ub85c \uc815\ub82c\ud55c \ud6c4, \uc0ac\uc774\ud074\uc774 \uc0dd\uae30\uc9c0 \uc54a\ub3c4\ub85d \uac04\uc120\uc744 \uc120\ud0dd\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc758 \uacfc\uc815\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ol>\n<li>\uadf8\ub798\ud504\uc758 \ubaa8\ub4e0 \uac04\uc120\uc744 \uac00\uc911\uce58\uc5d0 \ub530\ub77c \uc815\ub82c\ud569\ub2c8\ub2e4.<\/li>\n<li>\uac01 \uac04\uc120\uc744 \ud558\ub098\uc529 \uc120\ud0dd\ud558\uba70, \uc120\ud0dd\ud55c \uac04\uc120\uc774 \ud604\uc7ac\uc758 \ud2b8\ub9ac\uc5d0 \ud3ec\ud568\ub418\uc5b4\ub3c4 \uc0ac\uc774\ud074\uc774 \uc0dd\uae30\uc9c0 \uc54a\ub294 \uacbd\uc6b0 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc704 \uacfc\uc815\uc744 \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\uac00 \uc644\uc131\ub420 \ub54c\uae4c\uc9c0 \ubc18\ubcf5\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h3>C# \ucf54\ub4dc \uad6c\ud604<\/h3>\n<p>\uc544\ub798\ub294 \ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998\uc744 C#\uc73c\ub85c \uad6c\ud604\ud55c \uc608\uc81c\uc785\ub2c8\ub2e4:<\/p>\n<pre>\n<code>\nusing System;\nusing System.Collections.Generic;\n\nclass Edge : IComparable<edge>\n{\n    public int Source { get; set; }\n    public int Destination { get; set; }\n    public int Weight { get; set; }\n\n    public int CompareTo(Edge other)\n    {\n        return this.Weight.CompareTo(other.Weight);\n    }\n}\n\nclass Graph\n{\n    public int Vertices { get; set; }\n    public List<edge> Edges { get; set; }\n\n    public Graph(int vertices)\n    {\n        Vertices = vertices;\n        Edges = new List<edge>();\n    }\n\n    public void AddEdge(int source, int destination, int weight)\n    {\n        Edges.Add(new Edge { Source = source, Destination = destination, Weight = weight });\n    }\n\n    public void KruskalsMST()\n    {\n        Edges.Sort();\n        int[] parent = new int[Vertices];\n\n        for (int i = 0; i &lt; Vertices; i++)\n            parent[i] = -1;\n\n        int totalWeight = 0;\n\n        foreach (var edge in Edges)\n        {\n            int x = FindParent(parent, edge.Source);\n            int y = FindParent(parent, edge.Destination);\n\n            if (x != y)\n            {\n                totalWeight += edge.Weight;\n                Console.WriteLine(\"\uac04\uc120: \" + edge.Source + \" - \" + edge.Destination + \" \uac00\uc911\uce58: \" + edge.Weight);\n                Union(parent, x, y);\n            }\n        }\n        Console.WriteLine(\"\ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\uc758 \ucd1d \uac00\uc911\uce58: \" + totalWeight);\n    }\n\n    private int FindParent(int[] parent, int i)\n    {\n        if (parent[i] == -1)\n            return i;\n        return FindParent(parent, parent[i]);\n    }\n\n    private void Union(int[] parent, int x, int y)\n    {\n        parent[x] = y;\n    }\n}\n\nclass Program\n{\n    static void Main(string[] args)\n    {\n        int vertices = 5;\n        Graph g = new Graph(vertices);\n\n        g.AddEdge(1, 2, 1);\n        g.AddEdge(1, 3, 3);\n        g.AddEdge(2, 3, 2);\n        g.AddEdge(2, 4, 4);\n        g.AddEdge(3, 4, 5);\n        g.AddEdge(4, 5, 6);\n\n        g.KruskalsMST();\n    }\n}\n<\/edge><\/edge><\/edge><\/code>\n<\/pre>\n<p>\uc704 \ucf54\ub4dc\uc5d0\uc11c Graph \ud074\ub798\uc2a4\ub294 \ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998\uc744 \uc704\ud55c \uad6c\uc870\ub85c, \uac04\uc120\uc744 \uad00\ub9ac\ud558\uba70 MST\ub97c \uacc4\uc0b0\ud558\ub294 KruskalsMST \uba54\uc11c\ub4dc\ub97c \ud3ec\ud568\ud569\ub2c8\ub2e4. \uac04\uc120\uc744 \uac00\uc911\uce58\uc5d0 \ub530\ub77c \uc815\ub82c\ud558\uace0, \ud2b8\ub9ac\uc5d0 \ucd94\uac00\ud560 \uc218 \uc788\ub294\uc9c0 \ud655\uc778\ud55c \ud6c4 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<h2>\uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \uad6c\ud558\ub294 \ub450 \uac00\uc9c0 \uc54c\uace0\ub9ac\uc998, \uc989 \ud504\ub9bc \uc54c\uace0\ub9ac\uc998\uacfc \ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \ub450 \uc54c\uace0\ub9ac\uc998 \ubaa8\ub450 \ud6a8\uc728\uc801\uc774\uba70 \ud2b9\uc815 \uacbd\uc6b0\uc5d0 \ub530\ub77c \uc0c1\ub300\uc801\uc778 \uc774\uc810\uc744 \uac00\uc9d1\ub2c8\ub2e4. \uc2e4\uc81c \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c\ub294 \ubb38\uc81c\uc758 \uc870\uac74\uacfc \uadf8\ub798\ud504\uc758 \ud615\ud0dc\uc5d0 \ub530\ub77c \uc801\uc808\ud55c \uc54c\uace0\ub9ac\uc998\uc744 \uc120\ud0dd\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uc54c\uace0\ub9ac\uc998\uc740 \uc2e4\ubb34\uc5d0\uc11c\ub3c4 \ub9ce\uc774 \uc0ac\uc6a9\ub418\uba70, \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \ud480\uc774 \ub2a5\ub825\uc744 \ud5a5\uc0c1\ud558\ub294 \ub370 \uc88b\uc740 \uc5f0\uc2b5\uc774 \ub429\ub2c8\ub2e4.<\/p>\n<p>\uc774 \uacfc\uc815\uc744 \ud1b5\ud574 \uc5ec\ub7ec\ubd84\uc774 \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\uc5d0 \ub300\ud55c \uc774\ud574\ub97c \ub192\uc774\uace0, C# \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0 \ub300\ube44\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub418\uc5c8\uae38 \ubc14\ub78d\ub2c8\ub2e4. \ub2e4\uc74c \uc2dc\uac04\uc5d0\ub294 \ub2e4\ub978 \uc54c\uace0\ub9ac\uc998 \uc8fc\uc81c\ub85c \ucc3e\uc544\ubd59\uaca0\uc2b5\ub2c8\ub2e4. \uac10\uc0ac\ud569\ub2c8\ub2e4!<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694, \uc5ec\ub7ec\ubd84! \uc774\ubc88 \ube14\ub85c\uadf8 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac(Minimum Spanning Tree, MST)\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. MST\ub294 \uadf8\ub798\ud504\uc758 \ubaa8\ub4e0 \uc815\uc810\uc744 \ud3ec\ud568\ud558\uba74\uc11c, \uac04\uc120\uc758 \ud569\uc774 \ucd5c\uc18c\uc778 \ud2b8\ub9ac\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub124\ud2b8\uc6cc\ud06c \uc124\uacc4, \ub370\uc774\ud130 \ud074\ub7ec\uc2a4\ud130\ub9c1, \uadf8\ub9ac\uace0 \uadf8\ub8f9\ud654\ub97c \ud3ec\ud568\ud55c \ub2e4\uc591\ud55c \ubd84\uc57c\uc5d0\uc11c \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \ub2e4\uc74c\uacfc \uac19\uc740 \uadf8\ub798\ud504\uac00 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\ub97c \ud574\uacb0\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc785\ub825: 5 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27408\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30&#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":[24],"tags":[],"class_list":["post-27408","post","type-post","status-publish","format-standard","hentry","category-c--"],"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, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30 - \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\/27408\/\" \/>\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, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc548\ub155\ud558\uc138\uc694, \uc5ec\ub7ec\ubd84! \uc774\ubc88 \ube14\ub85c\uadf8 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac(Minimum Spanning Tree, MST)\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. MST\ub294 \uadf8\ub798\ud504\uc758 \ubaa8\ub4e0 \uc815\uc810\uc744 \ud3ec\ud568\ud558\uba74\uc11c, \uac04\uc120\uc758 \ud569\uc774 \ucd5c\uc18c\uc778 \ud2b8\ub9ac\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub124\ud2b8\uc6cc\ud06c \uc124\uacc4, \ub370\uc774\ud130 \ud074\ub7ec\uc2a4\ud130\ub9c1, \uadf8\ub9ac\uace0 \uadf8\ub8f9\ud654\ub97c \ud3ec\ud568\ud55c \ub2e4\uc591\ud55c \ubd84\uc57c\uc5d0\uc11c \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \ub2e4\uc74c\uacfc \uac19\uc740 \uadf8\ub798\ud504\uac00 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\ub97c \ud574\uacb0\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc785\ub825: 5 &hellip; \ub354 \ubcf4\uae30 &quot;C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27408\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:11:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:18:40+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\/27408\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27408\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30\",\"datePublished\":\"2024-10-27T14:11:23+00:00\",\"dateModified\":\"2024-11-26T07:18:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27408\/\"},\"wordCount\":21,\"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\/27408\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27408\/\",\"name\":\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:11:23+00:00\",\"dateModified\":\"2024-11-26T07:18:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27408\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27408\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27408\/#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, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30\"}]},{\"@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, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30 - \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\/27408\/","og_locale":"ko_KR","og_type":"article","og_title":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc548\ub155\ud558\uc138\uc694, \uc5ec\ub7ec\ubd84! \uc774\ubc88 \ube14\ub85c\uadf8 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac(Minimum Spanning Tree, MST)\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. MST\ub294 \uadf8\ub798\ud504\uc758 \ubaa8\ub4e0 \uc815\uc810\uc744 \ud3ec\ud568\ud558\uba74\uc11c, \uac04\uc120\uc758 \ud569\uc774 \ucd5c\uc18c\uc778 \ud2b8\ub9ac\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub124\ud2b8\uc6cc\ud06c \uc124\uacc4, \ub370\uc774\ud130 \ud074\ub7ec\uc2a4\ud130\ub9c1, \uadf8\ub9ac\uace0 \uadf8\ub8f9\ud654\ub97c \ud3ec\ud568\ud55c \ub2e4\uc591\ud55c \ubd84\uc57c\uc5d0\uc11c \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \ub2e4\uc74c\uacfc \uac19\uc740 \uadf8\ub798\ud504\uac00 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\ub97c \ud574\uacb0\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc785\ub825: 5 &hellip; \ub354 \ubcf4\uae30 \"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/27408\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:11:23+00:00","article_modified_time":"2024-11-26T07:18:40+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\/27408\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27408\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30","datePublished":"2024-10-27T14:11:23+00:00","dateModified":"2024-11-26T07:18:40+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27408\/"},"wordCount":21,"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\/27408\/","url":"https:\/\/atmokpo.com\/w\/27408\/","name":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:11:23+00:00","dateModified":"2024-11-26T07:18:40+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27408\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27408\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27408\/#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, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \uad6c\ud558\uae30"}]},{"@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":27825,"url":"https:\/\/atmokpo.com\/w\/27825\/","url_meta":{"origin":27408,"position":0},"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":[]},{"id":27254,"url":"https:\/\/atmokpo.com\/w\/27254\/","url_meta":{"origin":27408,"position":1},"title":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub798\ud504\uc758 \ud45c\ud604","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\uc5d0\uc11c \uc54c\uace0\ub9ac\uc998\uc740 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \ud2b9\ud788, \uadf8\ub798\ud504 \uc54c\uace0\ub9ac\uc998\uc740 \ubb38\uc81c \ud574\uacb0 \ub2a5\ub825\uc744 \ud3c9\uac00\ud558\ub294 \ub370 \uc788\uc5b4 \uc790\uc8fc \ub4f1\uc7a5\ud558\ub294 \uc8fc\uc81c \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 C#\uc744 \ud65c\uc6a9\ud558\uc5ec \uadf8\ub798\ud504\ub97c \ud45c\ud604\ud558\ub294 \ubc29\ubc95\uacfc \ud568\uaed8, \uadf8\ub798\ud504\ub97c \uc774\uc6a9\ud55c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \uacfc\uc815\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uadf8\ub798\ud504\ub780 \ubb34\uc5c7\uc778\uac00? \uadf8\ub798\ud504\ub294 \ub178\ub4dc(\ub610\ub294 \uc815\uc810)\uc640 \uc774\ub4e4\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":27621,"url":"https:\/\/atmokpo.com\/w\/27621\/","url_meta":{"origin":27408,"position":2},"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":28403,"url":"https:\/\/atmokpo.com\/w\/28403\/","url_meta":{"origin":27408,"position":3},"title":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub798\ud504\uc758 \ud45c\ud604","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc548\ub155\ud558\uc138\uc694! \uc624\ub298\uc740 \ucf54\ud2c0\ub9b0\uc744 \uc0ac\uc6a9\ud558\uc5ec \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ub098\uc624\ub294 \uadf8\ub798\ud504\uc758 \ud45c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uadf8\ub798\ud504\ub294 \uc5ec\ub7ec \ubd84\uc57c\uc5d0\uc11c \uaf64 \uc911\uc694\ud55c \uc790\ub8cc\uad6c\uc870\ub85c, \ub2e4\uc591\ud55c \ubb38\uc81c\ub97c \ud574\uacb0\ud560 \ub54c \ud544\uc218\uc801\uc778 \uadfc\ubcf8\uae30\ub2a5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uadf8\ub798\ud504\ub97c \uc5b4\ub5bb\uac8c \ud45c\ud604\ud558\uace0, \uadf8 \ud45c\ud604\uc744 \uc0ac\uc6a9\ud558\uc5ec \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uadf8\ub798\ud504\ub780 \ubb34\uc5c7\uc778\uac00? \uadf8\ub798\ud504\ub294 \ub178\ub4dc(\uc815\uc810)\uc640 \uc5e3\uc9c0(\uac04\uc120)\ub85c \uad6c\uc131\ub41c \uc790\ub8cc\uad6c\uc870\uc785\ub2c8\ub2e4. \ub178\ub4dc\ub294 \uac1d\uccb4\ub97c \ub098\ud0c0\ub0b4\uba70, \uc5e3\uc9c0\ub294\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":27308,"url":"https:\/\/atmokpo.com\/w\/27308\/","url_meta":{"origin":27408,"position":4},"title":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2","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 \uc18c\uac1c \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 C# \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec '\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(LCA; Lowest Common Ancestor)' \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ub2e4\ub8f0 \uac83\uc785\ub2c8\ub2e4. \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc740 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \ub450 \ub178\ub4dc\uc758 \uacf5\ud1b5 \uc870\uc0c1 \uc911 \uac00\uc7a5 \uae4a\uc740 \ub178\ub4dc\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \ud2b9\uc815 \uc54c\uace0\ub9ac\uc998 \ubc0f \uc790\ub8cc \uad6c\uc870\ub97c \ud65c\uc6a9\ud558\uc5ec \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \uacfc\uc815\uc744 \uc790\uc138\ud788\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":27480,"url":"https:\/\/atmokpo.com\/w\/27480\/","url_meta":{"origin":27408,"position":5},"title":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 1","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \uc791\uc131\uc77c: [\uc624\ub298\uc758 \ub0a0\uc9dc] \ub4e4\uc5b4\uac00\uba70 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ud480\uc774\uc5d0\uc11c\ub294 \ub2e4\uc591\ud55c \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub2a5\ub825\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(Lowest Common Ancestor, LCA) \ubb38\uc81c\ub294 \ud2b8\ub9ac \uad6c\uc870\uc5d0\uc11c\uc758 \ub178\ub4dc \uac04\uc758 \uad00\uacc4\ub97c \uc774\ud574\ud558\ub294 \ub370 \ud544\uc218\uc801\uc778 \uac1c\ub150\uc785\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 C#\uc744 \uc0ac\uc6a9\ud558\uc5ec \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \uad6c\ud558\ub294 \ubb38\uc81c\ub97c \ud480\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uac00 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \ub450 \ub178\ub4dc\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":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27408","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=27408"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27408\/revisions"}],"predecessor-version":[{"id":27409,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27408\/revisions\/27409"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}