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
[massively positive review] Include Antti Ajanki's DLX library #2271
Comments
Attachment: 2271_adds_DLX.hg.gz |
comment:2
+1 to include this in Sage. I haven't formally refereed it. You should just attach a single plain text patch instead of an hg bundle. |
comment:4
Oops, I forgot to add the functions to all.py, so the tests fail. New patch up in a few. |
comment:5
Attachment: 2271_adds_DLX.patch.gz This patch (although awesome) doesn't quite obey the new doctest-for-every-function rule, since the following functions do not have doctests:
|
This comment has been minimized.
This comment has been minimized.
Attachment: 2271_doctests.patch.gz |
comment:7
2271_doctests.patch implements world peace, washes your dishes, and makes coffee before your alarm goes off in the morning. It's truly amazing. Also, it contains doctests for everything in sight, reworks the DLXMatrix class to be a real python generator class, and implements an iterative formulation of DLX. In the creation of these doctests, I have discovered a wondrous resolution of P vs. NP, but the proof was too long to justify appending to the patch. |
comment:8
As well as a round of applause. |
comment:9
Replying to @boothby:
I guess you should have written it in the margins :) Cheers, Michael |
comment:10
Merged 2271_adds_DLX.patch and 2271_doctests.patch in Sage 2.10.3.alpha0 - w00t |
The Dancing Links algorithm (DLX) is sweet. It solves the Exact Cover problem with the quickness.
Arguments for including Ajanki's code:
Component: combinatorics
Issue created by migration from https://trac.sagemath.org/ticket/2271
The text was updated successfully, but these errors were encountered: