Nonograms, also known as Hanjie, Paint by Numbers, Griddlers, Pic-a-Pix, and Picross, are picture logic puzzles in which cells in a grid must be colored or left blank according to numbers at the edges of the grid to reveal a hidden picture. In this puzzle, the numbers are a form of discrete tomography that measures how many unbroken lines of filled-in squares there are in any given row or column. For example, a clue of "4 8 3" would mean there are sets of four, eight, and three filled squares, in that order, with at least one blank square between successive sets. These puzzles are often black and white — describing a binary image — but they can also be colored. If colored, the number clues are also colored to indicate the color of the squares. Two differently colored numbers may or may not have a space in between them. For example, a black four followed by a red two could mean four black boxes, some empty spaces, and two red boxes, or it could simply mean four black boxes followed immediately by two red ones. Nonograms have no theoretical limits on size, and are not restricted to square layouts. Nonograms were named after Non Ishida, one of the two inventors of the puzzle.
History In 1987, Non Ishida, a Japanese graphics editor, won a competition in Tokyo by designing grid pictures using skyscraper lights that were turned on or off. This led her to the idea of a puzzle based around filling in certain squares in a grid. Coincidentally, a professional Japanese puzzler named Tetsuya Nishio invented the same puzzles independently, and published them in another magazine. At this time, nonograms were also called picture-forming logic puzzles. In 1988, Non Ishida published three picture grid puzzles in Japan under the name of "Window Art Puzzles". Ishida showed her puzzles to James Dalgety, a puzzle collector in the United Kingdom, who liked the puzzles and offered to help publish her work worldwide. Dalgety coined the name "nonogram" as a mashup of "Non" from their creator's name, and "gram" from the word "diagram".
Print publishing Dalgety made a deal with The Sunday Telegraph to publish Ishida's nonograms on a weekly basis starting in 1990. By 1993, the first book of nonograms was published by Non Ishida in Japan. The Sunday Telegraph published a dedicated puzzle book titled the "Book of Nonograms". Nonograms were also published in Sweden, the United States (originally by Games magazine), South Africa and other countries. The Sunday Telegraph ran a competition in 1998 to choose a new name for their puzzles. "Griddlers" was the winning name that readers chose. In 1993, Ishida published the "Book of Nonograms".
Electronic puzzles Nonogram puzzles were implemented by 1995 on hand-held electronic toys such as Game Boy and on other plastic puzzle toys. Nintendo picked up on this puzzle fad, claiming the trademark for the name Picross (short for "picture crossword") for their own use, and released two nonogram titles for the Game Boy and nine for the Super Famicom (eight of which were released in two-month intervals for the Nintendo Power Super Famicom Cartridge Writer as the NP series) in Japan. Only one of these, Mario's Picross for the Game Boy, was released outside Japan. Nintendo's Picross titles are primarily developed by Jupiter Corporation, who also released Picross DS on the Nintendo DS, nine titles in the Picross e series for the Nintendo 3DS, and nine titles in the Picross S series for the Nintendo Switch. They have also produced several Picross titles featuring licensed properties, including Pokémon, Sanrio characters, and Doraemon. Increased popularity in Japan launched new publishers, and by then, there were several monthly magazines, some of which contained up to 100 puzzles. The Japanese arcade game Logic Pro was released by Deniam Corp in 1996, with a sequel released the following year. UK games developer Jagex released a nonogram puzzle in 2011 as part of their annual Halloween event for their role-playing game, Runescape. In 2013, Casual Labs released a mobile version of these puzzles called Paint it Back with the theme of restoring an art gallery. Released early in 2017, Pictopix has been presented as a worthy heir to Picross on PC by Rock, Paper, Shotgun. In particular, the game enables players to share their creations.
Today Nonograms have been published by Sanoma Uitgevers in the Netherlands, Puzzler Media (formerly British European Associated Publishers) in the UK and Nikui Rosh Puzzles in Israel. Magazines with nonogram puzzles are published in the US, UK, Germany, Netherlands, Italy, Hungary, Finland, the Czech Republic, Slovakia, Russia, Ukraine, and many other countries. Numerous names have been developed for these puzzles, typically from names given by various publications or from computer programs that offer these puzzles. Including Griddlers, such names include CrossPix, Descarte's Enigma, FigurePic, IllustLogic, Oekaki-Logic, Paint by Numbers, PictureLogic, and StarPic. Although the name is trademarked by Nintendo, Picross has also been used to refer to nonogram puzzles.
Example
Nonograms in computing Deciding whether a nonogram puzzle has a solution is an NP-complete problem. This places the related problem of constructing a solution (or demonstrating that no solution exists) for a given puzzle into the category of NP-hard problems, meaning that there is no polynomial time algorithm that solves all nonogram puzzles unless P = NP. However, certain classes of puzzles, such as those in which each row or column has only one block of cells and all cells are connected, may be solved in polynomial time by transforming the problem into an instance of 2-satisfiability.
Software solvers An extensive comparison and discussion of nonogram solving algorithms is found at the WebPBN site (Web Paint-By-Number). A nonogram solver written in C++ and published in the journal Pattern Recognition solves lines in quadratic time at most.
… excerpt ends here. Continue reading the full article.

