以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 算法理论与分析 』  (http://bbs.xml.org.cn/list.asp?boardid=60)
----  请教“Scheduling to minimize average completion time”问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=60&rootid=&id=60412)


--  作者:ablmf
--  发布时间:3/25/2008 1:00:00 PM

--  请教“Scheduling to minimize average completion time”问题
『算法导论』的作业16-2

Suppose you are given a set S = {a1, a2, ..., an} of tasks, where task ai requires pi units of processing time to complete, once it has started. You have one computer on which to run these tasks, and the computer can run only one task at a time. Let ci be the completion time of task ai , that is, the time at which task ai completes processing. Your goal is to minimize the average completion time, that is, to minimize .

……

Suppose now that the tasks are not all available at once. That is, each task has a release time ri before which it is not available to be processed. Suppose also that we allow preemption, so that a task can be suspended and restarted at a later time.  Give an algorithm that schedules the tasks so as to minimize the average completion time in this new scenario. Prove that your algorithm minimizes the average completion time, and state the running time of your algorithm.


--  作者:ablmf
--  发布时间:3/25/2008 1:01:00 PM

--  
这个问题的算法本身不难,可是我很久都不能想到证明算法正确的办法。
--  作者:represent
--  发布时间:3/26/2008 10:05:00 AM

--  
我觉得平均完成时间最小化,在ri=0,不可中断的调度问题中,就等于总完工时间最小化。可中断问题的一个特例是不可中断。说了好像没有说啊,水平有限
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
44.922ms