Complexity and NP-Completeness Flashcards

1
Q

What is P?

A

all the problems SOLVABLE in polynomial time

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

What is a decision problem?

A

The answer is either yes or no

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

What is NP?

A

decision problem SOLVABLE in NON-deterministic polynomial time

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

What does non-deterministic mean?

A

choice during running is not determined by input. ARBITRARY GUESS AMONG MANY POSSIBILITIES

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

When is a problem A reducible to a problem B?

A
  • when ANY instance a of A can be transformed into some instance b of B
  • transformation takes poly time
  • answer a “yes” iff answer of b “yes”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

If A reduces to B which one is harder to solve?

A

they are both equally hard to solve

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

What are the steps of proving language L is NP complete by reduction?

A
  1. Prove LeNP
  2. Select known NP-Complete Language L’
  3. Describe algorithm the computes f mapping every instance of xeL’ to instance f(x) of L
  4. Prove xeL’ iff f(x)eL for all xe{0,1}*
  5. Prove that f runs in polynomial time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When is problem x NP-complete?

A

xeNP && xeNP-hard

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

When is a problem NP-hard?

A

When every NP problem reduces to x

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

Informal way of describing NP-completeness

A

Problem is EXACTLY as hard as everything in NP

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

Informal way of describing NP-hardness?

A

Problem is no easier than everything in NP

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

Informal way of describing NP?

A

Problem is no harder than everything in NP

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

If problem BeP and A is reducible to B where does A belong?

A

P

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

If problem BeNP and A is reducible to B where does A belong?

A

NP

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