Need help with this problem related to DP Bitmasking

Правка en1, от F.a.F, 2017-07-06 08:30:25

The problem statement is "Given a board of N(1<=N=3) rows and M(1<=M<=50) columns, place the minimum number of knights such that every cell either contains a knight or is attacked by at least one knights." 1<=T<=150 test cases

Link :- https://www.codechef.com/problems/KNICOV

I am having a hard time figuring out the states of the DP and transitions between them. Can someone please explain in detail how to go about solving this?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский F.a.F 2017-07-06 08:30:25 533 Initial revision (published)