10.1 Weighted Interval Scheduling Flashcards

1
Q

What is weighted interval scheduling?

A
  • Interval scheduling but with a weight function
  • Maximise total weight (intstead of interval count)
  • Means greedy algorithm is no longer effective
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 3 steps of dynamic programming?

A
  • Step 1: Exponential recursive solution (find optimal substructure - often based on YES NO choices - 2 cases)
  • Step 2: Make it such that there is repeated work (which can be stored)
  • Step 3 (optional): Make it itterative using table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the idea behind constructing a recursive version of interval scheduling?

A
  • For interval I, it is either in the set or not, so recurse on both cases
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the recursive psuedocode for weighted interval scheduling?

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