A Way For Learning

Greedy Algorithms

No comments

  • Greedy Algorithm works by making the decision that seems most promising at any moment; it never reconsiders this decision, whatever situation may arise later.
  • Advantages:
    • Straigth forward
    • easy to understand and code
    • No re-examining
  • Disadvantages:
  • Applications:
    • Sorting:Selection Sort,Topological Sort
    • Priority Queue: Heap Sort
    • huffman coding compression algorithm
    • Prims ans Kruskals Algorithm
    • Dijkstra's
    • Coin Change Problem
    • Fractional Knapack problem
    • Disjoint sets
    • Job scheduling

Useful Resources:


No comments :

Post a Comment