0
1.5kviews
Differentiate between greedy approach and dynamic programming.
1 Answer
0
24views
S.No. Greedy Approach Dynamic Programming
1. In Greedy, there is no such guarantee of getting optimal solution. In dynamic, it will generate an optimal solution using Principle of optimality.
2. More efficient as compared to a dynamic approach. Less efficient as compared to a greedy approach.
3. Generates a single …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.