Anusha Murali

Logo

Please see github.com/anusha-murali for all of my repositories.

View GitHub Profile

Greedy Algorithms

Dynamic programming could be an overkill for a number of optimization problems. For these problems, we can come up with simpler, more efficient greedy algorithms. A greedy algorithm always makes the choice that looks best at the moment. That is, it makes a locally optimal choice in the hope that this choice will lead to a globally optimal solution.

The greedy method is quite powerful and works well for a wide range of prob- lems. However, greedy algorithms do not always yield optimal solutions, but for many problems they do. Some of the famous problems that can be solved using greedy algorithms are:

  1. Minimum Spanning Trees
  2. Huffman Coding
  3. Set Cover
  4. Union Find
  5. Horn Formula

Data Structures and Algorithms Table of Contents


anusha-murali.github.io