Repository navigation
Some small optimizations for Edmonds maximum cardinality matchings - #700
Merged
Merged
Conversation
jkinable
reviewed
Nov 11, 2018
| /** | ||
| * Storage of the forest, even and odd levels. | ||
| * | ||
| * We explicitly maintain a dirty mark in order to be able to cleanup only the |
Collaborator
There was a problem hiding this comment.
Are you certain that just resetting the dirty bits as opposed to resetting the entire even/odd arrays is sufficient? I can't remember the exact details, but could it be the case that not resetting the entire array leads to errors? E.g. if you labeled a vertex in the previous augmenting round which should receive a different label in the new round?
Member
Author
There was a problem hiding this comment.
We call levels.reset() in each round, which means that the even/odd arrays always start as completely initialized.
jkinable
reviewed
Nov 11, 2018
jkinable
left a comment
Collaborator
There was a problem hiding this comment.
I've left 1 comment which I'm not really certain of. Please verify. Looks good otherwise.
Collaborator
|
thanks! |
SChudakov
pushed a commit
to SChudakov/jgrapht
that referenced
this pull request
Jan 9, 2019
…grapht#700) * Performance optimizations for Edmonds Maximum Cardinality Matchings * Minor improvements in the docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A few minor optimizations for our maximum cardinality matching. They improve the performance slightly, but not what I was expecting.
We still need to do some profiling to figure out why it is slow on sparse graphs.
HISTORY.mdorCONTRIBUTORS.md