## Array sum using OpenMP in logn time

We know that the sum of the array can be calculated in O(n) run time. But can you compute the sum of the array in log n time? The answer would be yes. You can find the sum of an array in log n time. I will explain how you can write the parallel code …