문제 : 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
- 생활코딩
- 백준
- CollectionView
- Add TapGesture
- DP
- Cell Animation
- 그래프
- command
- 백준온라인
- UIView Animation
- WPF
- 데이터 바인딩
- Fakebook
- FEED
- BOJ
- CustomCollectionViewCell
- BFS
- listview
- Grid
- 코딩야학
- C++
- dfs
- MVVM
- 스택
- Custom Cell
- 객체
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함