<p>I strongly disagree with the last paragraph. Blanket statements like that are not useful. If you look at papers in many systems areas such as networking, databases, AI and so on you will see that plenty of approximation algorithms are used in practice. There are some problems for which one desires very accurate answers; for example say an airline interesting in optimizing its fleet scheduling. In such cases people use various heuristics that take substantial computational time but get better results than a generic approximation algorithm can give. </p>

<p>Now for some theoretical reasons for studying approximation algorithms. First, what explains the fact that knapsack is very easy in practice while graph coloring is quite hard? Both are NP-Hard and poly-time reducible to each other. Second, by studying approximation algorithms for special cases of a problem one can pin-point what classes of instances are likely to be easy or hard. For example we know that many problems admit a PTAS in planar and minor-free graphs while they are much harder in arbitrary general graphs. The idea of approximation pervades modern algorithm design. For example, people use data streaming algorithms and without the approximation lens is hard to understand/design algorithms because even simple problems cannot be solved exactly.</p>

CC BY-SA 3.0
2011-12-08T16:22:46.170Z
2011-12-08T16:22:46.170Z
Chandra Chekuri
<p>Approximate counting is useful in complexity theory. For instance,
Jin Cai uses it to show that $S_2^p \subseteq ZPP^{NP}$, see 
<a href="http://pages.cs.wisc.edu/~jyc/papers/S2-j.pdf">http://pages.cs.wisc.edu/~jyc/papers/S2-j.pdf</a></p>

CC BY-SA 3.0
2011-12-17T23:22:29.803Z
2011-12-17T23:22:29.803Z
Markus Bläser
<p>The best heuristics are really approximation algorithms. The most beautiful approximation algorithms are just "stupid" heuristics that work. For example, local search for clustering, greedy clustering (Gonzalez), one for the price of two, various greedy algorithms, etc, etc, etc.</p>

<p>So studying approximation algorithms is really about understanding what heuristics are guaranteed approximation algorithms. The hope is that research on approximation algorithms creates two kinds of cross-fertilization:</p>

<ul>
<li>Move ideas that work from heuristics into algorithms design tools. Similarly, move ideas from algorithm design into heuristics/algorithms that work well in practice.</li>
<li>cross fertilization between a person that just graduated and a position.</li>
</ul>

<p>In short, the world is not exact, inputs are not exact, target functions optimized by various algorithm problems are not exact and at best represent a fuzzy approximation to what one wants, and computations are not exact. Why would anybody learn exact algorithms? 
(Answer: Because exact algorithms are just really good approximation algorithms.)</p>

<p>In the real world, there are very few exact algorithms - you need to use approximation to be remotely relevant...</p>

CC BY-SA 3.0
2011-12-17T22:40:14.710Z
2011-12-19T14:32:15.967Z
2011-12-19T14:32:15.967Z
Sariel Har-Peled
<p>I also disagree with the "note", at least stated in this generality. Related to this, does anyone know if David Johnson's Kanellakis award talk is available somewhere? </p>

<p>Also, once we realize that all NP-hard problems are equivalent with respect to the worst-case complexity of exact solutions, it's very natural to inquire about the complexity of finding approximate solutions. And Chandra makes a great point about the change of perspective that approximation algorithms bring to algorithm design.</p>

<p>I am sure we should be able to come up with some interesting examples of approximation algorithms used to prove a theorem. For example, the $O(\log n)$ approximation to set cover can be used to show a better bound on the sample complexity of learning conjunctions.</p>

CC BY-SA 3.0
2011-12-14T21:14:06.827Z
2011-12-20T16:58:55.077Z
2011-12-20T16:58:55.077Z
Sasho Nikolov
<p>Dealing with problems with continuous variables is very annoying with exact algorithms. For example, what does it mean to specify the edge-weights of a TSP instance with exact real numbers? </p>

<p>When we allow FPTAS algorithms for these problems, we can quantize these parameters to integers. This makes the problem much better behaved (can use standard Turing machines), but incurs a small error.</p>

