0
40kviews
Compare Greedy and dynamic programming approach for algorithm design. Example how both can be used to solve Knapsack problem
1 Answer
2
126views
Greedy Dynamic Programming
A greedy algorithm is one that at a given point in time, makes a local optimization. Dynamic programming can be thought of as 'smart' recursion.,It often requires one to break down a problem into smaller components that can be cached.
Greedy algorithms have a local choice of …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.