Skip to content
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

Merged
merged 4 commits into from
Oct 9, 2020
Merged

Kosaraju #18

merged 4 commits into from
Oct 9, 2020

Conversation

illuminoplanet
Copy link
Contributor

@illuminoplanet illuminoplanet commented Sep 26, 2020

close #17

@illuminoplanet illuminoplanet linked an issue Sep 26, 2020 that may be closed by this pull request
kosaraju.cpp Outdated Show resolved Hide resolved
kosaraju.cpp Outdated
visit.push(curr);
}

set<set<int>> kosaraju(void)
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

매모리 복사 없에기 (전역으로

dotoleeoak
dotoleeoak previously approved these changes Oct 8, 2020
kosaraju.cpp Outdated
vector<vector<int>> edge, inverse_edge;
int v, e;

void dfs(vector<bool> &check, stack<int> &visit, int curr)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

전역변수로

@dotoleeoak dotoleeoak dismissed their stale review October 8, 2020 13:30

Do not use set

@illuminoplanet illuminoplanet merged commit ebac1dc into master Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SCC: Kosaraju's Algorithm
3 participants