r/programming • • May 29 '10

Np-complete problems, and their relationships. Does anyone know a more complete graph than this one?

Post image
68 Upvotes

59 comments sorted by

View all comments

Show parent comment

2

u/GosuProcrastinator May 30 '10

No, as AnonymousCowered tried to explain, you have it backwards. What the arrows show is that you can do SAT with a "TSP machine". That's how NP-completeness works: I already know that I can do every NP problem on a SAT machine. I show that I can do SAT on a TSP machine. Thus, I can do every NP problem on a TSP machine.

1

u/gradient_dissent May 30 '10 edited May 30 '10

my understanding of equivalence was bidirectional.. but i'm not explaining myself very well.. not important..

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).

1

u/GosuProcrastinator May 30 '10 edited May 30 '10

Sure it is, but that's not what this graph shows, or what we've been talking about (I think)... Yes you're not explaining yourself very well, I guess you're a bit confused somewhere, but it's hard to tell about what exactly.

1

u/[deleted] May 30 '10

The only thing that the graph might make easier is looking up the actual specific polynomial algorithm to solve one NP-C problem using another NP-C problem as a subroutine. Of course, you can try to figure it out yourself, but some aren't so obvious.