知识卡片

普通读书笔记卡 · 3673.a.4

并行归并维持线性工作量

理解等级:高级

每层虽多做一次二分,但两条递归分支合计至多覆盖其余n−1个元素,且分割比例有界。把每层搜索代价计入递归式,整体工作量仍为线性,避免以缩短跨度换来超线性工作。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      Now let’s verify that the work T1(n) of P-MERGE-AUX on n elements is linear. A lower bound of Ω(n) is straightforward, since each of the n elements is copied from array A to array B. We’ll show that T1(n) = O(n) by

    参考来源

    - 位置:《算法导论(第4版)》第26章《并行算法》(OEBPS/chapter026.xhtml,文本字符[75000,80000))。 - 结论依据:原文定义或分析相应的并行结构、复杂度及约束条件;内容补充了使用边界。 - 原始内容:Now let’s verify that the work T 1 ( n ) of P-M ERGE -A UX on n elements is linear. A lower bound of Ω( n ) is straightforward, since each of the n elements is copied from array A to array B . We’ll show that T 1 ( n ) = O ( n ) by