title: How to fill an array in parallel in C
body: <p>I need an algorithm that could fill an array(of size n) with the same value, in log(n) time, in parallel. it means that the naive solution would be <code>for(i=0;i&lt;=n-1;i++)</code> <code>T[i] = 10</code> is not enough because it takes <code>O(n)</code> time, I need something that could take <code>O(log(n))</code>. It is very important that I mention that this is to be done in PARALLEL. I was thinking about a dependancy, but I cannot seem to figure it out.</p>