Suppose we have an π*π grid, let π=0,...,πβ1 and π=0,...,πβ1. For each grid point we have an array πππ of size π that serves as local score function. We want to to find a way that assigns every grid point a number πππ in 0,...,πβ1, which maximize the scoring function that is the sum of local scoring functions, minus the absolute value of difference of neighboring πππ :
So the question is, can we efficiently solve the problem by dynamic programming? Moreover is the problem NP-complete?
