Definition
Approximation Ratio
An approximation ratio measures the worst-case distance between the value returned by an approximation algorithm and the value of an optimal solution.
For an instance , let be the objective value returned by an algorithm , and let be the optimum value.
Minimisation minimisation problem, a -approximation guarantee means
for every instance , where .
Maximisation maximisation problem, an -approximation guarantee means
for every instance , where .
Then has approximation ratio if, for every instance of size ,
Direction
The direction of the guarantee depends on the optimisation problem.
Minimisation
For minimisation, smaller values are better.
Thus, means that the returned value is at most twice the optimum.
Maximisation
For maximisation, larger values are better.
Thus, means that the returned value is at least three quarters of the optimum.
Under the symmetric convention, this corresponds to ratio .
Meaning
An approximation ratio is a worst-case statement. It does not say that the algorithm is usually close to optimum. It says that every valid instance is bounded by the stated factor.
The optimum value is usually not known while the algorithm runs. The proof therefore compares the algorithm’s value with a lower or upper bound on the optimum.
Examples
A -approximation for minimum vertex cover returns a vertex cover whose size is at most twice the optimum:
This is a minimisation guarantee.
MaxSAT
A -approximation for maximum satisfiability returns an assignment satisfying at least three quarters as many clauses as an optimal assignment:
Under the symmetric convention, this is ratio .