Quote
No. The domain is defined to be binary strings. The solution is linear for all finite lists of binary elements.
Essentially what it is doing is counting the number of 1's, you are correct. So starting at index = 1, ..., n, use a threshold function. Each threshold function can be executed in parallel, so all of those occur in one time step. However, additional space is required to execute each threshold function in parallel. It's a space-time tradeoff, which is accomplished with a parallel prefix.

New Topic/Question
Reply






MultiQuote





|