{"id":26864,"date":"2024-10-27T11:53:17","date_gmt":"2024-10-27T11:53:17","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=26864"},"modified":"2024-11-26T07:27:48","modified_gmt":"2024-11-26T07:27:48","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%9c%a0%eb%8b%88%ec%98%a8-%ed%8c%8c%ec%9d%b8%eb%93%9c","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/26864\/","title":{"rendered":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc"},"content":{"rendered":"<p><body><\/p>\n<p>\n        \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud1b5\ud574 <strong>\uc720\ub2c8\uc628 \ud30c\uc778\ub4dc(Union-Find)<\/strong> \uc790\ub8cc\uad6c\uc870\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788<br \/>\n        \uc124\uba85\ud558\uace0 \uc774\ub97c \uc790\ubc14\ub85c \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 \uc720\ud615\uc758 \ubb38\uc81c\ub97c \uc120\ud0dd\ud558\uc5ec<br \/>\n        \uc2e4\uc81c \ucf54\ub4dc\ub97c \uc791\uc131\ud574\ubcf4\ub294 \uacfc\uc815\uc744 \uc9c4\ud589\ud558\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>\uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub780?<\/h2>\n<p>\n        \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub294 &#8216;\uc11c\ub85c\uc18c \uc9d1\ud569(Disjoint Set)&#8217;\uc744 \uad00\ub9ac\ud558\uae30 \uc704\ud55c \uc790\ub8cc \uad6c\uc870\ub85c, \uc8fc\ub85c \uadf8\ub798\ud504\uc5d0\uc11c \uc5f0\uacb0 \uc694\uc18c\ub97c<br \/>\n        \ucc3e\uac70\ub098 \ud2b9\uc815 \ub450 \uc6d0\uc18c\uac00 \uac19\uc740 \uc9d1\ud569\uc5d0 \uc18d\ud558\ub294\uc9c0\ub97c \ud310\ub2e8\ud558\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc774 \uc790\ub8cc\uad6c\uc870\uc758 \uc8fc\uc694 \uc5f0\uc0b0\uc740 \ub450 \uac00\uc9c0\uc785\ub2c8\ub2e4.\n    <\/p>\n<ul>\n<li><strong>Find<\/strong>: \uc5b4\ub5a4 \uc6d0\uc18c\uac00 \uc18d\ud55c \uc9d1\ud569\uc744 \ucc3e\ub294 \uc5f0\uc0b0\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>Union<\/strong>: \ub450 \uac1c\uc758 \uc9d1\ud569\uc744 \ud569\uce58\ub294 \uc5f0\uc0b0\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>\uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \uc124\uba85<\/h2>\n<p>\n        \uc9c0\uae08\ubd80\ud130 \ud574\uacb0\ud574\ubcfc \ubb38\uc81c\ub294 <strong>\uc5f0\uacb0 \uc694\uc18c\uc758 \uac1c\uc218 \uad6c\ud558\uae30<\/strong>\uc785\ub2c8\ub2e4. \uc8fc\uc5b4\uc9c4 <code>n<\/code>\uac1c\uc758<br \/>\n        \uc815\uc810\uacfc <code>m<\/code>\uac1c\uc758 \uac04\uc120\uc774 \uc788\uc744 \ub54c, \uc5f0\uacb0 \uc694\uc18c\uc758 \uac1c\uc218\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc5f0\uacb0 \uc694\uc18c\ub780,<br \/>\n        \uadf8\ub798\ud504\uc5d0\uc11c \uc11c\ub85c \uc5f0\uacb0\ub41c \uc815\uc810\ub4e4\uc758 \uc9d1\ud569\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4.\n    <\/p>\n<p>\n        \uc608\ub97c \ub4e4\uc5b4, \uc544\ub798\uc640 \uac19\uc740 \uadf8\ub798\ud504\ub97c \uc0dd\uac01\ud574 \ubd05\uc2dc\ub2e4. \ub9cc\uc57d \uc815\uc810\uc774 5\uac1c\uc774\uace0 \uac04\uc120\uc774 \uc544\ub798\uc640 \uac19\ub2e4\uba74,<\/p>\n<pre>\n            1 - 2\n            |   |\n            3 - 4\n            5\n        <\/pre>\n<p>        \uc5ec\uae30\uc11c \uc5f0\uacb0 \uc694\uc18c\ub294 {1, 2, 3, 4}\uc640 {5}\ub85c \ub450 \uac1c \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>\ubb38\uc81c \uc815\uc758<\/h2>\n<pre>\n        \uc8fc\uc5b4\uc9c4 \uc815\uc810 n\uacfc \uac04\uc120\uc758 \ub9ac\uc2a4\ud2b8 edges\uac00 \uc788\uc744 \ub54c, \uc5f0\uacb0 \uc694\uc18c\uc758 \uac1c\uc218\ub97c \ucd9c\ub825\ud558\uc2dc\uc624.\n\n        \uc785\ub825: \n        n = 5\n        edges = [[1, 2], [1, 3], [2, 4]]\n\n        \ucd9c\ub825: 2\n    <\/pre>\n<h2>\ubb38\uc81c \ud480\uc774 \uc811\uadfc<\/h2>\n<p>\n        \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uac01 \ub178\ub4dc\ub97c \ubc29\ubb38\ud558\uba74\uc11c \ud574\ub2f9 \ub178\ub4dc\uac00 \uc5b4\ub5a4 \uc9d1\ud569\uc5d0<br \/>\n        \uc18d\ud558\ub294\uc9c0\ub97c \uccb4\ud06c\ud558\uace0, \uc0c8\ub85c\uc6b4 \uc5f0\uacb0\uc774 \ubc1c\uacac\ub418\uba74 \uc774\ub97c \uc720\ub2c8\uc628 \uc5f0\uc0b0\uc744 \ud1b5\ud574 \uc9d1\ud569\uc5d0 \ud1b5\ud569\ud569\ub2c8\ub2e4. \ub9c8\uc9c0\ub9c9\uc5d0\ub294<br \/>\n        \uc11c\ub85c \ub2e4\ub978 \uc9d1\ud569\uc758 \uac1c\uc218\ub97c \uc138\uc5b4 \uc5f0\uacb0 \uc694\uc18c\uc758 \uac1c\uc218\ub97c \uad6c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>\uc720\ub2c8\uc628 \ud30c\uc778\ub4dc \uad6c\ud604<\/h2>\n<p>\n        \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub97c \uad6c\ud604\ud558\uae30 \uc704\ud574 \ub450 \uac00\uc9c0 \ud568\uc218\ub97c \uc815\uc758\ud560 \uac83\uc785\ub2c8\ub2e4. \ud558\ub098\ub294 <code>find<\/code> \ud568\uc218\ub294<br \/>\n        \ud2b9\uc815 \uc6d0\uc18c\uc758 \ubd80\ubaa8\ub97c \ucc3e\uc544\uc8fc\uace0, \ub2e4\ub978 \ud558\ub098\ub294 <code>union<\/code> \ud568\uc218\ub294 \ub450 \uc6d0\uc18c\ub97c \uc5f0\uacb0\ud574\uc8fc\ub294 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>\uc790\ubc14 \ucf54\ub4dc \uad6c\ud604<\/h3>\n<pre>\n        public class UnionFind {\n            private int[] parent;\n            private int[] rank;\n\n            public UnionFind(int n) {\n                parent = new int[n + 1];\n                rank = new int[n + 1];\n                for (int i = 1; i &lt;= n; i++) {\n                    parent[i] = i;  \/\/ \uac01 \ub178\ub4dc\uc758 \ubd80\ubaa8\ub97c \uc790\uae30 \uc790\uc2e0\uc73c\ub85c \ucd08\uae30\ud654\n                    rank[i] = 0;    \/\/ \ucd08\uae30 \ub7ad\ud06c\ub294 0\n                }\n            }\n\n            public int find(int x) {\n                if (parent[x] != x) {\n                    parent[x] = find(parent[x]);  \/\/ \uacbd\ub85c \uc555\ucd95\n                }\n                return parent[x];\n            }\n\n            public void union(int x, int y) {\n                int rootX = find(x);\n                int rootY = find(y);\n                if (rootX != rootY) {\n                    if (rank[rootX] &gt; rank[rootY]) {\n                        parent[rootY] = rootX;\n                    } else if (rank[rootX] &lt; rank[rootY]) {\n                        parent[rootX] = rootY;\n                    } else {\n                        parent[rootY] = rootX;\n                        rank[rootX]++;\n                    }\n                }\n            }\n\n            public int countComponents(int n, int[][] edges) {\n                \/\/ \uac04\uc120\uc73c\ub85c \uc720\ub2c8\uc628 \uc5f0\uc0b0 \uc2dc\ud589\n                for (int[] edge : edges) {\n                    union(edge[0], edge[1]);\n                }\n                \/\/ \uc5f0\uacb0 \uc694\uc18c\uc758 \uac1c\uc218 \uc138\uae30\n                HashSet<integer> componentRoots = new HashSet&lt;&gt;();\n                for (int i = 1; i &lt;= n; i++) {\n                    componentRoots.add(find(i));\n                }\n                return componentRoots.size();\n            }\n        }\n    <\/integer><\/pre>\n<h3>\uba54\uc778 \ud568\uc218<\/h3>\n<pre>\n        public class Main {\n            public static void main(String[] args) {\n                UnionFind uf = new UnionFind(5);\n                int[][] edges = {{1, 2}, {1, 3}, {2, 4}};\n                int result = uf.countComponents(5, edges);\n                System.out.println(\"\uc5f0\uacb0 \uc694\uc18c\uc758 \uac1c\uc218: \" + result);  \/\/ \ucd9c\ub825: 2\n            }\n        }\n    <\/pre>\n<h2>\ucf54\ub4dc \ubd84\uc11d<\/h2>\n<p>\n        \uc704 \ucf54\ub4dc\ub294 <code>UnionFind<\/code> \ud074\ub798\uc2a4\ub97c \ub9cc\ub4e4\uc5b4 \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud558\uc600\uc2b5\ub2c8\ub2e4.<br \/>\n        \uc0dd\uc131\uc790\uc5d0\uc11c\ub294 \uac01 \ub178\ub4dc\uc758 \ucd08\uae30 \uac12\uacfc \ub7ad\ud06c\ub97c \uc124\uc815\ud558\uace0, <code>find<\/code>\uc640 <code>union<\/code> \ud568\uc218\ub97c<br \/>\n        \uad6c\ud604\ud588\uc2b5\ub2c8\ub2e4. <code>find<\/code>\ub294 \uacbd\ub85c \uc555\ucd95 \uae30\ubc95\uc744 \uc774\uc6a9\ud574 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub97c \uc904\uc774\uace0, <code>union<\/code><br \/>\n        \ubc29\uc2dd\uc73c\ub85c \ub7ad\ud06c\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud56d\uc0c1 \uade0\ud615\uc744 \uc720\uc9c0\ud558\ub3c4\ub85d \ud588\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>\uacb0\ub860<\/h2>\n<p>\n        \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub294 \uadf8\ub798\ud504 \ubb38\uc81c\uc5d0\uc11c \ub9e4\uc6b0 \uc720\uc6a9\ud55c \uc790\ub8cc \uad6c\uc870\uc785\ub2c8\ub2e4. \uc55e\uc11c \uc81c\uc2dc\ud55c \uc5f0\uacb0 \uc694\uc18c \uac1c\uc218 \uad6c\ud558\uae30<br \/>\n        \ubb38\uc81c\ub97c \ud1b5\ud574 \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\uc758 \uae30\ucd08\ub97c \ub2e4\uc9c8 \uc218 \uc788\uc5c8\uae38 \ubc14\ub78d\ub2c8\ub2e4. \uc2e4\uc81c \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c\ub3c4 \ub2e4\uc591\ud55c \ud615\ud0dc\ub85c<br \/>\n        \ucd9c\uc81c\ub420 \uc218 \uc788\uc73c\ubbc0\ub85c \uc774 \uc790\ub8cc\uad6c\uc870\uc5d0 \ub300\ud55c \uc774\ud574\ub294 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. \uc55e\uc73c\ub85c\ub3c4 \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub97c \ud65c\uc6a9\ud55c<br \/>\n        \ub2e4\uc591\ud55c \ubb38\uc81c\ub97c \ud480\uc5b4\ubcf4\uba70 \ub354 \uae4a\uc774 \uc788\ub294 \uc774\ud574\ub97c \ud1b5\ud574 \uc2e4\ub825\uc744 \uc313\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.\n    <\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud1b5\ud574 \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc(Union-Find) \uc790\ub8cc\uad6c\uc870\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0 \uc774\ub97c \uc790\ubc14\ub85c \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 \uc720\ud615\uc758 \ubb38\uc81c\ub97c \uc120\ud0dd\ud558\uc5ec \uc2e4\uc81c \ucf54\ub4dc\ub97c \uc791\uc131\ud574\ubcf4\ub294 \uacfc\uc815\uc744 \uc9c4\ud589\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub780? \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub294 &#8216;\uc11c\ub85c\uc18c \uc9d1\ud569(Disjoint Set)&#8217;\uc744 \uad00\ub9ac\ud558\uae30 \uc704\ud55c \uc790\ub8cc \uad6c\uc870\ub85c, \uc8fc\ub85c \uadf8\ub798\ud504\uc5d0\uc11c \uc5f0\uacb0 \uc694\uc18c\ub97c \ucc3e\uac70\ub098 \ud2b9\uc815 \ub450 \uc6d0\uc18c\uac00 \uac19\uc740 \uc9d1\ud569\uc5d0 \uc18d\ud558\ub294\uc9c0\ub97c \ud310\ub2e8\ud558\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc774 \uc790\ub8cc\uad6c\uc870\uc758 \uc8fc\uc694 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/26864\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc&#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-26864","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, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc - \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\/26864\/\" \/>\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, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud1b5\ud574 \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc(Union-Find) \uc790\ub8cc\uad6c\uc870\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0 \uc774\ub97c \uc790\ubc14\ub85c \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 \uc720\ud615\uc758 \ubb38\uc81c\ub97c \uc120\ud0dd\ud558\uc5ec \uc2e4\uc81c \ucf54\ub4dc\ub97c \uc791\uc131\ud574\ubcf4\ub294 \uacfc\uc815\uc744 \uc9c4\ud589\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub780? \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub294 &#8216;\uc11c\ub85c\uc18c \uc9d1\ud569(Disjoint Set)&#8217;\uc744 \uad00\ub9ac\ud558\uae30 \uc704\ud55c \uc790\ub8cc \uad6c\uc870\ub85c, \uc8fc\ub85c \uadf8\ub798\ud504\uc5d0\uc11c \uc5f0\uacb0 \uc694\uc18c\ub97c \ucc3e\uac70\ub098 \ud2b9\uc815 \ub450 \uc6d0\uc18c\uac00 \uac19\uc740 \uc9d1\ud569\uc5d0 \uc18d\ud558\ub294\uc9c0\ub97c \ud310\ub2e8\ud558\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc774 \uc790\ub8cc\uad6c\uc870\uc758 \uc8fc\uc694 &hellip; \ub354 \ubcf4\uae30 &quot;\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/26864\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T11:53:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:27:48+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\/26864\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26864\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\",\"datePublished\":\"2024-10-27T11:53:17+00:00\",\"dateModified\":\"2024-11-26T07:27:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26864\/\"},\"wordCount\":5,\"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\/26864\/\",\"url\":\"https:\/\/atmokpo.com\/w\/26864\/\",\"name\":\"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T11:53:17+00:00\",\"dateModified\":\"2024-11-26T07:27:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/26864\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/26864\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/26864\/#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, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\"}]},{\"@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, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc - \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\/26864\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc774\ubc88 \uae00\uc5d0\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud1b5\ud574 \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc(Union-Find) \uc790\ub8cc\uad6c\uc870\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0 \uc774\ub97c \uc790\ubc14\ub85c \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 \uc720\ud615\uc758 \ubb38\uc81c\ub97c \uc120\ud0dd\ud558\uc5ec \uc2e4\uc81c \ucf54\ub4dc\ub97c \uc791\uc131\ud574\ubcf4\ub294 \uacfc\uc815\uc744 \uc9c4\ud589\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub780? \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\ub294 &#8216;\uc11c\ub85c\uc18c \uc9d1\ud569(Disjoint Set)&#8217;\uc744 \uad00\ub9ac\ud558\uae30 \uc704\ud55c \uc790\ub8cc \uad6c\uc870\ub85c, \uc8fc\ub85c \uadf8\ub798\ud504\uc5d0\uc11c \uc5f0\uacb0 \uc694\uc18c\ub97c \ucc3e\uac70\ub098 \ud2b9\uc815 \ub450 \uc6d0\uc18c\uac00 \uac19\uc740 \uc9d1\ud569\uc5d0 \uc18d\ud558\ub294\uc9c0\ub97c \ud310\ub2e8\ud558\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc774 \uc790\ub8cc\uad6c\uc870\uc758 \uc8fc\uc694 &hellip; \ub354 \ubcf4\uae30 \"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc\"","og_url":"https:\/\/atmokpo.com\/w\/26864\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T11:53:17+00:00","article_modified_time":"2024-11-26T07:27:48+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\/26864\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/26864\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc","datePublished":"2024-10-27T11:53:17+00:00","dateModified":"2024-11-26T07:27:48+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/26864\/"},"wordCount":5,"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\/26864\/","url":"https:\/\/atmokpo.com\/w\/26864\/","name":"\uc790\ubc14 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T11:53:17+00:00","dateModified":"2024-11-26T07:27:48+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/26864\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/26864\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/26864\/#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, \uc720\ub2c8\uc628 \ud30c\uc778\ub4dc"}]},{"@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\/26864","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=26864"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26864\/revisions"}],"predecessor-version":[{"id":26865,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/26864\/revisions\/26865"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=26864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=26864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=26864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}