Home on Damien Zhang
http://damienzhang.com/
Recent content in Home on Damien ZhangHugo -- gohugo.ioen-usTue, 04 Jul 2017 16:15:58 -0400A paper and pencil Sudoku algorithm … in Haskell
http://damienzhang.com/paper-pencil-sudoku-haskell/
Tue, 04 Jul 2017 16:15:58 -0400http://damienzhang.com/paper-pencil-sudoku-haskell/Solving Sudoku with paper and pencil A while back, the American Mathematical Society published a paper by J. F. Crook titled “A Pencil-and-Paper Algorithm for Solving Sudoku Puzzles” that claimed to provide a way to solve any Sudoku puzzle using only paper and pencil.
This is less impressive than it sounds, though, because people were already solving Sudoku puzzles just fine. It’s just that the hard ones would often require the uncomfortable step of taking a blind guess to make further progress.From pseudo-code to Haskell (Part 1)
http://damienzhang.com/haskell-pseudo-code-part-1/
Fri, 16 Jun 2017 19:24:46 -0400http://damienzhang.com/haskell-pseudo-code-part-1/People sometimes say that Python is executable pseudo-code. Maybe because it’s a language that’s relatively light on line noise with a lot of nice built-in functions that convey the intent of what you’re trying to do, and you can write it in a straight-forward way without getting too bogged down in ancillary details.
The same is not often said about Haskell, but actually it can be a very effective pseudo-code executer as well!About
http://damienzhang.com/about/
Mon, 01 Jan 0001 00:00:00 +0000http://damienzhang.com/about/