Dynamic programming tasks.