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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a restriction of a problem?

A

A subset of instances of that problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

If the restriction of the problem is Np-Complete is the whole problem Np-Complete?

A

YES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Given an NP-Complete problem, is the restriction NP-COMPLETE?

A

Not necessairly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is 2-GCP Np-Complete?

A

No, it is in P

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is 3-GCP NP-COMPLETE?

A

YES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Is 2-SAT NP-COMPLETE?

A

No, it is in P

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Is 3-SAT NP-COMPLETE?

A

YES

  • can be proven by SAT -> 3 SAT via PTR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly