Question: 0 . Question 1 0 Question 5 ( b ) ( ii ) Consider a vector of doubles of size N located at process 0
Question
Question bii
Consider a vector of doubles of size N located at process root in a system with P processors. A scatter algorithm distributes the vector in pieces of size NP to each process in the group in the order of their ranks. The piece at distance iNP from the start of the array, should go to the process with rank i where i P Assume NP Let K be the number of bytes per element in the vector.
b How would the communication cost change if we used a binary tree arrangement of processes rooted at The root of each subtree extracts its data, sends the data meant for processes in the left subtree to its left child, and sends the data meant for processes in the right subtree to its right child. The recursion is terminated when the size of the tree is ie at the leaves Derive an expression for completion time of this algorithm.
If you assume that a process cannot send to both children simultaneously, what will be the completition time for the algorithm?
Let log be log Note that you can use floor and ceiling to represent the floor and ceiling functions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
