Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started