Approximation algorithmFrom CryptoDox, The Online Encyclopedia on Cryptography and Information SecurityIn computer science and operations research, approximation algorithms are an approach to attacking difficult optimization problems. Approximation algorithms are often associated with NPhard problems. Since it is unlikely that there can ever be efficient (Polynomial Time) exact algorithms solving NPhard problems, one settles for nonoptimal solutions, but requires them to be found in polynomial time. Unlike heuristics, which usually only find reasonably good solutions reasonably fast, one wants provable solution quality and provable run time bounds. Ideally, the approximation is optimal up to a small constant factor (say within 5% of the optimal solution). It should be noted that approximation algorithms are increasingly being used for problems where polynomial algorithms are known but are too expensive due to the sizes of the data sets. A typical example for an approximation algorithm is the one for vertex cover in graphs: Find an uncovered edge and add both endpoints to the vertex cover, until none remain. It is clear that the resulting cover is at most twice as large as the optimal one. This is in fact a constant factor approximation algorithm with a factor of 2. NPhard problems vary greatly in their approximability; some, such as the bin packing problem, can be approximated within any factor greater than 1 (such approximation algorithms are often called polynomial time approximation schemes or PTAS). Others are impossible to approximate within any constant (or even polynomial) factor (unless P = NP), such as the maximum clique problem. NPhard problems can often be expressed as integer programs (IP) and solved exactly in exponential time. Many approximation algorithms are from the LPrelaxation of the integer program. Not all approximation algorithms are suitable for all practical applications. They often use IP/LP/Semidefinite solvers, complex data structures or sophisticated algorithmic techniques which lead to difficult implementation problems. Also, for some approximation algorithms, the polynomial running time can be quite bad, say O(n^{2000}). Yet study of even very expensive algorithms is not a completely theoretical pursuit as they can yield valuable insight. A classic example is the initial PTAS for Euclidean TSP due to Sanjeev Arora which had prohibitive running time, yet within a year, Arora refined the ideas into a linear time algorithm. Such algorithms are also worthwhile in some applications where the running times and cost can be justified e.g. computational biology, financial engineering, transportation planning, and inventory management. In such scenarios, they must compete with the corresponding direct IP formulations. Another limitation of the approach is that it applies only to optimization problems and not to "pure" decision problems like satisfiability (although it's often possible to conceive optimization versions of such problems, such as the maximum satisfiability problem). Performance guaranteesFor some approximation algorithms it is possible to prove certain properties about the approximation of the optimum result. For example, in the case of a ρapproximation algorithm it has been proven that the approximation a will not be more (or less, depending on the situation) than a factor ρ times the optimum solution s.
The factor ρ is called the relative performance guarantee. An approximation algorithm has an absolute performance guarantee or bounded error ε, if it has been proven that
Similarly, the absolute performance ratio <math>\Rho_A</math> of some approximation algorithm <math>A</math>, where <math>I</math> refers to an instance of a problem, and where <math>R_A(I)</math> is the performance guarantee of <math>A</math> on <math>I</math> (i.e. <math>\rho</math> for problem instance <math>I</math>) is:
That is to say that <math>\Rho_A</math> is the largest bound on the approximation ratio, <math>r</math>, that one sees over all possible instances of the problem. Likewise, the asymptotic performance ratio <math>R_A^\infty</math> is:
That is to say that it is the same as the absolute performance ratio, with a lower bound <math>n</math> on the size of problem instances. These two types of ratios are used because there exist algorithms where the difference between these two is significant. Domination analysis provides an alternative way to analyze the quality of an approximation algorithm in terms of the rank of the computed solution in the sorted sequence of all possible solutions. References
External links
