Does n means each processor holds n/np numbers or each processor holds n numbers? Also, what does n case mean? I think at least, each processor holds a array of n/np numbers, and each element is the sum of elements in all processors at beginning. Am I right?
I don’t understand the question. Are you talking about Q1?
In Q1a, each processor holds a number, and in the end
each processor has the sum of all numbers.
In Q1b, there are n numbers distributed among the p processors.
At the end each processor has the sum of all numbers.