- http://en.wikipedia.org/wiki/Dynamic_programming
- http://20bits.com/articles/introduction-to-dynamic-programming/
To solve DP problem we need to do next steps:
- define what we are calculating;
- define recursion formula;
- define boundary condition;
- define calculation order.
1 comment:
thanks for sharing! For the sake of correctness, F(x,2) should be x*(x+1)/2. so x*(x+1)/2 <= (x+1)^2/2 <=4294967296l . This gives x around 92681
Post a Comment