What does it mean for a minimization algorithm to be a 2-approximation?
Conditions
- The problem is a minimization problem.
- The algorithm is a 2-approximation.
Reasoning, step by step
- Understand the definition of a 2-approximation.
- Apply it to a minimization problem.
- Conclude that the cost is bounded by .
Example
The narrator says: "If the perfect answer costs 50 dollars, our algorithm will never ever output an answer costing more than 100 dollars."
Common misconceptions
- Thinking the algorithm always outputs exactly twice the optimal cost.
- Assuming the bound applies to the average case rather than the worst case.
Watch the explanation
Connected concepts
Explore next
Related questions
For minimization problems, the guarantee is . For maximization problems, it is .
Conditions: C is the algorithm-produced cost.; C* is the true optimal cost.; rho(n) is the approximation bound.
The four techniques are greedy strategies, LP relaxation and rounding, the primal-dual schema, and local search.
Conditions: Applies to the design of approximation algorithms for NP-hard problems.
Finding an exact solution for NP-hard optimization problems requires exponential time, such as or , which is computationally infeasible for large inputs.
Conditions: Problem is an NP-hard optimization problem; Seeking an exact solution
FPTAS and PTAS allow arbitrarily close approximation. APX allows constant-factor approximation.
Conditions: Comparing standard approximation classes for optimization problems.
An approximation bound is a guaranteed multiplicative limit on how much worse the algorithm's result can be than the true optimum in the worst case.
Conditions: Used for minimization or maximization problems.; Expresses a worst-case guarantee relative to the optimum.
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.