Live data from Hacker News

Donald Knuth’s 2023 Christmas Lecture: Making the Cells Dance

thenewstack.io

1–10 of 26 posts

Re: Donald Knuth’s 2023 Christmas Lecture: Making the Cells Dance

#2
Related:

Donald Knuth's Annual Christmas Lecture 2023 - https://news.ycombinator.com/item?id=38548712 - Dec 2023 (5 comments)

30 years of Donald Knuth's 'Christmas Lectures' are online – including 2023's - https://news.ycombinator.com/item?id=38775882 - Dec 2023 (10 comments)

Re: Donald Knuth’s 2023 Christmas Lecture: Making the Cells Dance

#5
Dancing Links is very marvelous form of optimization.

Thanks to a intent to optimize this problem relating to combinatorial-exploration, Knuth's "Dancing Links" operates upon a hyper-focused system where "malloc" and "free" of these linked lists are incredibly optimized.

In fact, "malloc" is like 2 or 3 assembly instructions (akin to bump-allocation), while "free" is IIRC a no-op. This is because every linked-node can only point to the immediate cell to the right, or a cell later down the line. (So a malloc is basically &curNode+1).

-------------

Its incredible that Knuth continues to work on this problem. I do think that these combinatorial problems he's gotten "stuck" on, here on Volume4, really constitute the most elegant of the entirety of the Comp. Sci field.

I would like to see more chapters of Volume4 to come out though!

----------

I'll have to look at this "dancing cells" lecture of his, any improvements in this concept will definitely intrigue me.

Re: Donald Knuth’s 2023 Christmas Lecture: Making the Cells Dance

#8
It’s been many years, but I remember really enjoying implementing dancing links for sudoku solving when I was practicing for job interviews. I wrote about it on my blog, there is some very old (probably crappy) Java code for it too.

https://rafal.io/posts/solving-sudoku-with-dancing-links.htm...

https://github.com/rafalio/dancing-links-java/tree/master

Post reply on HN