{"id":32,"date":"2005-06-11T01:46:02","date_gmt":"2005-06-10T15:46:02","guid":{"rendered":"http:\/\/www.somethinkodd.com\/oddthinking\/?p=32"},"modified":"2005-06-11T13:30:47","modified_gmt":"2005-06-11T03:30:47","slug":"nonograms1","status":"publish","type":"post","link":"https:\/\/www.somethinkodd.com\/oddthinking\/2005\/06\/11\/nonograms1\/","title":{"rendered":"Does Nonogram mean &#8220;has nine names&#8221;?"},"content":{"rendered":"<p><!-- UnMarkedDown_2_01132526283--><\/p>\n<p>After the recent discussions about Sudoku, Richard A. described to me another Japanese puzzle with a similar style. It goes under various names: Tsunami (perhaps an unfortunate name in 2005), Paint-by-Numbers (another unfortunate name), Nonograms and Griddlers, <em>and more!<\/em> I am calling them nonograms, because it is the name I find least embarrassing.<\/p>\n<p>The concept is kind of odd. There are <a href=\"http:\/\/en.wikipedia.org\/wiki\/Nonogram\" title=\"Wikipedia definition of Nonogram\" class=\"wikipedia\">various descriptions on the web<\/a>. Let me add my own description to the mix, using all of the computer jargon at my disposal.<\/p>\n<p>Start with a small bitmap of a mystery icon &#8211; say 15&#215;15. Using only a 1-bit bitmap is traditional, but not required. Use of limited colours is recommended. Use of white as one of those colours is mandatory.<\/p>\n<p>For each row, summarise it with run-length encoding. That is, summarise sequences of pixels of the same colour with a description of the colour, and the number of pixels in a row of that colour. Do the same for each column.<\/p>\n<p>Hide the pixels, but leave the encodings. So now you have an empty grid, and two sequences of encodings, each with a list of (colour, run-length) pairs, acting as clues.  The puzzle will be to reconstruct the bitmap from the clues.<\/p>\n<p>So far it is easy. You have enough information to reconstruct the bitmap perfectly. In fact, you have redundancy; there is twice as much data as you need. You could encode it with the row clues alone or with the column clues alone.<\/p>\n<p>So, here is the sneaky part that makes it a challenging puzzle: Remove from your two lists all of the encodings describing runs of white squares. <\/p>\n<p>The result is two <em>partial descriptions<\/em> of the picture, from which (hopefully) you can still reconstruct the bitmap with a little bit of logic.<\/p>\n<p>Like Sudoku, there is a lot of elimination. There is very little arithmetic involved (although there is <em>some<\/em>, unlike Sudoku.)<\/p>\n<p>This description may not be satisfying, so here are some reference sites with online versions of it to get a feel for it. <\/p>\n<ul>\n<li><a href=\"http:\/\/www.griddlers.net\/\">Griddlers.Net<\/a> -Probably the best site, with some interesting variations, and sophisticated user interface.<\/li>\n<li><a href=\"http:\/\/www.playtsunami.com\/\">Online Tsunami<\/a> &#8211; first site I found, colour images, large database, mediocre usability.<\/li>\n<li><a href=\"http:\/\/www.geocities.com\/activityworkshop\/puzzlesgames\/nonograms\/\">The Activity Workshop&#8217;s Nonograms<\/a> &#8211; black-and-white, small selection, better usability<\/li>\n<li><a href=\"http:\/\/www.corona24.freeserve.co.uk\/nonograms\/\">Cool Nonograms<\/a> &#8211; black-and-white,  medium-sized database, very plain user-interface<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/Nonogram\" title=\"Wikipedia definition of Nonogram\" class=\"wikipedia\">Wikipedia entry on Paint By Numbers<\/a> &#8211; includes a description, and links to more sites with links to puzzles.<\/li>\n<\/ul>\n<p>Go ahead. Spend 20 minutes playing a few games. When you have finished, come back and read a follow up article about <a href=?p=33>how I solved them algorithmically<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction to the set of puzzles known by various names including Nonograms, Tsunami, Paint-By-Numbers, and Griddlers.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"","footnotes":""},"categories":[31,33],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-geek","category-puzzle-solving"],"_links":{"self":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":0,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}