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

General Matching has unnecessary factor of 8 #208

Open
ecnerwala opened this issue Dec 24, 2021 · 0 comments
Open

General Matching has unnecessary factor of 8 #208

ecnerwala opened this issue Dec 24, 2021 · 0 comments

Comments

@ecnerwala
Copy link

In the randomized General Matching code, the code only knows how to extract a perfect matching, so we add up to N additional vertices before computing the matrix inverse which blows runtime up by a factor of 8. This is unnecessary, you can instead just restrict the set of vertices to the basis found in the first run of Gaussian elimination. You also shouldn't need to run Gaussian elimination a second time. (See https://codeforces.com/blog/entry/92400). This would require rewriting matInv's interface a little.

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

No branches or pull requests

1 participant