Help in understanding how DP is used in 8VC Venture Cup XOR Equation

Правка en1, от Ahmad, 2016-08-05 18:15:32

Hello, relatively new to dynamic programming but I feel it's necessary for me to begin learning it well.

As far as I know, DP depends on storing the solution to previously solved subproblems and reusing them. But in this problem, I do not clearly see how that principle helps to solve this problem. I can only think of a naïve brute force where I try each pair of numbers that sum to s and count them like that.

Could anyone give me a hint as to how to approach thinking about this problem as well as other dynamic programming problems. Thanks in advance for any help.

Теги dp, 8vc venture cup, help needed

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Ahmad 2016-08-05 18:19:51 136
en1 Английский Ahmad 2016-08-05 18:15:32 646 Initial revision (published)