[General boards] [Winter 2021 courses] [Fall 2020 courses] [Summer 2020 courses] [Older or newer terms]

A1 Q1b n means what


#1

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?


#2

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.