Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

0 . Question 1 0 Question 5 ( b ) ( ii ) Consider a vector of doubles of size N located at process 0

0.
Question 10
Question 5(b)(ii)
Consider a vector of doubles of size N located at process 0(root), in a system with P processors. A scatter algorithm distributes the vector in pieces of size N/P to each process in the group in the order of their ranks. The piece at distance i*N/P from the start of the array, should go to the process with rank i, where i =0,..., P 1. Assume N%P ==0. 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 0? 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 1(i.e. 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 log2. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

=+ a. a family deciding whether to buy a new car

Answered: 1 week ago

Question

=+10. How are inflation and unemployment related in the short run?

Answered: 1 week ago