s20-04 Dynamic programming 1