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

Create Stoer_Wargner.cpp #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create Stoer_Wargner.cpp #1

wants to merge 1 commit into from

Conversation

arpitnits
Copy link

It is the realization of Simple Stoer_wargner's algorithm. This algorithm is based on the idea of shrinking the graph by merging the most intensive vertices until the graph only contains two combined vertex sets.
For the MinCutPhase, a single run of it needs at most O(|E|+|V|log |V|)} time which is called |V| -1 times by the MinCut function.
Therefore, the overall running time should be the product of two-phase complexity, which is O(|V||E|+ V log |V|).

It is the realization of Simple Stoer_wargner's algorithm. This algorithm is based on the idea of shrinking the graph by merging the most intensive vertices until the graph only contains two combined vertex sets. 
For the MinCutPhase, a single run of it needs at most O(|E|+|V|log |V|)} time which is called |V| -1 times by the MinCut function.
Therefore, the overall running time should be the product of two-phase complexity, which is O(|V||E|+ V log |V|).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant