26

A good nonogram puzzle has a unique solution. However, some nonograms do not. For example, this puzzle:

      211 
    1311231
  1     
  3     
2 1   
1 1   
1 2   
  3   
  1        

Has at least two solutions, shown below:

      211 
    1311231
  1 *------
  3 --***--
2 1 -**--*-
1 1 -*---*-
1 2 -*--**-
  3 --***--
  1 ------*
  211 
1311231

1 ------ 3 ---- 2 1 ---- 1 1 ----- 1 2 ---- 3 ---- 1 ------

Is there an algorithm to decide that the puzzle has a unique solution that is more efficient than trying to solve it?

melfnt
  • 5,132
  • 2
  • 13
  • 58
Xwtek
  • 584
  • 4
  • 13

1 Answers1

1

if the rows and columns are symmetric and you cannot find any black square from a row and from a column only, it is not unique and there is at least one more solution.

Oray
  • 30,307
  • 6
  • 61
  • 215