-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kosaraju #18
Kosaraju #18
Conversation
kosaraju.cpp
Outdated
visit.push(curr); | ||
} | ||
|
||
set<set<int>> kosaraju(void) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set<set>그대로 반환하면 매모리 복사->시간 오래걸림
전역으로 빼고
vector<vector>로 바꾸기
kosaraju.cpp
Outdated
|
||
stack<int> sk; | ||
sk.push(node); | ||
set<int> se; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
매모리 복사 없에기 (전역으로
kosaraju.cpp
Outdated
vector<vector<int>> edge, inverse_edge; | ||
int v, e; | ||
|
||
void dfs(vector<bool> &check, stack<int> &visit, int curr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전역변수로
close #17