Click here to Skip to main content
15,885,771 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I need to solve a nonogram problem. My specific problem is to find the maximum number of points that i can put in a nonogram matrix (no need a graphical solution). My input is a sequence of values that represents the maximum number of points for each row and for each coloumn. For example the sequence 2 2 1 1 1 1 represents a 3x3 matrix in wich the row's values are 2 2 1 and the coloumn's values are 1 1 1. The algorithm should return 3. I know how to implement the quadratic solution, but i need to find a linear time solution or something like linear (for example n log^7(n)).
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900