-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
Bug in gale_ryser_theorem #11324
Comments
Attachment: trac_11324.patch.gz |
comment:1
What bug? The above thread seems to simply state that the DegreeSequenceBipartite method was implemented wrong. |
comment:2
Nathann explained the bug and I think I found the fix. I'm testing and hope to post a patch soon. |
standalone patch, applies to 4.7.rc1 |
comment:3
Attachment: trac_11324.2.patch.gz |
comment:4
I added a patch which rewrites I also looked at and tested the docstring patch of Nathann.It looks good to me and passes tests. |
comment:7
Hellooooo !!! I've been trying to apply your patch with all the possible orderings, but I can't get it to pass Among other things there is a "fixedcol" variable in your .3 patch that I don'tsee appearing in the original file, nor in my patch nor in your .2 Nathann |
Attachment: trac_11324.3.patch.gz apply only this patch |
comment:8
Hello ! David and I talked about it over emails, but even though the patch fixes the bug there is now a large difference in speed between the two algorithms. Using the test function defined in the docstring, it gives :
It is probable that this implementation could be greatly improved, at least by rewriting it in Cython, but as it could take some time and as this already comes from a nasty bug that has been noticed in the Graph library, perhaps the best is to have a quick fix for now. With this patch, the default algorithm is moved to "gale", and I also edited a part of the docstring which did not make sense anymore, now that GLPK is by default included in Sage. If you can review my patch, or if you found a wonderful way to get its former speed's back in between... Nathann |
This comment has been minimized.
This comment has been minimized.
comment:9
Replying to @nathanncohen:
In principle, your patch is good. It reads fine. However, when you change the default,
|
comment:10
Oopssssss.... Fixed ! I instead set the algorithm in these doctests to "ryser", as it is much less sensible to numerical noise than Gale's, which uses GLPK (or CPLEX when installed). Nathann |
comment:11
Replying to @nathanncohen:
That works now. I give the reviewer patch a positive review. Nathann, I'll leave the final decision to you. Thanks for the help! |
comment:12
Oh ! Then all's good to go And by the way, you did all the hard stuff on this ticket, so thanks to you !! Nathann |
Author: David Joyner |
Reviewer: Nathann Cohen |
Merged: sage-4.7.1.alpha3 |
comment:15
The description says "Here is a patch implementing a new doctest checking for correction, but so far the ryser method still needs to be fixed !". Is this up-to-date? If yes, why adding a doctest for a broken method? In any case, this needs work. On a Mac OS X 10.4 PPC system, I can easily reproduce the following:
The error does not show up every time, but let's say 1 time of out 5 tests. |
Changed merged from sage-4.7.1.alpha3 to none |
This comment has been minimized.
This comment has been minimized.
comment:18
Gloops... This was an old bug, without any link to what we were adressing now. The problem appeared when the function was given as an entry containing only vectors David ? Are you still around ? Nathann |
Attachment: trac_11324-reviewer.patch.gz |
comment:19
Ping ? |
comment:20
Replying to @nathanncohen:
...
Sorry for the delay. The reviewer's patch applies (on top of the previous patch) fine on 4.7.1.rc1. Thanks Nathann!
|
comment:21
Thaaaaaaaanks |
Merged: sage-4.7.2.alpha4 |
See the discussion at :
https://groups.google.com/d/topic/sage-devel/IyrgvrLch4M/discussion
Apply :
Nathann
CC: @wdjoyner
Component: combinatorics
Author: David Joyner
Reviewer: Nathann Cohen
Merged: sage-4.7.2.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/11324
The text was updated successfully, but these errors were encountered: