Lecture 6 - What is NP-Complete? Formally? Flashcards
1
Q
When is a decision problem NP complete?
A
- if the problem is in the NP class
- every problem can be ptred to the problem
2
Q
Consequences of the definition?
A
- if problem was to be NP-complete and in P then all NP problems would be in NP
- every problem in NP can be solved in polynomial time by PTR to another problem
- if P is not equal to NP and problem is NP-complete, then problem is not in P
3
Q
How do we prove a problem is NP-Complete?
A
- show it is in NP
- there exists a PTR to it from an NP problem
4
Q
What is a restriction of a problem?
A
A subset of instances of that problem.
5
Q
If the restriction of the problem is Np-Complete is the whole problem Np-Complete?
A
YES
6
Q
Given an NP-Complete problem, is the restriction NP-COMPLETE?
A
Not necessairly
7
Q
Is 2-GCP Np-Complete?
A
No, it is in P
8
Q
Is 3-GCP NP-COMPLETE?
A
YES
9
Q
Is 2-SAT NP-COMPLETE?
A
No, it is in P
10
Q
Is 3-SAT NP-COMPLETE?
A
YES
- can be proven by SAT -> 3 SAT via PTR
11
Q
What to do when faced with an Np-Complete problem?
A
- maybe only focus on a restricted version
- approximation alg (for optimisation)
- probabilistic alg (for decision)
- exponential time alg rather than exhaustive search