Design an algorithm to find the sum of n numbers in parallel using 2-D mesh interconnection work (Assume p processors are available, and the original list is on Processor 0). Write the pseudocode, and then analyze the execution time (including communication time and computation time), and calculate the speedup. Please draw the picture to explain the algorithm as well if you think it is necessary.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
**Design an Algorithm for Parallel Summation Using 2-D Mesh Interconnection**

*Objective:* Develop an algorithm to compute the sum of \( n \) numbers in parallel using a 2-D mesh network architecture. Assume there are \( p \) processors available with the initial list located on Processor 0. After designing the algorithm, analyze both the execution time, which includes communication and computation time, and calculate the speedup.

*Instructions:*

1. **Pseudocode Development:** Start by creating a pseudocode that outlines the steps necessary for the parallel sum computation. This should detail how data is distributed, processed, and results are gathered.

2. **Analyze Execution Time:**
   - **Communication Time:** Consider the data transfer times between processors in the 2-D mesh network.
   - **Computation Time:** Account for the time taken by each processor to perform the sum computations.

3. **Calculate Speedup:** Determine the efficiency of your parallel algorithm by calculating speedup, which is the ratio of the time taken by the best-known serial algorithm to the time taken by your parallel algorithm.

4. **Diagram Creation:** If necessary, illustrate the algorithm with a diagram. This can help in visualizing the data distribution across processors and the flow of computations and communications.

This task involves both theoretical analysis and practical algorithm design, preparing learners to handle complex parallel computing challenges.
Transcribed Image Text:**Design an Algorithm for Parallel Summation Using 2-D Mesh Interconnection** *Objective:* Develop an algorithm to compute the sum of \( n \) numbers in parallel using a 2-D mesh network architecture. Assume there are \( p \) processors available with the initial list located on Processor 0. After designing the algorithm, analyze both the execution time, which includes communication and computation time, and calculate the speedup. *Instructions:* 1. **Pseudocode Development:** Start by creating a pseudocode that outlines the steps necessary for the parallel sum computation. This should detail how data is distributed, processed, and results are gathered. 2. **Analyze Execution Time:** - **Communication Time:** Consider the data transfer times between processors in the 2-D mesh network. - **Computation Time:** Account for the time taken by each processor to perform the sum computations. 3. **Calculate Speedup:** Determine the efficiency of your parallel algorithm by calculating speedup, which is the ratio of the time taken by the best-known serial algorithm to the time taken by your parallel algorithm. 4. **Diagram Creation:** If necessary, illustrate the algorithm with a diagram. This can help in visualizing the data distribution across processors and the flow of computations and communications. This task involves both theoretical analysis and practical algorithm design, preparing learners to handle complex parallel computing challenges.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Dynamic Multithreading
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education