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
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
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
4
Q
What is the recursive psuedocode for weighted interval scheduling?
A