-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
Vertex cover #7600
Comments
This comment has been minimized.
This comment has been minimized.
comment:3
I've never reviewed a patch before. We were just talking about vertex cover in my algorithms class the other day. The three problems:
are all polynomially reducible to each other. exercise 9, p 403, The Design and Analysis of Algorithms, 2nd Edition I'm not aware if those other problems are implemented in Sage. If not, maybe a ticket should be created. 3048 As vertex cover is a IMO, would be better with the word "an" in place of "a". Kevin Stueve |
comment:5
Hello !!!! You are right, these three are reducible to each other ! Actually, Sage already has an algorithm for 1) and 3) through Cliquer, which is way more efficient that LinearProgramming... I will immediately add several lines to the patch to let it use Cliquer by default, and use LP if the users wants it ( and this way we can control the respective values of the two algorithms ) :-) Thank you very much for your remark, this should speed up the algorithm amazingly ! :-) Nathann |
comment:6
Done ! Thank you very much for your help ! :-) Nathann |
comment:7
oops:
|
Attachment: trac_7600.patch.gz |
comment:8
fixed ! |
Reviewer: Robert Miller |
Author: Nathann Cohen |
Merged: sage-4.3.rc1 |
As the title says, this patch implements Graph.vertex_cover.
You could be in need of #7270 and GLPK from http://sagemath.org/packages/optional/glpk-4.38.p4.spkg depending on the version of Sage you are using !!!
CC: @sagetrac-kevin-stueve
Component: graph theory
Author: Nathann Cohen
Reviewer: Robert Miller
Merged: sage-4.3.rc1
Issue created by migration from https://trac.sagemath.org/ticket/7600
The text was updated successfully, but these errors were encountered: