0

So I recently came across a question in my Algorithms class.

Given a binary matrix of N X N.

we can do following operation any number of times

  • we can take a square of size M X M (1 <= M <= N) and convert all 1's to 0's in this submatrix this operation costs M coins

we have to convert all 1's to 0's in least amount of coins.

Is this a NP-complete problem? any approach or research papers on how can this be solved?

D.W.
  • 167,959
  • 22
  • 232
  • 500

0 Answers0