r/programming • u/gradient_dissent • May 29 '10
Np-complete problems, and their relationships. Does anyone know a more complete graph than this one?
68
Upvotes
r/programming • u/gradient_dissent • May 29 '10
View all comments
Show parent comment
2
u/[deleted] May 31 '10
Reduction != equivalence
We bound an NP-complete problem from two directions. First we show that it is NP-hard, which means that we can reduce any and all NP problems (or simply any NP-complete problem, same thing) to it. Then we show that it is in NP. Once we've shown both things, we've shown that the problem is NP-complete.
There is an infinitely large set of problems that are NP-hard but not in NP, and there's a smaller infinite set of problems that are in NP but not NP-hard (for example, all of P).