Get best answers to any doubt/query/question related to programming , jobs, gate, internships and tech-companies. Feel free to ask a question and you will receive the best advice/suggestion related to anything you ask about software-engineering , development and programming problems .

0 like 0 dislike
1,512 views

 

What is the main difference between the greedy approach and dynamic programming in terms of usage?

 

From what I understand, the greedy method may provide an optimal solution in some situations, while dynamic programming is able to yield an optimal solution in others.

Thanks.

in Competitive-Programming by Expert (500 points)

Please log in or register to answer this question.

...