Chapter 8 Art of the impossible Flashcards

(20 cards)

1
Q

What is a tractable problem?

A

A problem solvable by an algorithm with polynomial time complexity.

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

What does intractable mean in computational complexity?

A

Problems where it is impossible to guarantee finding an exact solution in polynomial time.

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

Why are polynomial-time algorithms favored?

A

Because they are closed under addition/multiplication and typically efficient in practice.

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

What is the class P?

A

Set of decision problems solvable in polynomial time.

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

What is the class NP?

A

Set of decision problems where a ‘yes’ answer can be verified in polynomial time.

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

What is NP-completeness?

A

A problem is NP-complete if it’s in NP and all other NP problems can be polynomially reduced to it.

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

What does it mean if a problem is NP-hard?

A

It’s at least as hard as the hardest problems in NP, but not necessarily in NP itself.

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

What is the SAT problem?

A

Determining if a CNF formula has a satisfying assignment.

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

Who proved SAT is NP-complete?

A

Stephen Cook.

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

What is the clique problem?

A

Given a graph and an integer k, determine if there is a k-sized subset where every pair is connected.

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

Is the clique problem NP-complete?

A

Yes, it was proven by reduction from SAT.

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

What is a decision problem?

A

A problem with a yes/no answer.

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

Why is reduction important?

A

It helps relate problem complexities by transforming one problem into another.

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

What does the P = NP question ask?

A

Whether every problem whose solution can be verified in polynomial time can also be solved in polynomial time.

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

What is the importance of NP-complete problems?

A

Solving any NP-complete problem in polynomial time would solve all problems in NP.

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

What is the Hamiltonian Circuit Problem (HCP)?

A

Deciding whether a graph contains a tour visiting each vertex exactly once.

17
Q

How can HCP be used in TSP approximation arguments?

A

By constructing a TSP instance from an HCP input to test approximation algorithm limits.

18
Q

Can all problems be approximated efficiently?

A

No, some approximations (like for TSP) are themselves NP-complete.

19
Q

What is an uncomputable problem?

A

A problem for which no algorithm exists to solve it.

20
Q

What is conjunctive normal form (CNF)?

A

A logical formula composed of ANDs of ORs over Boolean variables.