知识卡片
平均完成时间衡量任务排序
任务调度的平均完成时间,是每项任务完成时刻的算术平均。
即使处理总量相同,先执行长任务也可能推迟多个短任务的完成时刻,使这个指标变大;不可抢占与带释放时间、可抢占属于不同约束版本。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第15章 贪心算法 · 查看原书依据
Let Ci be the completion time of task ai, that is, the time at which task ai completes processing.
参考来源
- 位置:《算法导论(第4版)》第15章《贪心算法》(OEBPS/chapter015.xhtml,文本字符[65000,70000);Art_P505)。
- 结论依据:问题15-2 令 Cᵢ 为任务完成时刻,Art_P505 写平均值 (1/n)ΣCᵢ;题目(a)限制不可抢占,(b)加入释放时间并允许抢占,两个版本需分别求解。
- 原始内容:Let C i be the completion time of task a i , that is, the time at which task a i completes processing.
- 补充摘录(不可抢占):Each task must run nonpreemptively, that is, once task a i starts, it must run continuously for p i units of time until it is done.
- 补充摘录(释放时间与可抢占):Suppose now that the tasks are not all available at once. That is, each task cannot start until its release time b i . Suppose also that tasks may be preempted , so that a task can be suspended and restarted at a later time.