知识卡片
并行循环跨度含对数调度深度
n次迭代的并行循环若以二分派生实现,跨度为Θ(log n)加上最慢迭代的跨度;
即便各次迭代独立,建立并行任务仍有递归深度成本。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第26章 并行算法 · 查看原书依据
Since the depth of recursion is logarithmic in the number of iterations, the parallel loop’s span is T∞(n) = Θ(lg n) + max {iter∞(i) : 1 ≤ i ≤ n}. For example, let’s compute the span of the doubly nested
参考来源
- 位置:《算法导论(第4版)》第26章《并行算法》(OEBPS/chapter026.xhtml,文本字符[40000,45000))。
- 结论依据:26.1节给出并行循环跨度公式与矩阵向量示例。
- 原始内容:Since the depth of recursion is logarithmic in the number of iterations, the parallel loop’s span is T ∞ ( n ) = Θ(lg n ) + max { iter ∞ ( i ) : 1 ≤ i ≤ n }. For example, let’s compute the span of the doubly nested