exam3 toughies Flashcards

1
Q

NP-Complete Reduction Steps

A

Reducing A->B

  1. Prove B is in NP
  2. Write Input, Output, Runtime, Correctness
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

LP Standard Form

A

Max C(x)
A(x) <= b
X >= 0

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

Dual Standard Form

A

Min b(y)
A(y) >= c
Y >= 0

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

How many constraints in an LP?

A

n non-negativity constraints + m constraints

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

What is the upper bound for the number of vertices in an LP?

A

n+m choose N

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

What is the upper bound for the number of neighbors in an LP?

A

n*m

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

Simplex Algorithm

A
  • Start at x=0 and check if there is a feasible area
  • Look for neighbor vertex with higher objective value and move to that vertex
  • Repeat
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Weak Duality + its implication

A

Any feasible point in the dual is an upper bound of any feasible point in the primal => if both have an optimum value, then it’s the same value

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

Primal and dual feasibility / unbounded relationship

A

If one if unbounded, the other is infeasible. If dual is infeasible, primal is either unbounded or infeasible

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

Strong Duality + implication

A

primal is feasible and bounded if and only if the dual is feasible and bounded => primal has an optimum if and only if dual has an optimum

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

How to convert an LP solution back to an ILP and what is the expected value?

A

Round each value of y using randomized rounding
If y=0.75, then round y to 1 with probability 0.75, and to 0 with probability 0.25

Expected value >= (1-1/e) m* where m* is the optimal value for the ILP

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

How can we use ILP/LP to get heuristics for NP-Hard problems?

A

Reduce NP-Hard to ILP
Relax to LP and solve

Do Randomized Rounding
=> Results in a feasible point and reasonable heuristic

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

3/4 approximation

A

Can use a combo of LP-Relaxation and Randomized Rounding method. Just perform both and pick the best value. Expected performance >= 3/4 m* where m* is the optimal solution

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