0
1.5kviews
Differentiate between greedy approach and dynamic programming.
1 Answer
| written 3.9 years ago by | • modified 3.9 years ago |
| 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 … |