-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from 19-1-skku-oss/pbranch
New README at Graph
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
그래프는 두가지 탐색방법을 대표적으로 가지고 있다. | ||
1. 너비 우선 탐색 BFS(Breadth First Search) | ||
-BFS는 버텍스의 형제들을 먼저 탐색한다. | ||
-Queue 를 이용하여 그래프를 traverse 한다.(자세한 내용은 코드 참고) | ||
|
||
![BFS](https://cdn.filepicker.io/api/file/6sBaBZQVuci45KJTlGQ9) | ||
|
||
2. 깊이 우선 탐색 DFS(Depth First Search) | ||
-DFS는 Vertax의 자식들을 먼저 탐색한다. | ||
-Stack 를 이용하여 그래프를 traverse 한다.(자세한 내용은 코드 참고) | ||
|
||
![DFS](https://cdn.filepicker.io/api/file/FXAmj6SjTYSMalugzkQw) | ||
|