D
D
Denis Karakchiev2015-06-04 02:48:51
Mathematics
Denis Karakchiev, 2015-06-04 02:48:51

Can anyone give a good example of parallelization for first order linear recursion?

And you can also leave me with links, I will also be glad and grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Smirnov, 2015-06-11
@Satori_Kanzo

Judging by what the internets say, recursion is linear and first order recursion is the same thing, namely recursion with one call (i.e. without branching).
Accordingly, such a recursion is essentially a cycle written as a recursion.
The loop can be parallelized if the calculated values ​​do not depend on the previous iterations of the loop (or at least part of them)
As a variant of the example: map on a multithreading collection (that is, a parallelized map
) .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question