The approximation ratio for a given approximation algorithm on input is the real value such that:

  • Where is the cost of the approximate solution.
  • Where is the cost of the optimal solution.