Difficult Problems Flashcards

1
Q

What are the Hardest problems?

A

They cannot be solved at all

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

What is an extremely hard problem?

A

Problems that need at least exponential time, measured in the length of input

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

What is an NP-Hard problem?

A

A problem that is at least as hard as the hardest problems in NP

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

What is the definition of a decision problem?

A

They are defined by a set of possible inputs, for each input a set of correct outputs where each output can either be a yes or no

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

What are some observations about decision problems?

A

They are particularly simple
Some are natural decision problems
All problems where solutions have a quality have a decision variant

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

What is the formal definition of the NP problem class?

A

An algorithmic decision problem belongs to the class NP if for every input I of length n with output ‘yes’ there exists a certificate c(I) of length at most p(n) such that there is an algorithm that given I and c(I) can verify that I is a ‘yes’ instance in time at most p(n) for some polynomial p

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

What does a problem being an NP problem mean in simple terms?

A
  • For a yes input, there exists at least one certificate that enables us to check that the input is actually a ‘yes’ input in polynomial time
  • For a no input, considering all possible certificates, none can convince us that the input is a ‘yes’ input
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What do we mean by a certificate? (in the definition of the NP class)

A

A proof that shows that I is a ‘yes’ input

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

What is an example of an NP problem?

A

The knapsack problem

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

What is the formal definition of the P class of problems?

A

An algorithmic problem belongs to the class P if there is an algorithm that computes a correct output for every input I with length n in time at most p(n) for some polynomial p

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