2.2 Interval correctness proof Flashcards

1
Q

Steps to prove correctness

A
  1. Express mathematically (and prove this)
  2. Using mathematical definition prove correct set
  3. Using mathematical definition prove maximum set
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the mathematical definition for the greedy internal algorithm

A

Input R

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

How to prove that the mathematical definition for interval scheduling is equal to the psuedo-code

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

How to prove the mathematical defintion for interval scheduling outputs a compatible set

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

How to prove the mathematical defintion for interval scheduling outputs a maximum set (greedy stays ahead method)

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

Steps for greedy stays ahead arguments

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

What is the premise of greedy stays ahead arguments

A

This proof works by showing that, according to some measure, the greedy algorithm always is at least as far ahead as the optimal solution during each iteration of the algorithm. Once you have established this, you can then use this fact to show that the greedy algorithm must be optimal.

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

What is the premise for exchange arguments

A

They work by showing that you can iteratively transform any optimal solution into the solution produced by the greedy algorithm without changing the cost of the optimal solution, thereby proving that the greedy solution is optimal.

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

What are the steps for exchange arguments (greedy algorithms)

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

How does the exchange proof work for interval scheduling

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