Question: ( 3 0 PTS . ) SCheduling Jobs on Supercomputers You're running a massive physical simulation, which can only be run on a supercomputer. You've

(30 PTS.) SCheduling Jobs on Supercomputers
You're running a massive physical simulation, which can only be run on a supercomputer. You've got access to two (identical) supercomputers, but unfortunately you have a fairly low priority on these machines, so you can only get time slots on them when they'd otherwise be idle. You've been given information about how much idle computing power is available on each supercomputer for each of the next \( n \) one-hour time slots: you can get \( a_{i}\) seconds of computation done on supercomputer \( A \) in the \( i \) th hour if your job is running on \( A \) at that point, or \( b_{i}\) seconds of computation if it running on supercomputer \( B \) at that point. During each hour your job can be scheduled on only one of the two supercomputers. You can move your job from one supercomputer to another at any point, but it takes an hour to transfer the accumulated data between supercomputers before your job can begin running on the new supercomputer, so a one-hour time slot will be wasted where you make no progress.
So you need to come up with a schedule, where for each one-hour time slot your job either runs on super- computer \( A \), runs on supercomputer \( B \), or "moves" (it switches which supercomputer it will use in the next time slot). If your job is running on supercomputer A for the \((i-1)\) th hour, then for the \( i \) th hour your only two options are to continue running on A or to "move." The value of a schedule is the total number of seconds of computation that you get done during the \( n \) hours. You want to find a schedule of maximal value. Design an efficient algorithm to find the value of the optimal schedule, given \( a_{1}, a_{2},\ldots a_{n}\) and \( b_{1}, b_{2},\ldots, b_{n}\).
( 3 0 PTS . ) SCheduling Jobs on Supercomputers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!