CC BY-SA 3.0
2011-12-19T01:52:02.307Z
2011-12-19T01:52:02.307Z
David Harris
<p>Lately I've started looking into approximation algorithms for NP-hard problems and I was wondering about the <em>theoretical</em> reasons for studying them. (The question is not meant to be inflammatory - I'm merely curious).</p>

<p>Some truly beautiful theory has come out of the study of approximation algorithms - the connection between the PCP theorem and hardness of approximation, the UGC conjecture, the Goeman-Williamson approximation algorithm, etc.</p>

<p>I was wondering though about the point of studying approximation algorithms for problems like Traveling Salesman, Asymmetric Traveling Salesman and other variants, various problems in mechanism design (for instance in combinatorial auctions), etc.
Have such approximation algorithms been useful in other parts of theory in the past or are they studied purely for their own sake?</p>

<p>Note: I'm not asking about any practical applications since as far as I know, in the real world, it's mostly heuristics that are applied rather than approximation algorithms and the heuristics are rarely informed by any insight gained by studying the approximation algorithms for the problem.</p>

CC BY-SA 3.0
2011-12-08T06:10:31.120Z
I wonder if this should be CW ?
Suresh Venkat
CC BY-SA 3.0
2011-12-08T10:02:48.287Z
I'm not sure I understand the question.  What are the "theoretical reasons" for studying any theoretical subject?
Jeffε
CC BY-SA 3.0
2011-12-08T10:14:00.953Z
I think he means "fill in the etc." in paragraph 2
Huck Bennett
CC BY-SA 3.0
2011-12-08T12:36:16.820Z
Is it wrong if that's what I am doing and I never asked myself the question? I just though Approximation Algorithms looked cool!
Gopi
CC BY-SA 3.0
2011-12-08T13:13:34.670Z
I think the motivation is the same as the motivation for studying hardness of approximation: to understand the exact complexity of various problems. The Goemans-Williamson algorithm goes hand-in-hand with the unique-games-hardness of doing better than the GW approximation factor.
Aaron Roth
CC BY-SA 3.0
2011-12-08T15:21:57.047Z
I am not sure if your last paragraph is fair. Approximation algorithms are interesting because they are *a* suggested way to deal with intractability of problems like TSP. It might be the case that many of them are not directly used in practice in the original form, but they are helpful to know what to try. You can say the same thing about exact algorithms, many of them are never used directly in practice, there are lots of engineering issues that need to be considered when using any algorithm in practice. Many problems in practice don't need exact algorithms and users will be completely happy
Kaveh
CC BY-SA 3.0
2011-12-08T15:23:23.770Z
with an approximate answer in a reasonable time.
Kaveh
<ds.algorithms><approximation-algorithms><big-picture><application-of-theory>
Theoretical Applications for Approximation Algorithms
Anon1234
# Theoretical Applications for Approximation Algorithms

(Asked by: username_0 on 2011-12-08)

Lately I've started looking into approximation algorithms for NP-hard problems and I was wondering about the *theoretical* reasons for studying them. (The question is not meant to be inflammatory - I'm merely curious).

Some truly beautiful theory has come out of the study of approximation algorithms - the connection between the PCP theorem and hardness of approximation, the UGC conjecture, the Goeman-Williamson approximation algorithm, etc.

I was wondering though about the point of studying approximation algorithms for problems like Traveling Salesman, Asymmetric Traveling Salesman and other variants, various problems in mechanism design (for instance in combinatorial auctions), etc.
Have such approximation algorithms been useful in other parts of theory in the past or are they studied purely for their own sake?

Note: I'm not asking about any practical applications since as far as I know, in the real world, it's mostly heuristics that are applied rather than approximation algorithms and the heuristics are rarely informed by any insight gained by studying the approximation algorithms for the problem.

**Tags:** ds.algorithms, approximation-algorithms, big-picture, application-of-theory

