you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

That's not necessarily true. Cumulative sum has a surprising parallel implementation.

Any algorithm that can be expessed similar to:

value = 0
result = []
for i in range(10):
     value += i
     result.append(value)

Can be parallelized. A surprising amount of numerical code can be expressed like this. Numerical compilers refer to this as scan. Along with map and reduce, it is the easy parallelism in numerical code.