Table of Content


Introduction to Greedy Algorithm

Example: Paying Exact Amount

Characteristics of Greedy Algorithms

Steps to Create a Greedy Solution

  1. Define the objective (e.g., maximize total value, minimize path length).
  2. Set up a process to make the best local choices at each step.

Example: Travelling Salesman Problem

Fractional Knapsack Problem