Dynamic programming is used to solve complex problems. Complex problems are ...