L15 - The Million Dollar Question Flashcards
1
Q
How can we reduce the 3SAT problem to prove it’s NP-Complete?
A
- Reduce to k-clique
- Show that k-clique is in NP by verifying in P
2
Q
Give the 3 steps of reducing 3SAT to k-clique…
A
- Split formula into K groups of 3-nodes, each of which must contain at least 1 true. Each 3-node group corresponds to 1 clause in the original formula.
- Calculate whether sub-graphs are true or not in P time.
3
Q
Define NP, NP-Hard, NP-Complete problems…
A
NP - Problems that can be verified in P but not solved.
NP-Hard - Problems that are at least as hard as every problem in NP.
NP-Complete - Problems that are NP-Hard and in NP.
4
Q
Why is P vs NP a million dollar question?
A
If we can verify a solution to a problem in P, does this not mean we can also solve the problem in P time?