Are there any interesting examples of random NP-complete problems? - MathOverflow most recent 30 from http://mathoverflow.net2013-05-26T08:35:32Zhttp://mathoverflow.net/feeds/question/3529http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/3529/are-there-any-interesting-examples-of-random-np-complete-problemsAre there any interesting examples of random NP-complete problems?gowers2009-10-31T10:52:51Z2011-03-02T21:33:34Z
<p>Here's an example of the kind of thing I mean. Let's consider a random instance of 3-SAT, where you choose enough clauses for the formula to be almost certainly unsatisfiable, but not too many more than that. So now you have a smallish random formula that is unsatisfiable. </p>
<p>Given that formula, you can then ask, for any subset of its clauses, whether that subset gives you a satisfiable formula. That is a random (because it depends on the original random collection of clauses) problem in NP. It also looks as though it ought to be pretty hard. But proving that it is usually NP-complete also seems to be hard, because you don't have the usual freedom to simulate. </p>
<p>So my question is whether there are any results known that say that some randomized problem is NP-complete. (One can invent silly artificial examples like having a randomized part that has no effect on the problem -- hence the word "interesting" in the question.)</p>
http://mathoverflow.net/questions/3529/are-there-any-interesting-examples-of-random-np-complete-problems/3531#3531Answer by Harrison Brown for Are there any interesting examples of random NP-complete problems?Harrison Brown2009-10-31T11:15:08Z2009-10-31T11:46:19Z<p>I'm not one hundred percent clear if this is what you mean, and even if it is I don't see an obvious way to make it actually work, but it might be of interest anyway.</p>
<p>The <a href="http://en.wikipedia.org/wiki/Rado%5Fgraph" rel="nofollow">Rado graph</a> is "the infinite random graph," and it's known to contain induced copies of every finite graph. (Actually I think that characterizes it -- certainly having countably many vertices and containing induced copies of every countable graph does.) So if you pick a large random graph, with probability 1 it'll contain an induced copy of every small enough graph. Unfortunately "large enough" means "exponential in the size of the random graph," so this isn't actually useful.</p>
<p>I don't know if you can do better than exponential for specific classes of graphs (and I sort of doubt it for any class that's interesting), although if you take a subgraph rather than an induced subgraph it might be easier. There's a famous conjecture of Erdos that says that Ramsey numbers of bounded-degree graphs are linear, but that's considerably stronger than what's needed...</p>
<p>ETA: After giving it some more thought, an n-vertex graph with bounded <em>average</em> degree is a subgraph of a random graph with, say, cn (for some large c depending on the average degree) vertices w/h/p. So in particular, planar graphs are subgraphs of slightly larger random graphs, and 3-colorability is known to be NP-complete even for planar graphs. But I suspect that the important thing is induced subgraphs, which (again) seems much trickier. </p>
http://mathoverflow.net/questions/3529/are-there-any-interesting-examples-of-random-np-complete-problems/3548#3548Answer by Steve Flammia for Are there any interesting examples of random NP-complete problems?Steve Flammia2009-10-31T14:53:57Z2009-10-31T14:53:57Z<p>Are you asking about the existence of problems that are hard on average? It is known that the existence of hard on average problems implies P ≠ NP.</p>
http://mathoverflow.net/questions/3529/are-there-any-interesting-examples-of-random-np-complete-problems/3666#3666Answer by Rune for Are there any interesting examples of random NP-complete problems?Rune2009-11-01T13:45:04Z2009-11-01T13:45:04Z<p>Perhaps you could look at lattice-based problems? Some of them have the interesting feature that the average instance reduces to the worst instance. That is, the average-case hardness is the same as the worse-case hardness.</p>
<p>In particular, this is why they're popular in crypto, since all you have to assume is that the problem is hard in the worst case, as opposed to factoring or discrete log which we assume to be hard on average.</p>
http://mathoverflow.net/questions/3529/are-there-any-interesting-examples-of-random-np-complete-problems/3926#3926Answer by Harrison Brown for Are there any interesting examples of random NP-complete problems?Harrison Brown2009-11-03T12:20:00Z2009-11-03T12:20:00Z<p>Oh, I just realized something else -- I think you're asking about a slightly weaker version of random self-reducibility for NP-complete problems. (I.e., an NP-complete problem that was randomly self-reducible should satisfy what you're asking about.) But it's known that if there exists an NP-complete problem that is randomly self-reducible, then the polynomial hierarchy collapses to the third level. (As I understand it, this is a consequence of the fact that BPP is contained in the second level of the hierarchy.) But this means that "[taking] a problem that is hard on average and randomly restrict it in some natural way to a small class of instances" would probably not work for k-SAT.</p>
<p>But random reductions to promise problems are <a href="http://en.wikipedia.org/wiki/Valiant-Vazirani%5Ftheorem" rel="nofollow">known</a> to be able to preserve most of the information contained in the original decision problem. So I think that in part the answer depends on what kinds of problems you're allowing... UNIQUE-SAT is very close to NP-complete -- though not quite there -- but it's a promise problem.</p>
http://mathoverflow.net/questions/3529/are-there-any-interesting-examples-of-random-np-complete-problems/4415#4415Answer by Gil Kalai for Are there any interesting examples of random NP-complete problems?Gil Kalai2009-11-06T19:14:13Z2009-11-06T19:14:13Z<p>A candidate for the most natural average-case complete problem is given in </p>
<p>Andreas Blass and Yuri Gurevich
Matrix Transformation is Complete for the Average Case
SIAM J. on Computing 24:1, 1995, 3—29.</p>
<p><a href="http://research.microsoft.com/en-us/um/people/gurevich/Opera/97.pdf" rel="nofollow">http://research.microsoft.com/en-us/um/people/gurevich/Opera/97.pdf</a></p>
http://mathoverflow.net/questions/3529/are-there-any-interesting-examples-of-random-np-complete-problems/31618#31618Answer by Scott Aaronson for Are there any interesting examples of random NP-complete problems?Scott Aaronson2010-07-12T21:17:10Z2010-10-06T14:59:02Z<p><b>Important update (Oct. 6, 2010):</b> I'm pleased to say that I gave the "random 3SAT" problem in the OP to Allan Sly, and he came up with a simple NP-hardness proof. I've <a href="http://scottaaronson.com/blog/?p=469" rel="nofollow">posted the proof to my blog</a> with Allan's kind permission.</p>
<hr>
<p>Sorry that I'm extraordinarily late to this discussion!</p>
<p>Regarding Tim's specific question: if we stick enough clauses in our instance that <i>every</i> 3SAT instance (satisfiable or not) occurs as a subformula with high probability, then certainly the resulting problem will be NP-hard. Indeed, it would suffice to have a large enough set of clauses that we can always find a subformula that can serve as the output of one of the standard reductions. On the other hand, I don't know of any techniques for proving NP-hardness that are tailored to the setting Tim has in mind -- it's a terrific question!</p>
<p>Since I can't answer the question he asked, let me talk for a while about a question he didn't ask (but that I, and apparently some of the commenters, initially thought he did). Namely, what's known about the general issue of whether there are NP-complete problems that one can show are <i>NP-hard on average</i> (under some natural distribution over instances)?</p>
<p>(1) The short answer is, it's been one of the great unsolved problems of theoretical computer science for the last 35 years! If there were an NP-complete problem that you could prove was as hard on average as it was on the worst case, that would be a huge step toward constructing a <i>cryptosystem</i> that was NP-hard to break, which is one the holy grails of cryptography.</p>
<p>(2) On the other hand, if you're willing go above NP-complete, we know that certain <i>#P-complete</i> problems (like the Permanent over large finite fields) have <i>worst-case/average-case equivalence</i>. That is to say, it's exactly as hard to compute the permanent of a uniform random matrix as it is to compute the permanent of any matrix, and this can be proven via an explicit (randomized) reduction.</p>
<p>(3) Likewise, if you're willing to go <i>below</i> NP-complete, then there are cryptographic problems, such as shortest lattice vector (mentioned by Rune) and discrete logarithm, that are known to have worst-case/average-case equivalence. Indeed, this property is directly related to why such problems are <i>useful</i> for cryptography in the first place! But alas, it's also related to why they're not believed to be NP-complete. Which brings me to...</p>
<p>(4) We do have some negative results, which suggest that worst-case/average-case equivalence for an NP-complete problem will require very new ideas if it's possible at all. (Harrison was alluding to these results, but he overstated the case a little.) In particular, <a href="http://www.cs.uchicago.edu/~fortnow/papers/rsr.pdf" rel="nofollow">Feigenbaum and Fortnow</a> showed that, if there's an NP-complete problem that's worst-case/average-case equivalent under <i>randomized, nonadaptive reductions</i>, then the polynomial hierarchy collapses. (Their result was later strengthened by <a href="http://www.cs.berkeley.edu/~luca/pubs/redux-sicomp.pdf" rel="nofollow">Bogdanov and Trevisan</a>.) There are analogous negative results about basing crytographic one-way functions on an NP-complete problem: for example, <a href="http://people.csail.mit.edu/akavia/2006-stocAGGM.pdf" rel="nofollow">Akavia, Goldreich, Goldwasser, and Moshkovitz</a> (<a href="http://people.csail.mit.edu/akavia/AGGM_errata.pdf" rel="nofollow">erratum</a>). At present, though, none of these results rule out the possibility of a problem being NP-complete on average under the most general kind of reductions: namely, randomized <i>adaptive</i> reductions (where you can decide what to feed the oracle based on its answers to the previous queries).</p>
<p>(5) Everything I said above implicitly assumed that, when we say we want an average-case NP-complete problem, we mean with a distribution over instances that's <i>efficiently samplable</i>. (For example, 3SAT with randomly generated clauses would satisfy that condition, as would almost anything else that arises naturally.) If you allow <i>any</i> distribution at all, then there's a "cheating" way to get average-case NP-completeness. This is <i>Levin's universal distribution</i> U, where each instance x occurs with probability proportional to $2^{-K(x)}$, K(x) being the Kolmogorov complexity of x. In particular, for any fixed polynomial-time Turing machine M, the lexicographically-first instance on which M fails will have a short description (I just gave it), and will therefore occur in U with large probability!</p>
<p>(6) If you're willing to fix a polynomial-time algorithm M, then there's a beautiful result of <a href="http://www-math.mit.edu/~danny/pubs/GST-paper.pdf" rel="nofollow">Gutfreund, Shaltiel, and Ta-Shma</a> that gives an efficiently-samplable distribution over NP-complete problem instances that's <i>hard for M</i>, assuming $NP \nsubseteq BPP$. The basic idea here is simple and surprising: you feed M its own code as input, and ask it to find you an instance on which it itself fails! If it succeeds, then M itself acts as your sampler of hard instances, while if it fails, then the instance you just gave it was the hard instance you wanted!</p>
<p>(7) Finally, what about "natural" distributions, like the uniform distribution over all 3SAT instances with n clauses and m~4.3n variables? For those, alas, we generally don't have <i>any</i> formal hardness results.</p>
http://mathoverflow.net/questions/3529/are-there-any-interesting-examples-of-random-np-complete-problems/57176#57176Answer by none for Are there any interesting examples of random NP-complete problems?none2011-03-02T21:33:34Z2011-03-02T21:33:34Z<p>I just came across this old paper of Steve Cook:
<a href="http://www.cs.toronto.edu/~sacook/homepage/JACMpvsnp.ps" rel="nofollow">http://www.cs.toronto.edu/~sacook/homepage/JACMpvsnp.ps</a> </p>
<p>It doesn't say anything directly too useful to the current discussion, but it shows that such questions have been around for a while.</p>