문제 : https://www.acmicpc.net/problem/1260 DFS BFS 1. GRAPH를 행렬화#include #include #include #include #include #include using namespace std; int arr[1020][1020]; bool visited[1020]; int vertex_num, edge_num; stack DFS_NUM; queue BFS_NUM; void DFS(int start) { visited[start] = true; cout start_vertex; for(int i=0; i> vertex1 >> vertex2; arr[vertex1][vertex2] = arr[vertex2][vertex1] = 1; } DFS(start_..
알고리즘/(깨짐)
2017. 3. 14. 22:20
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- XAML
- listview
- FEED
- UIView Animation
- CollectionView
- 타일링
- C++
- 객체
- 백준온라인
- BOJ
- Custom Cell
- Add TapGesture
- BFS
- Cell Animation
- dfs
- 문자열
- command
- WPF
- 코딩야학
- 스택
- 생활코딩
- 그래프
- Grid
- Fakebook
- MVVM
- CustomCollectionViewCell
- DP
- 백준
- 데이터 바인딩
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함