{"id":26912,"date":"2024-10-27T11:53:35","date_gmt":"2024-10-27T11:53:35","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=26912"},"modified":"2024-11-26T07:26:29","modified_gmt":"2024-11-26T07:26:29","slug":"%ec%9e%90%eb%b0%94-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ec%b5%9c%ec%86%8c-%ec%8b%a0%ec%9e%a5-%ed%8a%b8%eb%a6%ac","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/26912\/","title":{"rendered":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac"},"content":{"rendered":"<p><body><\/p>\n<h2>1. \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub780?<\/h2>\n<p>\ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac(Minimum Spanning Tree, MST)\ub294 \uac00\uc911\uce58\uac00 \ud560\ub2f9\ub41c \ubb34\ubc29\ud5a5 \uadf8\ub798\ud504\uc5d0\uc11c \ubaa8\ub4e0 \uc815\uc810\uc744 \ud3ec\ud568\ud558\uba74\uc11c \uc804\uccb4 \uac00\uc911\uce58\uc758 \ud569\uc774 \ucd5c\uc18c\uac00 \ub418\ub294 \ud2b8\ub9ac\ub97c \ub9d0\ud569\ub2c8\ub2e4. \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub294 \ub124\ud2b8\uc6cc\ud06c \uc124\uacc4, \ud074\ub7ec\uc2a4\ud130\ub9c1 \ubc0f \uc5ec\ub7ec \ucd5c\uc801\ud654 \ubb38\uc81c\uc5d0 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/p>\n<h2>2. \uc54c\uace0\ub9ac\uc998 \uac1c\uc694<\/h2>\n<p>\ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \ucc3e\uae30 \uc704\ud55c \ub300\ud45c\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c\ub294 \ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998(Kruskal&#8217;s Algorithm)\uacfc \ud504\ub9bc \uc54c\uace0\ub9ac\uc998(Prim&#8217;s Algorithm)\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ub450 \uac00\uc9c0 \uc54c\uace0\ub9ac\uc998\uc740 \uac01\uac01 \ub2e4\ub978 \ubc29\uc2dd\uc73c\ub85c MST\ub97c \uad6c\uc131\ud569\ub2c8\ub2e4.<\/p>\n<h3>2.1. \ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998<\/h3>\n<p>\ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998\uc740 \uadf8\ub798\ud504\uc758 \uac04\uc120\uc744 \uac00\uc911\uce58\uc5d0 \ub530\ub77c \uc624\ub984\ucc28\uc21c\uc73c\ub85c \uc815\ub82c\ud55c \ud6c4, \uc0ac\uc774\ud074\uc744 \ud615\uc131\ud558\uc9c0 \uc54a\ub3c4\ub85d \uac04\uc120\uc744 \ucd94\uac00\ud558\uc5ec MST\ub97c \uad6c\uc131\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4.<\/p>\n<h3>2.2. \ud504\ub9bc \uc54c\uace0\ub9ac\uc998<\/h3>\n<p>\ud504\ub9bc \uc54c\uace0\ub9ac\uc998\uc740 \uc2dc\uc791 \uc815\uc810\uc5d0\uc11c \ucd9c\ubc1c\ud558\uc5ec \ud604\uc7ac \uc5f0\uacb0\ub41c \uc815\uc810 \uc911 \uac00\uc7a5 \uac00\uc911\uce58\uac00 \ub0ae\uc740 \uac04\uc120\uc744 \uc120\ud0dd\ud558\uc5ec MST\ub97c \ud655\uc7a5\ud574 \ub098\uac00\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4.<\/p>\n<h3>2.3. \uc54c\uace0\ub9ac\uc998 \uc120\ud0dd<\/h3>\n<p>\ub450 \uac00\uc9c0 \uc54c\uace0\ub9ac\uc998 \ubaa8\ub450 \ud6a8\uc728\uc801\uc73c\ub85c MST\ub97c \ucc3e\uc744 \uc218 \uc788\uc9c0\ub9cc, \ud06c\ub8e8\uc2a4\uce7c\uc740 \uac04\uc120\uc758 \uc218\uac00 \uc801\uc740 \ud76c\uc18c \uadf8\ub798\ud504\uc5d0 \ub354 \uc801\ud569\ud558\uace0, \ud504\ub9bc\uc740 \uc815\uc810\uc758 \uc218\uac00 \uc801\uc740 \ubc00\uc811 \uadf8\ub798\ud504\uc5d0 \uc801\ud569\ud569\ub2c8\ub2e4.<\/p>\n<h2>3. \ubb38\uc81c \uc124\uba85<\/h2>\n<h3>\ubb38\uc81c: \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac \ub9cc\ub4e4\uae30<\/h3>\n<p>\uac00\uc911\uce58\uac00 \uc788\ub294 \ubb34\ubc29\ud5a5 \uadf8\ub798\ud504\uac00 \uc8fc\uc5b4\uc9c8 \ub54c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \uad6c\ud558\uc2dc\uc624. \uc785\ub825\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \ud615\uc2dd\uc785\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uccab \ubc88\uc9f8 \uc904\uc5d0 \uc815\uc810\uc758 \uc218 <code>V<\/code>\uc640 \uac04\uc120\uc758 \uc218 <code>E<\/code>\uac00 \uc8fc\uc5b4\uc9c4\ub2e4.<\/li>\n<li>\ub2e4\uc74c <code>E<\/code>\uac1c\uc758 \uc904\uc5d0 \uac01\uac01 <code>u<\/code>, <code>v<\/code>, <code>w<\/code>\uac00 \uc8fc\uc5b4\uc838, \uc774\ub294 \uc815\uc810 <code>u<\/code>\uc640 <code>v<\/code>\ub97c \uc5f0\uacb0\ud558\ub294 \uac00\uc911\uce58 <code>w<\/code>\uc758 \uac04\uc120\uc744 \uc758\ubbf8\ud55c\ub2e4.<\/li>\n<\/ul>\n<p>\ucd9c\ub825\uc73c\ub85c \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\uc758 \uac00\uc911\uce58 \ud569\uc744 \ucd9c\ub825\ud558\uc2dc\uc624.<\/p>\n<h2>4. \ubb38\uc81c \ud480\uc774 \uc811\uadfc\ubc95<\/h2>\n<p>\ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ub2e4\uc74c \ub2e8\uacc4\ub97c \ub530\ub985\ub2c8\ub2e4:<\/p>\n<ol>\n<li>\uc785\ub825\uac12\uc744 \uc77d\uc5b4\ub4e4\uc778\ub2e4.<\/li>\n<li>\uac04\uc120\uc744 \uac00\uc911\uce58\uc5d0 \ub530\ub77c \uc815\ub82c\ud55c\ub2e4.<\/li>\n<li>\uc720\ub2c8\uc628-\ud30c\uc778\ub4dc(Union-Find) \uc790\ub8cc\uad6c\uc870\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0ac\uc774\ud074\uc744 \uac80\ucd9c\ud55c\ub2e4.<\/li>\n<li>\uc0ac\uc774\ud074\uc774 \ud615\uc131\ub418\uc9c0 \uc54a\ub294 \uac04\uc120\uc744 MST\uc5d0 \ucd94\uac00\ud55c\ub2e4.<\/li>\n<li>MST\uc758 \uac00\uc911\uce58 \ud569\uc744 \uacc4\uc0b0\ud558\uc5ec \ucd9c\ub825\ud55c\ub2e4.<\/li>\n<\/ol>\n<h2>5. \uc790\ubc14 \ucf54\ub4dc \uad6c\ud604<\/h2>\n<h3>5.1. \uc720\ub2c8\uc628-\ud30c\uc778\ub4dc \uc790\ub8cc\uad6c\uc870 \uad6c\ud604<\/h3>\n<pre class=\"code\">\nclass UnionFind {\n    private int[] parent;\n    private int[] rank;\n\n    public UnionFind(int size) {\n        parent = new int[size];\n        rank = new int[size];\n        for (int i = 0; i &lt; size; i++) {\n            parent[i] = i;\n            rank[i] = 0;\n        }\n    }\n\n    public int find(int p) {\n        if (parent[p] != p) {\n            parent[p] = find(parent[p]);\n        }\n        return parent[p];\n    }\n\n    public void union(int p, int q) {\n        int rootP = find(p);\n        int rootQ = find(q);\n        if (rootP != rootQ) {\n            if (rank[rootP] &gt; rank[rootQ]) {\n                parent[rootQ] = rootP;\n            } else if (rank[rootP] &lt; rank[rootQ]) {\n                parent[rootP] = rootQ;\n            } else {\n                parent[rootQ] = rootP;\n                rank[rootP]++;\n            }\n        }\n    }\n}\n    <\/pre>\n<h3>5.2. \ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998 \uad6c\ud604<\/h3>\n<pre class=\"code\">\nimport java.util.*;\n\nclass Edge implements Comparable<edge> {\n    int u, v, weight;\n\n    public Edge(int u, int v, int weight) {\n        this.u = u;\n        this.v = v;\n        this.weight = weight;\n    }\n\n    @Override\n    public int compareTo(Edge other) {\n        return Integer.compare(this.weight, other.weight);\n    }\n}\n\npublic class MinimumSpanningTree {\n    public static void main(String[] args) {\n        Scanner scanner = new Scanner(System.in);\n        int V = scanner.nextInt();\n        int E = scanner.nextInt();\n\n        PriorityQueue<edge> edgeList = new PriorityQueue&lt;&gt;();\n        for (int i = 0; i &lt; E; i++) {\n            int u = scanner.nextInt();\n            int v = scanner.nextInt();\n            int weight = scanner.nextInt();\n            edgeList.add(new Edge(u, v, weight));\n        }\n\n        UnionFind uf = new UnionFind(V);\n        int totalWeight = 0;\n\n        while (!edgeList.isEmpty()) {\n            Edge edge = edgeList.poll();\n            if (uf.find(edge.u) != uf.find(edge.v)) {\n                uf.union(edge.u, edge.v);\n                totalWeight += edge.weight;\n            }\n        }\n\n        System.out.println(totalWeight);\n    }\n}\n    <\/edge><\/edge><\/pre>\n<h2>6. \ucf54\ub4dc \uc124\uba85<\/h2>\n<p>\uc704\uc758 \ucf54\ub4dc\ub294 \ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud55c \uac83\uc785\ub2c8\ub2e4. \uba3c\uc800, \uc785\ub825\uc73c\ub85c \uc815\uc810\uc758 \uc218\uc640 \uac04\uc120\uc758 \uc218\ub97c \uc77d\uace0 \uac01 \uac04\uc120\uc5d0 \ub300\ud55c \uc815\ubcf4\ub97c \uc800\uc7a5\ud569\ub2c8\ub2e4. \uc774\ud6c4 \uac04\uc120\uc744 \uac00\uc911\uce58\uc5d0 \ub530\ub77c \uc815\ub82c\ud558\uace0, \uc720\ub2c8\uc628-\ud30c\uc778\ub4dc \uc790\ub8cc\uad6c\uc870\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0ac\uc774\ud074\uc744 \ud615\uc131\ud558\uc9c0 \uc54a\ub294 \uac04\uc120\uc744 \uc120\ud0dd\ud569\ub2c8\ub2e4. \ucd5c\uc885\uc801\uc73c\ub85c, \uc120\ud0dd\ub41c \uac04\uc120\uc758 \uac00\uc911\uce58 \ud569\uc744 \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/p>\n<h2>7. \uc2dc\uac04 \ubcf5\uc7a1\ub3c4<\/h2>\n<p>\ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 \uc77c\ubc18\uc801\uc73c\ub85c <code>O(E log E)<\/code>\ub85c, \uc774\ub294 \uac04\uc120 \uc815\ub82c\uc5d0 \ub300\ud55c \ubcf5\uc7a1\ub3c4\uc785\ub2c8\ub2e4. \uc720\ub2c8\uc628-\ud30c\uc778\ub4dc \uc5f0\uc0b0\uc740 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc774\uba70 \uac70\uc758 \uc0c1\uc218 \uc2dc\uac04\uc5d0 \uc218\ud589\ub429\ub2c8\ub2e4.<\/p>\n<h2>8. \ub9c8\ubb34\ub9ac<\/h2>\n<p>\ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub294 \uadf8\ub798\ud504 \uc774\ub860\uc5d0\uc11c \uc911\uc694\ud55c \uac1c\ub150\uc73c\ub85c, \ub2e4\uc591\ud55c \ucd5c\uc801\ud654 \ubb38\uc81c\uc5d0 \ud65c\uc6a9\ub429\ub2c8\ub2e4. \ud06c\ub8e8\uc2a4\uce7c\uacfc \ud504\ub9bc \uc54c\uace0\ub9ac\uc998\uc744 \uc774\ud574\ud558\uace0 \uad6c\ud604\ud568\uc73c\ub85c\uc368 \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \uc27d\uac8c \uad6c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\ub97c \ud1b5\ud574 MST\uc758 \uac1c\ub150\uc744 \uc219\uc9c0\ud558\uace0, \uc2e4\uc81c \ucf54\ub529\ud14c\uc2a4\ud2b8 \ubb38\uc81c\uc5d0 \uc801\uc6a9\ud560 \uc218 \uc788\ub294 \ub2a5\ub825\uc744 \ud0a4\uc6b0\uae38 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub780? \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac(Minimum Spanning Tree, MST)\ub294 \uac00\uc911\uce58\uac00 \ud560\ub2f9\ub41c \ubb34\ubc29\ud5a5 \uadf8\ub798\ud504\uc5d0\uc11c \ubaa8\ub4e0 \uc815\uc810\uc744 \ud3ec\ud568\ud558\uba74\uc11c \uc804\uccb4 \uac00\uc911\uce58\uc758 \ud569\uc774 \ucd5c\uc18c\uac00 \ub418\ub294 \ud2b8\ub9ac\ub97c \ub9d0\ud569\ub2c8\ub2e4. \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub294 \ub124\ud2b8\uc6cc\ud06c \uc124\uacc4, \ud074\ub7ec\uc2a4\ud130\ub9c1 \ubc0f \uc5ec\ub7ec \ucd5c\uc801\ud654 \ubb38\uc81c\uc5d0 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. 2. \uc54c\uace0\ub9ac\uc998 \uac1c\uc694 \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \ucc3e\uae30 \uc704\ud55c \ub300\ud45c\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c\ub294 \ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998(Kruskal&#8217;s Algorithm)\uacfc \ud504\ub9bc \uc54c\uace0\ub9ac\uc998(Prim&#8217;s Algorithm)\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ub450 \uac00\uc9c0 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/26912\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac&#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":[22],"tags":[],"class_list":["post-26912","post","type-post","status-publish","format-standard","hentry","category-22"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac - \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\/26912\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub780? \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac(Minimum Spanning Tree, MST)\ub294 \uac00\uc911\uce58\uac00 \ud560\ub2f9\ub41c \ubb34\ubc29\ud5a5 \uadf8\ub798\ud504\uc5d0\uc11c \ubaa8\ub4e0 \uc815\uc810\uc744 \ud3ec\ud568\ud558\uba74\uc11c \uc804\uccb4 \uac00\uc911\uce58\uc758 \ud569\uc774 \ucd5c\uc18c\uac00 \ub418\ub294 \ud2b8\ub9ac\ub97c \ub9d0\ud569\ub2c8\ub2e4. \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub294 \ub124\ud2b8\uc6cc\ud06c \uc124\uacc4, \ud074\ub7ec\uc2a4\ud130\ub9c1 \ubc0f \uc5ec\ub7ec \ucd5c\uc801\ud654 \ubb38\uc81c\uc5d0 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. 2. \uc54c\uace0\ub9ac\uc998 \uac1c\uc694 \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \ucc3e\uae30 \uc704\ud55c \ub300\ud45c\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c\ub294 \ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998(Kruskal&#8217;s Algorithm)\uacfc \ud504\ub9bc \uc54c\uace0\ub9ac\uc998(Prim&#8217;s Algorithm)\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ub450 \uac00\uc9c0 &hellip; \ub354 \ubcf4\uae30 &quot;\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/26912\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T11:53:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:26:29+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/26912\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26912\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\",\"datePublished\":\"2024-10-27T11:53:35+00:00\",\"dateModified\":\"2024-11-26T07:26:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26912\/\"},\"wordCount\":22,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/26912\/\",\"url\":\"https:\/\/atmokpo.com\/w\/26912\/\",\"name\":\"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T11:53:35+00:00\",\"dateModified\":\"2024-11-26T07:26:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26912\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/26912\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/26912\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\"}]},{\"@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":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac - \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\/26912\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub780? \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac(Minimum Spanning Tree, MST)\ub294 \uac00\uc911\uce58\uac00 \ud560\ub2f9\ub41c \ubb34\ubc29\ud5a5 \uadf8\ub798\ud504\uc5d0\uc11c \ubaa8\ub4e0 \uc815\uc810\uc744 \ud3ec\ud568\ud558\uba74\uc11c \uc804\uccb4 \uac00\uc911\uce58\uc758 \ud569\uc774 \ucd5c\uc18c\uac00 \ub418\ub294 \ud2b8\ub9ac\ub97c \ub9d0\ud569\ub2c8\ub2e4. \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub294 \ub124\ud2b8\uc6cc\ud06c \uc124\uacc4, \ud074\ub7ec\uc2a4\ud130\ub9c1 \ubc0f \uc5ec\ub7ec \ucd5c\uc801\ud654 \ubb38\uc81c\uc5d0 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. 2. \uc54c\uace0\ub9ac\uc998 \uac1c\uc694 \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\ub97c \ucc3e\uae30 \uc704\ud55c \ub300\ud45c\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c\ub294 \ud06c\ub8e8\uc2a4\uce7c \uc54c\uace0\ub9ac\uc998(Kruskal&#8217;s Algorithm)\uacfc \ud504\ub9bc \uc54c\uace0\ub9ac\uc998(Prim&#8217;s Algorithm)\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ub450 \uac00\uc9c0 &hellip; \ub354 \ubcf4\uae30 \"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac\"","og_url":"https:\/\/atmokpo.com\/w\/26912\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T11:53:35+00:00","article_modified_time":"2024-11-26T07:26:29+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/26912\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/26912\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac","datePublished":"2024-10-27T11:53:35+00:00","dateModified":"2024-11-26T07:26:29+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/26912\/"},"wordCount":22,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/26912\/","url":"https:\/\/atmokpo.com\/w\/26912\/","name":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T11:53:35+00:00","dateModified":"2024-11-26T07:26:29+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/26912\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/26912\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/26912\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uc2e0\uc7a5 \ud2b8\ub9ac"}]},{"@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\/26912","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=26912"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26912\/revisions"}],"predecessor-version":[{"id":26913,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26912\/revisions\/26913"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=26912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=26912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=26912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}