Exam 3 Flashcards

1
Q

What do we mean when we say a problem is intractable?

A

It’s unlikely to be solved efficiently

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

Define a search problem.

A

A problem where we can efficiently verify solutions

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

What is class P?

A

Class of search problems that are SOLVABLE in polynomial time AND can be verified in polynomial time; P is a subset of NP and stands for polynomial time

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

What is class NP?

A

Class of ALL search problems, saying that is can verify solutions in polynomial time; it stands for nondeterministic polynomial time, meaning problems that can be solved in polynomial time on a machine that is allowed to guess at each step

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

What is an NP-complete problem?

A

If P != NP then ALL NP-complete problems are not in P; if an NP-complete problem CAN be solved in polynomial time, then ALL problems in NP can be solved in polynomial time

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

What is the input to the 3SAT problem?

A

Boolean formula, f, in CNF with n variables & m clauses where each clause has <= 3 literals; the output is a satisfying assignment if one exists & NO otherwise

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

What is an independent set?

A

A subset, S of V (vertices) is an independent set if no edges are contained in S (none of the vertices are adjacent)

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

What is a clique?

A

A fully connected subgraph; all pairs of vertices in a subset are connected by an edge

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

What is a vertex cover?

A

S of V is a vertex cover if it covers every edge

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

What class are linear programming (LP) problems in?

A

They are in the class of P because they can be solved and verified in polynomial time

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

What class are integer linear programming (ILP) problems in?

A

They are in the class of NP-complete

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

Where is an optimal point in a feasible region?

A

An optimal point is at a vertex (a corner); an optimal point may be non-integer (fractional); the feasible region is convex, meaning that an optimal point is at a vertex rather than a line extending out of the feasible region

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

What polynomial-time algorithms can be used on linear programming problems?

A

Ellipsoid algorithms and interior point methods; the ellipsoid method is theoretical based

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

What algorithm is widely used on huge linear programming problems and works very fast?

A

Simplex algorithm; in the worst-case it runs in exponential time but is still widely used because it will always return an optimal point

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

In duality, the dual LP is derived from what?

A

The primal LP

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

What does the weak duality theorem state?

A

The primal LP objective function is c^Tx and the dual LP objective function is b^Ty; the feasible x for primal LP and feasible y for dual LP

17
Q

What is the matching values corollary of the weak duality theorem?

A

It states that if we find a feasible x AND feasible y where c^Tx = b^Ty then we can conclude that x AND y are both optimal; x maximizes the primal LP and y minimizes the dual LP

18
Q

What is the unbounded LP corollary of the weak duality theorem?

A

It states that if the primal LP is unbounded then the dual LP must be infeasible, and vice-versa, if the dual is unbounded, then the primal must be infeasible; this does not mean an equivalence, one or the other is either unbounded OR infeasible

19
Q

How do you check for unbounded LP?

A

Check if there is a feasible point for the primal LP, if so then check to see if the dual LP is infeasible; if it is, then we know that the primal LP is unbounded

20
Q

What does the strong duality theorem state?

A

If the primal LP is feasible AND bounded, then the dual LP is also feasible AND bounded; if the primal LP has an optimal point, then the dual LP also has an optimal point

21
Q

How does the Max-SAT problem differ from the regular SAT problem?

A

The input is the same; a Boolean formula f in CNF with n variables & m clauses; BUT the output is now an assignment maximizing the # of satisfied clauses; it is now NP-hard instead of in the class NP since we can’t verify that the number of clauses is now maximum, but it’s NP-hard because we know it’s at least as hard as the SAT problem is

22
Q

What is the approximation that Ek-SAT is satisfied for a max-Ek-SAT problem?

A

(1 - 2^-k) is the approximation