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 | 31 |
Tags
- 앱
- 안드로이드
- 최단경로
- KMP
- 앱 이름 변경
- BFS
- 계산기
- 한글 깨짐
- 어플
- C++
- lower_bound
- AlertDialog
- scc
- 알고리즘
- Kosaraju's algorithm
- Parametric Search
- upper_bound
- 안드로이드 스튜디오
- 이분 탐색
- c언어
Archives
- Today
- Total
목록Kosaraju's algorithm (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