Dynamic programming
- It gives us the induction hypothesis:
VT t =p
1 +k+k^2 +.. .+ktp
w
σT t =w
1 +k+k^2 +.. .+kt
The only thing we should show is to prove this hypothesis:VT (t+ (^1) )(w)= max
c 2 [ 0 ,w]
p
c+VT t(k(w c))
= max
c 2 [ 0 ,w]
p
c+
p
1 +k+k^2 +.. .+kt
q
k(w c)