A More Parallel Solution
Exploit the associativity of addition ...
Number processors 0 to n/2-1
Processor Pi adds x2P+1 and x2(P+1) ...
s1,2
s3,4
s5,6
s7,8
s1-4
s5-8
s1-8
P0
P1
P2
P3
P0 does
log n + 1
additions
Previous slide
Next slide
Back to first slide
View graphic version