Colored Nonograms: An Integer Linear Programming Approach

  • Luís Mingote
  • Francisco Azevedo
Part of the Lecture Notes in Computer Science book series (LNCS, volume 5816)


In this paper we study colored nonogram solving using Integer Linear Programming. Our approach generalizes the one used by Robert A. Bosch which was developed for black and white nonograms only, thus providing a universal solution for solving nonograms using ILP. Additionally we apply a known algorithm to find all solutions to a puzzle. This algorithm uses a binary cut to exclude already known solutions. Finally we compare the performance of our approach in solving colored nonograms against other approaches, namely the iterative and the brute-force ones, pointing to a research direction of developing a hybrid method combining the iterative approach with ILP.


Empty Cell Column Block Contiguous Block Brute Force Search Simple Inference 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Bosch, R.A.: Painting by Numbers. Optima 65, 16–17 (2001)Google Scholar
  2. 2.
    Tsai, J.-F., Lin, M.-H., Hu, Y.-C.: Finding multiple solutions to general integer linear programs. European Journal of Operational Research 184(2), 802–809 (2008)MathSciNetCrossRefzbMATHGoogle Scholar
  3. 3.
    Balas, E., Jeroslow, R.: Canonical Cuts on the unit hypercube. SIAM Journal of Applied Mathematics 23(1), 61–69 (1972)MathSciNetCrossRefzbMATHGoogle Scholar
  4. 4.
  5. 5.
    Simpson, S.: Nonogram Solver,
  6. 6.
    Simpson, S.: Nonogram Solver - Solvers on the Web,
  7. 7.
    Wolter, J.: Survey of Paint-by-Number Puzzle Solvers,
  8. 8.
    Wolter, J.: The ’pbnsolve’ Paint-by-Number Puzzle Solver,
  9. 9.
    Hett, W.: P99: Ninety-Nine Prolog Problems,
  10. 10.
    Olšák, M., Olšák, P.: Griddlers solver, nonogram solver,
  11. 11.
  12. 12.
    Corbin, A.: Ali Corbin’s Home Page,
  13. 13.
    Grainger, B.: Pencil Puzzles and Sudoku,
  14. 14.
    The ECLiPSe Constraint Programming System,
  15. 15.
    SCIP: Solving Constraint Integer Programs,

Copyright information

© Springer-Verlag Berlin Heidelberg 2009

Authors and Affiliations

  • Luís Mingote
    • 1
  • Francisco Azevedo
    • 1
  1. 1.Faculdade de Ciências e TecnologiaUniversidade Nova de LisboaCaparicaPortugal

Personalised recommendations