> **Comments:**
> **username_1**: I wonder if this should be CW ?  
> **username_2**: I'm not sure I understand the question.  What are the "theoretical reasons" for studying any theoretical subject?  
> **username_3**: I think he means "fill in the etc." in paragraph 2  
> **username_4**: Is it wrong if that's what I am doing and I never asked myself the question? I just though Approximation Algorithms looked cool!  
> **username_5**: I think the motivation is the same as the motivation for studying hardness of approximation: to understand the exact complexity of various problems. The Goemans-Williamson algorithm goes hand-in-hand with the unique-games-hardness of doing better than the GW approximation factor.  
> **username_6**: I am not sure if your last paragraph is fair. Approximation algorithms are interesting because they are *a* suggested way to deal with intractability of problems like TSP. It might be the case that many of them are not directly used in practice in the original form, but they are helpful to know what to try. You can say the same thing about exact algorithms, many of them are never used directly in practice, there are lots of engineering issues that need to be considered when using any algorithm in practice. Many problems in practice don't need exact algorithms and users will be completely happy  
> **username_6**: with an approximate answer in a reasonable time.  

---

## 5 answers

### Answer by username_7 on 2011-12-08. Score: 22

I strongly disagree with the last paragraph. Blanket statements like that are not useful. If you look at papers in many systems areas such as networking, databases, AI and so on you will see that plenty of approximation algorithms are used in practice. There are some problems for which one desires very accurate answers; for example say an airline interesting in optimizing its fleet scheduling. In such cases people use various heuristics that take substantial computational time but get better results than a generic approximation algorithm can give.

Now for some theoretical reasons for studying approximation algorithms. First, what explains the fact that knapsack is very easy in practice while graph coloring is quite hard? Both are NP-Hard and poly-time reducible to each other. Second, by studying approximation algorithms for special cases of a problem one can pin-point what classes of instances are likely to be easy or hard. For example we know that many problems admit a PTAS in planar and minor-free graphs while they are much harder in arbitrary general graphs. The idea of approximation pervades modern algorithm design. For example, people use data streaming algorithms and without the approximation lens is hard to understand/design algorithms because even simple problems cannot be solved exactly.


---

### Answer by username_8 on 2011-12-17. Score: 12

Approximate counting is useful in complexity theory. For instance,
Jin Cai uses it to show that $S\_2^p \subseteq ZPP^{NP}$, see
<http://pages.cs.wisc.edu/~jyc/papers/S2-j.pdf>


---

### Answer by username_9 on 2011-12-17. Score: 9

The best heuristics are really approximation algorithms. The most beautiful approximation algorithms are just "stupid" heuristics that work. For example, local search for clustering, greedy clustering (Gonzalez), one for the price of two, various greedy algorithms, etc, etc, etc.

So studying approximation algorithms is really about understanding what heuristics are guaranteed approximation algorithms. The hope is that research on approximation algorithms creates two kinds of cross-fertilization:

* Move ideas that work from heuristics into algorithms design tools. Similarly, move ideas from algorithm design into heuristics/algorithms that work well in practice.
* cross fertilization between a person that just graduated and a position.

In short, the world is not exact, inputs are not exact, target functions optimized by various algorithm problems are not exact and at best represent a fuzzy approximation to what one wants, and computations are not exact. Why would anybody learn exact algorithms?
(Answer: Because exact algorithms are just really good approximation algorithms.)

In the real world, there are very few exact algorithms - you need to use approximation to be remotely relevant...


---

### Answer by username_10 on 2011-12-14. Score: 9

I also disagree with the "note", at least stated in this generality. Related to this, does anyone know if David Johnson's Kanellakis award talk is available somewhere?

Also, once we realize that all NP-hard problems are equivalent with respect to the worst-case complexity of exact solutions, it's very natural to inquire about the complexity of finding approximate solutions. And Chandra makes a great point about the change of perspective that approximation algorithms bring to algorithm design.

I am sure we should be able to come up with some interesting examples of approximation algorithms used to prove a theorem. For example, the $O(\log n)$ approximation to set cover can be used to show a better bound on the sample complexity of learning conjunctions.


---

### Answer by username_11 on 2011-12-19. Score: 4

Dealing with problems with continuous variables is very annoying with exact algorithms. For example, what does it mean to specify the edge-weights of a TSP instance with exact real numbers?

When we allow FPTAS algorithms for these problems, we can quantize these parameters to integers. This makes the problem much better behaved (can use standard Turing machines), but incurs a small error.


---

