知识卡片
扫描产生各位置的前缀结果
扫描又称前缀计算,输出每个位置之前所有输入项的结合结果,而非仅输出总值。
相邻前缀存在依赖,不能直接把串行循环改成并行循环;需重组依赖或分轮处理。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第26章 并行算法 · 查看原书依据
A related problem is that of computing a ⊗-scan, sometimes called a ⊗-prefix computation, on an array x[1 : n], where ⊗ is once again an associative operator. The ⊗-scan, implemented by the serial procedure SCAN, produces the array
参考来源
- 位置:《算法导论(第4版)》第26章《并行算法》(OEBPS/chapter026.xhtml,文本字符[85000,90000))。
- 结论依据:原文定义或分析相应的并行结构、复杂度及约束条件;内容补充了使用边界。
- 原始内容:A related problem is that of computing a ⊗ -scan , sometimes called a ⊗ -prefix computation , on an array x [1 : n ], where ⊗ is once again an associative operator. The ⊗-scan, implemented by the serial procedure S CAN , produces the array