What:
A specific type of Greedy Algorithms. These are for when getting exact solutions are largely impractical. Ideally they:
- Run in polynomial time.
- Compute a solution thatâs âcloseâ to the optimal one. (I.E. Reasonably accurate)
Problem: Whatâs âclose to optimalâ?
Key Idea
Well if our solution is not far from something thatâs even smaller than the optimal, then it surely isnât far from the optimal.
Thus, a technique:
Bound the optimal solution from below (for minimisation problems - like below) and above (for maximisation problems).

Characteristics:
- At each decision, the algorithm chooses the option thatâs the locally optimal one. (I.e. looks best at that moment - the âGreedyâ part).
- It doesnât backtrack - once a choice is made, the algorithm doesnât reconsider it.
- Theyâre simple and fast.
Approximation Ratio:
Specific Examples:
Approximating NP Hard Problems:
Itâs really hard to approximate some problems. The best approximation we can get is: Polynomial Time Approximation Scheme