Difference between Divide and Conquer Algo and Dynamic Programming

What is the difference between Divide and Conquer Algorithms and Dynamic Programming Algorithms? How are the two terms different? I do not understand the difference between them. Please take a simple example to explain any difference between the two and on what ground they seem to be similar. 9 Answers 9

What is the difference between bottom-up and top-down?

The bottom-up approach (to dynamic programming) consists in first looking at the “smaller” subproblems, and then solve the larger subproblems using the solution to the smaller problems. The top-down consists in solving the problem in a “natural manner” and check if you have calculated the solution to the subproblem before. I’m a little confused. What … Read more