Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a vector of doubles of size N located at process 0 ( root ) , in a system with P processors. A scatter algorithm

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_2

Step: 3

blur-text-image_3

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

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

Understand the role of internal marketing and communications.

Answered: 1 week ago