{"id":27278,"date":"2024-10-27T14:10:08","date_gmt":"2024-10-27T14:10:08","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27278"},"modified":"2024-11-26T07:19:57","modified_gmt":"2024-11-26T07:19:57","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-dfs%ec%99%80-bfs-%ed%94%84%eb%a1%9c%ea%b7%b8%eb%9e%a8","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27278\/","title":{"rendered":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8"},"content":{"rendered":"<p><body><\/p>\n<p>\uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc790\ub85c \ucde8\uc5c5\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \uc2dc\ud5d8\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ud2b9\ud788 DFS(Depth-First Search)\uc640 BFS(Breadth-First Search)\ub294 \uadf8\ub798\ud504 \ud0d0\uc0c9\uc758 \uae30\ubcf8 \uac1c\ub150\uc73c\ub85c, \ub9ce\uc740 \ubb38\uc81c\uc5d0\uc11c \ud65c\uc6a9\ub429\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 DFS\uc640 BFS \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud55c \ubb38\uc81c\ub97c \uc18c\uac1c\ud558\uace0, \ubb38\uc81c \ud574\uacb0 \uacfc\uc815\uc744 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\uac00\uc7a5 \uba3c\uc800, \ub2e4\uc74c\uacfc \uac19\uc740 \uadf8\ub798\ud504\uac00 \uc788\ub2e4\uace0 \uac00\uc815\ud574\ubd05\uc2dc\ub2e4. \uc774 \uadf8\ub798\ud504\ub294 \uc815\uc810(Vertex)\uacfc \uac04\uc120(Edge)\uc73c\ub85c \uad6c\uc131\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uadf8\ub798\ud504\ub97c \ud0d0\uc0c9\ud558\uc5ec \ud2b9\uc815 \uc815\uc810\uc744 \ucc3e\ub294 \ubb38\uc81c\ub97c \ud574\uacb0\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\ubb38\uc81c<\/h3>\n<p>\uadf8\ub798\ud504\uac00 \uc8fc\uc5b4\uc9c8 \ub54c, \uc8fc\uc5b4\uc9c4 \uc2dc\uc791 \uc815\uc810\uc5d0\uc11c \ud2b9\uc815 \uc815\uc810\uc744 \ucc3e\uae30 \uc704\ud55c DFS\uc640 BFS \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud558\uc2dc\uc624.<\/p>\n<h3>\uc785\ub825<\/h3>\n<ul>\n<li>\uc815\uc810\uc758 \uc218: <code>n<\/code> (2 \u2264 n \u2264 100)<\/li>\n<li>\uac04\uc120\uc758 \uc218: <code>m<\/code> (1 \u2264 m \u2264 300)<\/li>\n<li>\uac04\uc120\uc758 \ubaa9\ub85d: \uac01 \uac04\uc120\uc740 \ub450 \uc815\uc810\uc73c\ub85c \uad6c\uc131\ub428 (u, v)<\/li>\n<li>\uc2dc\uc791 \uc815\uc810: <code>start<\/code><\/li>\n<li>\ucc3e\uace0\uc790 \ud558\ub294 \uc815\uc810: <code>target<\/code><\/li>\n<\/ul>\n<h3>\ucd9c\ub825<\/h3>\n<p>\uc2dc\uc791 \uc815\uc810\uc5d0\uc11c\ubd80\ud130 target \uc815\uc810\uae4c\uc9c0 \ub3c4\ub2ec\ud560 \uc218 \uc788\uc73c\uba74 <code>true<\/code>, \uc5c6\uc73c\uba74 <code>false<\/code>\ub97c \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/p>\n<h2>\ubb38\uc81c \ud480\uc774<\/h2>\n<p>\uc774\ubc88 \ubb38\uc81c\ub294 DFS\uc640 BFS \uc54c\uace0\ub9ac\uc998\uc744 \ud1b5\ud574 \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub450 \ubc29\ubc95 \ubaa8\ub450 \uadf8\ub798\ud504 \ud0d0\uc0c9\uc744 \uc704\ud574 \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \uae30\ubc95\uc785\ub2c8\ub2e4. \ub450 \uc54c\uace0\ub9ac\uc998\uc758 \ub3d9\uc791 \uc6d0\ub9ac\ub97c \uba3c\uc800 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>DFS(Depth-First Search)<\/h3>\n<p>DFS\ub294 \uae4a\uc774 \uc6b0\uc120 \ud0d0\uc0c9\uc73c\ub85c, \ud55c \ub178\ub4dc\ub97c \uae4a\uac8c \ud0d0\uc0c9\ud55c \ub4a4 \ub354 \uc774\uc0c1 \ud0d0\uc0c9\ud560 \ub178\ub4dc\uac00 \uc5c6\uc73c\uba74 \ub4a4\ub85c \ub3cc\uc544\uc640 \ub2e4\ub978 \ub178\ub4dc\ub97c \ud0d0\uc0c9\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc2a4\ud0dd\uc744 \uc0ac\uc6a9\ud558\uc5ec \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>BFS(Breadth-First Search)<\/h3>\n<p>BFS\ub294 \ub108\ube44 \uc6b0\uc120 \ud0d0\uc0c9\uc73c\ub85c, \ud55c \ub178\ub4dc\uc758 \ubaa8\ub4e0 \uc774\uc6c3 \ub178\ub4dc\ub97c \ud0d0\uc0c9\ud55c \ub4a4, \ub2e4\uc74c \uc774\uc6c3 \ub178\ub4dc\ub97c \ud0d0\uc0c9\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. Queue \uc790\ub8cc\uad6c\uc870\ub97c \uc0ac\uc6a9\ud558\uc5ec \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>\uad6c\ud604<\/h2>\n<p>\uc774\uc81c C#\uc73c\ub85c DFS\uc640 BFS \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>1. \uadf8\ub798\ud504 \ud45c\ud604<\/h3>\n<p>\uadf8\ub798\ud504\ub294 \uc778\uc811 \ub9ac\uc2a4\ud2b8 \ud615\ud0dc\ub85c \ud45c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uac01 \ub178\ub4dc\uc5d0 \ub300\ud574 \uc5f0\uacb0\ub41c \ub178\ub4dc\ub97c \ub9ac\uc2a4\ud2b8 \ud615\ud0dc\ub85c \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n<pre><code class=\"language-csharp\">\npublic class Graph\n{\n    private int vertices; \/\/ \uc815\uc810\uc758 \uc218\n    private List<int>[] adjList; \/\/ \uc778\uc811 \ub9ac\uc2a4\ud2b8\n\n    public Graph(int n)\n    {\n        this.vertices = n;\n        adjList = new List<int>[n];\n        for (int i = 0; i &lt; n; i++)\n        {\n            adjList[i] = new List<int>();\n        }\n    }\n\n    \/\/ \uac04\uc120 \ucd94\uac00 \uba54\uc18c\ub4dc\n    public void AddEdge(int u, int v)\n    {\n        adjList[u].Add(v);\n        adjList[v].Add(u); \/\/ \ubb34\ud5a5 \uadf8\ub798\ud504\n    }\n\n    public List<int> GetNeighbors(int vertex)\n    {\n        return adjList[vertex];\n    }\n}\n<\/int><\/int><\/int><\/int><\/code><\/pre>\n<h3>2. DFS \uad6c\ud604<\/h3>\n<p>DFS\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uc7ac\uadc0\uc801\uc778 \ubc29\ubc95\uc73c\ub85c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code class=\"language-csharp\">\npublic class DFS\n{\n    private bool[] visited;\n    private Graph graph;\n\n    public DFS(Graph g)\n    {\n        this.graph = g;\n        this.visited = new bool[g.vertices];\n    }\n\n    public bool Search(int start, int target)\n    {\n        \/\/ \ud604\uc7ac \ub178\ub4dc\ub97c \ubc29\ubb38 \ucc98\ub9ac\n        if (start == target) return true;\n        visited[start] = true;\n\n        foreach (int neighbor in graph.GetNeighbors(start))\n        {\n            if (!visited[neighbor] &amp;&amp; Search(neighbor, target))\n            {\n                return true; \/\/ \ud0c0\uac9f \ubc1c\uacac\n            }\n        }\n        return false; \/\/ \ud0c0\uac9f \ubc1c\uacac\ud558\uc9c0 \ubabb\ud568\n    }\n}\n<\/code><\/pre>\n<h3>3. BFS \uad6c\ud604<\/h3>\n<p>BFS\ub294 Queue\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub2e4\uc74c \ub178\ub4dc\ub97c \ud0d0\uc0c9\ud558\ub294 \ubc29\uc2dd\uc73c\ub85c \uad6c\ud604\ud569\ub2c8\ub2e4.<\/p>\n<pre><code class=\"language-csharp\">\nusing System.Collections.Generic;\n\npublic class BFS\n{\n    private bool[] visited;\n    private Graph graph;\n\n    public BFS(Graph g)\n    {\n        this.graph = g;\n        this.visited = new bool[g.vertices];\n    }\n\n    public bool Search(int start, int target)\n    {\n        Queue<int> queue = new Queue<int>();\n        queue.Enqueue(start);\n        visited[start] = true;\n\n        while (queue.Count &gt; 0)\n        {\n            int current = queue.Dequeue();\n            if (current == target) return true;\n\n            foreach (int neighbor in graph.GetNeighbors(current))\n            {\n                if (!visited[neighbor])\n                {\n                    queue.Enqueue(neighbor);\n                    visited[neighbor] = true;\n                }\n            }\n        }\n        return false; \/\/ \ud0c0\uac9f \ubc1c\uacac\ud558\uc9c0 \ubabb\ud568\n    }\n}\n<\/int><\/int><\/code><\/pre>\n<h2>\ud14c\uc2a4\ud2b8 \ucf00\uc774\uc2a4<\/h2>\n<p>\uc774\uc81c \uad6c\ud604\ud55c \uc54c\uace0\ub9ac\uc998\uc744 \ud14c\uc2a4\ud2b8\ud558\uae30 \uc704\ud574, \uac04\ub2e8\ud55c \uadf8\ub798\ud504\ub97c \ub9cc\ub4e4\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code class=\"language-csharp\">\npublic class MainClass\n{\n    public static void Main(string[] args)\n    {\n        Graph graph = new Graph(5);\n        graph.AddEdge(0, 1);\n        graph.AddEdge(0, 2);\n        graph.AddEdge(1, 3);\n        graph.AddEdge(1, 4);\n        graph.AddEdge(2, 4);\n\n        DFS dfs = new DFS(graph);\n        BFS bfs = new BFS(graph);\n\n        Console.WriteLine(\"DFS: \" + dfs.Search(0, 4)); \/\/ true\n        Console.WriteLine(\"BFS: \" + bfs.Search(0, 4)); \/\/ true\n\n        Console.WriteLine(\"DFS (No path): \" + dfs.Search(0, 5)); \/\/ false\n        Console.WriteLine(\"BFS (No path): \" + bfs.Search(0, 5)); \/\/ false\n    }\n}\n<\/code><\/pre>\n<h2>\uc885\ud569 \uc815\ub9ac<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 DFS\uc640 BFS \uc54c\uace0\ub9ac\uc998\uc744 \ud1b5\ud574 \uadf8\ub798\ud504 \ud0d0\uc0c9 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uac01\uac01\uc758 \ud0d0\uc0c9 \ubc29\ubc95\uc740 \uc7a5\uc810\uacfc \ub2e8\uc810\uc774 \uc788\uc73c\uba70, \ubb38\uc81c\uc758 \uc131\uaca9\uc5d0 \ub530\ub77c \uc801\uc808\ud55c \ubc29\ubc95\uc744 \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4. DFS\ub294 \uba54\ubaa8\ub9ac \uc0ac\uc6a9\uc774 \uc801\uace0, \uae4a\uc774 \uc788\ub294 \ubb38\uc81c\ub97c \ud574\uacb0\ud560 \ub54c \uc720\ub9ac\ud558\uc9c0\ub9cc \uacbd\ub85c\ub97c \ucc3e\ub294 \ub370 \uc2dc\uac04\uc774 \ub354 \uac78\ub9b4 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubc18\uba74, BFS\ub294 \ucd5c\ub2e8 \uacbd\ub85c\ub97c \ucc3e\ub294 \ub370 \uc720\ub9ac\ud558\uc9c0\ub9cc, \uba54\ubaa8\ub9ac \uc0ac\uc6a9\ub7c9\uc774 \ub9ce\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc774 \uae30\uc0ac\ub97c \ud1b5\ud574 DFS\uc640 BFS\ub97c \uc774\ud574\ud558\uace0, \ub2e4\uc591\ud55c \ucf54\ub529 \ud14c\uc2a4\ud2b8 \ubb38\uc81c\uc5d0 \ub300\uc751\ud560 \uc218 \uc788\ub294 \uc5ed\ub7c9\uc744 \uae30\ub974\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<h2>\ucc38\uace0 \uc790\ub8cc<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.geeksforgeeks.org\">Geeks for Geeks<\/a><\/li>\n<li><a href=\"https:\/\/leetcode.com\">LeetCode<\/a><\/li>\n<li>\uc54c\uace0\ub9ac\uc998 \uad00\ub828 \uc11c\uc801<\/li>\n<\/ul>\n<h2>\uacb0\ub860<\/h2>\n<p>\ucf54\ub529\ud14c\uc2a4\ud2b8\ub294 \uac1c\ubc1c\uc790\ub85c\uc11c\uc758 \uae30\ubcf8 \uc5ed\ub7c9\uc744 \ud3c9\uac00\ud558\ub294 \uc911\uc694\ud55c \uacfc\uc815\uc785\ub2c8\ub2e4. DFS\uc640 BFS \uc54c\uace0\ub9ac\uc998\uc740 \uadf8\ub798\ud504 \ud0d0\uc0c9\uc758 \uae30\ucd08\uc801\uc778 \ubc29\ubc95\uc73c\ub85c, \uae30\ubcf8\uae30\ub97c \ub2e4\uc9c0\ub294 \ub370 \ud070 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4. \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998\uacfc \uc790\ub8cc\uad6c\uc870\ub97c \uc775\ud788\uace0, \uc5f0\uc2b5\uc744 \ud1b5\ud574 \uc2e4\ub825\uc744 \ud0a4\uc6cc\ub098\uac00\uae38 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc790\ub85c \ucde8\uc5c5\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \uc2dc\ud5d8\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ud2b9\ud788 DFS(Depth-First Search)\uc640 BFS(Breadth-First Search)\ub294 \uadf8\ub798\ud504 \ud0d0\uc0c9\uc758 \uae30\ubcf8 \uac1c\ub150\uc73c\ub85c, \ub9ce\uc740 \ubb38\uc81c\uc5d0\uc11c \ud65c\uc6a9\ub429\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 DFS\uc640 BFS \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud55c \ubb38\uc81c\ub97c \uc18c\uac1c\ud558\uace0, \ubb38\uc81c \ud574\uacb0 \uacfc\uc815\uc744 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uac00\uc7a5 \uba3c\uc800, \ub2e4\uc74c\uacfc \uac19\uc740 \uadf8\ub798\ud504\uac00 \uc788\ub2e4\uace0 \uac00\uc815\ud574\ubd05\uc2dc\ub2e4. \uc774 \uadf8\ub798\ud504\ub294 \uc815\uc810(Vertex)\uacfc \uac04\uc120(Edge)\uc73c\ub85c \uad6c\uc131\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uadf8\ub798\ud504\ub97c \ud0d0\uc0c9\ud558\uc5ec \ud2b9\uc815 \uc815\uc810\uc744 \ucc3e\ub294 \ubb38\uc81c\ub97c \ud574\uacb0\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27278\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8&#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-27278","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, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8 - \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\/27278\/\" \/>\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, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc790\ub85c \ucde8\uc5c5\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \uc2dc\ud5d8\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ud2b9\ud788 DFS(Depth-First Search)\uc640 BFS(Breadth-First Search)\ub294 \uadf8\ub798\ud504 \ud0d0\uc0c9\uc758 \uae30\ubcf8 \uac1c\ub150\uc73c\ub85c, \ub9ce\uc740 \ubb38\uc81c\uc5d0\uc11c \ud65c\uc6a9\ub429\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 DFS\uc640 BFS \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud55c \ubb38\uc81c\ub97c \uc18c\uac1c\ud558\uace0, \ubb38\uc81c \ud574\uacb0 \uacfc\uc815\uc744 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uac00\uc7a5 \uba3c\uc800, \ub2e4\uc74c\uacfc \uac19\uc740 \uadf8\ub798\ud504\uac00 \uc788\ub2e4\uace0 \uac00\uc815\ud574\ubd05\uc2dc\ub2e4. \uc774 \uadf8\ub798\ud504\ub294 \uc815\uc810(Vertex)\uacfc \uac04\uc120(Edge)\uc73c\ub85c \uad6c\uc131\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uadf8\ub798\ud504\ub97c \ud0d0\uc0c9\ud558\uc5ec \ud2b9\uc815 \uc815\uc810\uc744 \ucc3e\ub294 \ubb38\uc81c\ub97c \ud574\uacb0\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. &hellip; \ub354 \ubcf4\uae30 &quot;C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27278\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:10:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:19:57+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\/27278\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27278\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8\",\"datePublished\":\"2024-10-27T14:10:08+00:00\",\"dateModified\":\"2024-11-26T07:19:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27278\/\"},\"wordCount\":51,\"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\/27278\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27278\/\",\"name\":\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:10:08+00:00\",\"dateModified\":\"2024-11-26T07:19:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27278\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27278\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27278\/#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, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8\"}]},{\"@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, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8 - \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\/27278\/","og_locale":"ko_KR","og_type":"article","og_title":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc790\ub85c \ucde8\uc5c5\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc54c\uace0\ub9ac\uc998 \uc2dc\ud5d8\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ud2b9\ud788 DFS(Depth-First Search)\uc640 BFS(Breadth-First Search)\ub294 \uadf8\ub798\ud504 \ud0d0\uc0c9\uc758 \uae30\ubcf8 \uac1c\ub150\uc73c\ub85c, \ub9ce\uc740 \ubb38\uc81c\uc5d0\uc11c \ud65c\uc6a9\ub429\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 DFS\uc640 BFS \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud55c \ubb38\uc81c\ub97c \uc18c\uac1c\ud558\uace0, \ubb38\uc81c \ud574\uacb0 \uacfc\uc815\uc744 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uac00\uc7a5 \uba3c\uc800, \ub2e4\uc74c\uacfc \uac19\uc740 \uadf8\ub798\ud504\uac00 \uc788\ub2e4\uace0 \uac00\uc815\ud574\ubd05\uc2dc\ub2e4. \uc774 \uadf8\ub798\ud504\ub294 \uc815\uc810(Vertex)\uacfc \uac04\uc120(Edge)\uc73c\ub85c \uad6c\uc131\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uadf8\ub798\ud504\ub97c \ud0d0\uc0c9\ud558\uc5ec \ud2b9\uc815 \uc815\uc810\uc744 \ucc3e\ub294 \ubb38\uc81c\ub97c \ud574\uacb0\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. &hellip; \ub354 \ubcf4\uae30 \"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8\"","og_url":"https:\/\/atmokpo.com\/w\/27278\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:10:08+00:00","article_modified_time":"2024-11-26T07:19:57+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\/27278\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27278\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8","datePublished":"2024-10-27T14:10:08+00:00","dateModified":"2024-11-26T07:19:57+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27278\/"},"wordCount":51,"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\/27278\/","url":"https:\/\/atmokpo.com\/w\/27278\/","name":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:10:08+00:00","dateModified":"2024-11-26T07:19:57+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27278\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27278\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27278\/#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, DFS\uc640 BFS \ud504\ub85c\uadf8\ub7a8"}]},{"@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":27254,"url":"https:\/\/atmokpo.com\/w\/27254\/","url_meta":{"origin":27278,"position":0},"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":27232,"url":"https:\/\/atmokpo.com\/w\/27232\/","url_meta":{"origin":27278,"position":1},"title":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud2b9\uc815 \uac70\ub9ac\uc758 \ub3c4\uc2dc \ucc3e\uae30","author":"root","date":"2024\ub144 10\uc6d4 27\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \uc791\uc131\uc77c: 2024\ub144 11\uc6d4 26\uc77c \ubb38\uc81c \uc815\uc758 \uc8fc\uc5b4\uc9c4 \ub3c4\uc2dc\uc640 \uac70\ub9ac \uc815\ubcf4\ub97c \ubc14\ud0d5\uc73c\ub85c, \ud2b9\uc815 \uac70\ub9ac K\uc5d0 \uc815\ud655\ud788 \ub3c4\ub2ec\ud560 \uc218 \uc788\ub294 \ub3c4\uc2dc \ubaa9\ub85d\uc744 \uad6c\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uac01 \ub3c4\uc2dc\ub294 \ubc88\ud638\ub85c \ud45c\ud604\ub418\uba70, \ub450 \ub3c4\uc2dc \uac04\uc758 \uac70\ub9ac \uc815\ubcf4\ub294 \uc591\ubc29\ud5a5 \ub3c4\ub85c\ub85c \uc5f0\uacb0\ub41c \ud615\ud0dc\ub85c \uc8fc\uc5b4\uc9d1\ub2c8\ub2e4. \ubaa9\ud45c\ub294 K\ub9cc\ud07c \ub5a8\uc5b4\uc9c4 \ub3c4\uc2dc\ub97c \ucc3e\ub294 \uac83\uc785\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, N\uac1c\uc758 \ub3c4\uc2dc\uac00 \uc788\uace0, M\uac1c\uc758\u2026","rel":"","context":"&quot;\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ed%8c%8c%ec%9d%b4%ec%8d%ac-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27825,"url":"https:\/\/atmokpo.com\/w\/27825\/","url_meta":{"origin":27278,"position":2},"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":27621,"url":"https:\/\/atmokpo.com\/w\/27621\/","url_meta":{"origin":27278,"position":3},"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":27278,"position":4},"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":27278,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27278","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=27278"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27278\/revisions"}],"predecessor-version":[{"id":27279,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27278\/revisions\/27279"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}