17

Does the 2 in a 2-approximation algorithm mean the solution is within 2*OPT or OPT/2?

Juho
  • 22,905
  • 7
  • 63
  • 117
Hrishikesh
  • 171
  • 1
  • 1
  • 3

1 Answers1

17

Typically, we use $\alpha < 1$ for maximization problems, and $\alpha > 1$ for minimization problems, where $\alpha$ is the approximation guarantee. So, a $2$-approximation algorithm returns a solution whose cost is at most twice the optimal. But as always, to be absolutely sure, go back to the definitions of the text you are reading (if a definition is not available, assume this).

Juho
  • 22,905
  • 7
  • 63
  • 117