Skip to main content

Greedy Algorithms

Greedy algorithms make locally optimal choices at each step, hoping to find a global optimum. Master the principles and applications of greedy algorithms.

Learning Map

Greedy algorithm concepts organized from fundamentals to applications.

Prerequisites

What's in scope

  • Greedy Fundamentals: Greedy choice property, optimal substructure, proof techniques, and when to use greedy
  • Classic Greedy Problems: Activity selection, fractional knapsack, Huffman coding, minimum spanning tree, and shortest path
  • Advanced Greedy: Interval scheduling, set cover, job scheduling, resource allocation, and optimization problems

How to use this section