My tutor often says that proving membership of NP is the easy part of proving that a problem is NP-complete, and that this should only take a minute. What I don't understand is what exactly you're suppose to do at this step I understand that you're suppose to verify the correctness of a solution but how do I do that?
Asked
Active
Viewed 1,286 times
1 Answers
0
Here are several examples:
MAX-CLIQUE: The witness is a set of vertices of given size. The verifier checks that edges connect all pairs of vertices in the set.
SAT: The witness is a satisfying assignment. The verifier checks that it satisfies all clauses in the formula.
3COL: The witness is a 3-coloring of the graph. The verifier checks that all edges connect vertices of different color.
SUBSET-SUM: The witness is a subset of the set. The verifier checks that the subset sums to the target number.
Yuval Filmus
- 280,205
- 27
- 317
- 514