知识卡片

普通读书笔记卡 · 3671.a.1

贪心调度至多比最优慢两倍

理解等级:中级

令 T₁ 为总工作量、T∞ 为最长依赖链、T_P* 为 P 个处理器上的最优调度时间。工作律和跨度律给出 T_P*≥max(T₁/P,T∞);贪心调度时间 T_P 满足

T_P≤T₁/P+T∞≤2·max(T₁/P,T∞)≤2T_P*。

因此贪心调度的运行时间不超过最优调度的 2 倍。这里的 2 来自“两项之和至多是较大项的两倍”,而不是假设两项相等。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第26章 并行算法 · 查看原书依据

      Corollary 26.2 The running time TP of any task-parallel computation scheduled by a greedy scheduler on a P-processor ideal parallel computer is within a factor of 2 of optimal. Proof Let T*P be the running time

    参考来源

    - 位置:《算法导论(第4版)》第26章《并行算法》(OEBPS/chapter026.xhtml,文本字符[30000,35000))。 - 结论依据:推论26.2结合工作律、跨度律及定理26.1。 - 原始内容:Corollary 26.2 The running time T P of any task-parallel computation scheduled by a greedy scheduler on a P -processor ideal parallel computer is within a factor of 2 of optimal. Proof Let T * P be the running time