The Wayback Machine - https://web.archive.org/web/20200918172029/https://github.com/EbTech/rust-algorithms/pull/7
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

Max bipartite matching #7

Merged
merged 12 commits into from Jan 17, 2019
Merged

Max bipartite matching #7

merged 12 commits into from Jan 17, 2019

Conversation

@eric7237cire
Copy link
Contributor

eric7237cire commented Jan 11, 2019

Another PR adding a test that shows how to use the max flow to find a maximum matching.

I had to refactor the dinic method a bit to return the flow.

@eric7237cire eric7237cire changed the title Max matching Max bipartite matching Jan 11, 2019
src/graph/flow.rs Outdated Show resolved Hide resolved
src/graph/flow.rs Outdated Show resolved Hide resolved
@eric7237cire
Copy link
Contributor Author

eric7237cire commented Jan 15, 2019

This PR actually has the requested changes for PR #5 so merging this one will include both. I hadn't branched the other one. Sorry about that.

src/graph/dfs.rs Outdated Show resolved Hide resolved
src/graph/dfs.rs Outdated Show resolved Hide resolved
src/graph/dfs.rs Outdated Show resolved Hide resolved
Copy link
Owner

EbTech left a comment

Cool, that should work!

src/graph/dfs.rs Outdated Show resolved Hide resolved
src/graph/dfs.rs Outdated Show resolved Hide resolved
src/graph/dfs.rs Outdated Show resolved Hide resolved
@eric7237cire
Copy link
Contributor Author

eric7237cire commented Jan 17, 2019

Cool, that should work!

Yeah I was pretty surprised the iterative DFS on the wikipedia page wasn't the most space efficient. Maybe because its a touch trickier to implement. Who knows.

@EbTech
EbTech approved these changes Jan 17, 2019
@EbTech EbTech merged commit 88b0d6f into EbTech:master Jan 17, 2019
@EbTech
Copy link
Owner

EbTech commented Jan 17, 2019

Awesome, I merged it in. Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.