Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- C++
- 이분 탐색
- 어플
- 계산기
- 앱
- upper_bound
- scc
- lower_bound
- 한글 깨짐
- 안드로이드
- 알고리즘
- c언어
- Kosaraju's algorithm
- 앱 이름 변경
- 안드로이드 스튜디오
- 최단경로
- BFS
- KMP
- Parametric Search
- AlertDialog
Archives
- Today
- Total
목록scc (1)
소시지
Kosaraju's algorithm - 강한 연결 요소(SCC) 찾기
SCC(Strongly Connected Component)란? 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354#include #include #include #include #include using namespace std;int n, out_len;bool check[10001], check2[10001];vector r[10001], r2[10001];stack S, S2;set out[10001]; void dfs(int x) { check[x] = true; for (auto it = r[x].begin(); it != r[x].end(); it++) if (che..
C++ Algorithm
2017. 1. 31. 15:47