Chapter 4: Problem 21
Consider procedure schedule in the Scheduling with Deadlines algorithm (Algorithm 4.4). Let \(d\) be the maximum of the deadlines for \(n\) jobs. Modify the procedure so that it adds a job as late as possible to the schedule being built, but no later than its deadline. Do this by initializing \(d+1\) disjoint sets, containing the integers \(0,1, \ldots, d\) Let \(\operatorname{small}\) ( \(\mathrm{S}\) ) be the smallest member of set \(\mathrm{S}\). When a job is scheduled, find the set \(S\) containing the minimum of its deadline and \(n\). If small \((S)=0,\) reject the job. Otherwise, schedule it at time \(\operatorname{small}(S),\) and merge \(S\) with the set containing small \((S)-1 .\) Assuming we use Disjoint Set Data Structure III in Appendix \(C\). show that this version is \(\theta(n \lg m)\), where \(m\) is the minimum of \(d\) and \(n\)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.