Skip to content
← All questions

What does it mean for a minimization algorithm to be a 2-approximation?

It means that in the worst case, the algorithm's output cost is at most twice the true optimal cost.

Conditions

  • The problem is a minimization problem.
  • The algorithm is a 2-approximation.

Reasoning, step by step

  1. Understand the definition of a 2-approximation.
  2. Apply it to a minimization problem.
  3. Conclude that the cost is bounded by 2C∗2C^*.

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

Find a method

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.