Re:Donald Knuth's 2024 Christmas Lecture: Strong and Weak Co...
by taeric on Friday February 07, 2025 @10:15AM
(#42973580)
In addition, I'd also recommend looking at his implementations, directly. https://www-cs-faculty.stanford.edu/~knuth/programs/dlx6.w, for example.
That's the change to the "basic" algorithm, but he then goes on to add a bunch of new features to basic Dancing Links, modifying it so that it's suitable for different kinds of constraint solving (adding required rows, things like that).
If you've implemented Dancing Links in the past, you owe it to yourself to check out the book version! He also has hundreds of really great exercises about it.