Greedy algorithm makes the locally optimal choice at each step to find the overall optimal way to solve the entire problem. If both of the properties below are true, a greedy algorithm can be used to solve the problem.
Critical Ideas to Think
Applications of greedy algorithms: Huffman Encoding, Shortest Path Algorithms, Minimum Spanning Tree, Travelling Salesman Problem, Job Scheduling Problem, Graph Vertex Cover etc .
| # | Title | Difficulty | Companies |
|---|---|---|---|
1. | Idea of Greedy Algorithms and Greedy Choice Property | ||
2. | Comparison : Dynamic Programming vs Greedy Algorithms | ||
3. | Example 1 : Activity Selection Problem | HARD | Amazon Facebook Morgan Stanley |