知识卡片

普通读书笔记卡 · 3628

平均完成时间衡量任务排序

理解等级:初级

任务调度的平均完成时间,是每项任务完成时刻的算术平均。

即使处理总量相同,先执行长任务也可能推迟多个短任务的完成时刻,使这个指标变大;不可抢占与带释放时间、可抢占属于不同约束版本。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《算法导论(第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.