Develop parallel version of factorial calculation program

Assignment Help Computer Engineering
Reference no: EM133177938

Question: Consider the scenario of distributed memory as given in below requirements:

Requirement # 1: The processor 0 compute the factorial of the input number and returns the answer to processor 1.

Requirement # 2: The communication between processor 0 and 1 is blocking.

Requirement # 3: The computed result is printed first at processor 0 and then the received answer is printed at processor 1.

a. Develop parallel version of factorial calculation program for distributed memory using MPI. The sequential version is given below to start with.

b. Also, comment on how will you develop the parallel version?

#include<stdio.h>

void main(){

int i, f=1, num;

printf(" input the number");

scanf("%d",&num);

for( i=1; i<=num;i++)

f=f*i;

printf("the factorial of %d is: %dn",num,f);

}

Reference no: EM133177938

Questions Cloud

Identify another recent business takeover : Identify another recent business takeover of your choice(from any sector).Outline the case and explainwhy there may have been different issues in that case
Prepare the journal entries for the transactions : Prepare the journal entries for the above transactions. It is not necessary to use control accounts and subsidiary ledgers. Prepare closing entries for year-end
Explain your methods and justify your assumptions : Explain your methods and justify your assumptions for forecast performance under new ownership. You should append 2 screenshotsfrom aspreadsheet model
Prepare the adjusting journal entries on june : On March 1, 2021 the business bought Office furniture for $5,000. Prepare the adjusting journal entries on June 30, 2021
Develop parallel version of factorial calculation program : Develop parallel version of factorial calculation program for distributed memory using MPI. The sequential version is given below to start with
What objections are you most likely to get : You are responsible for booking events at Premier Hotel, a five-star hotel. What objections are you most likely to get
What commands might you look for : What commands might you look for and When attacker C2 traffic is visible and stands out the most in network traffic, this is referred to as using
What shall we gain : We want to switch to a 4 year 8% bond with a market rate of 6%. What shall we gain if we act on our expectation, and it transpires
How much can mike and rose deduct : Mike and Rose are married and file jointly. Mike earns $45,000 from wages and Rose reports $450 of net profits. How much can Mike and Rose deduct

Reviews

Write a Review

Computer Engineering Questions & Answers

  Develop a simple android application

NIT6120 - Mobile Applications - Victoria University - Develop a simple Android application that uses multiple activities, which are related using Intents

  Explain the stages of data supported decision making process

List and explain the stages of the Data Supported Decision Making Process. Provide examples of the activities found in each stage.

  Discuss the mass-spring system

If a mass m is placed at the end of a spring, and if the mass is pulled downward and released, the mass-spring system will begin to oscillate.

  Computer graphics make a comparison between vector graphics

make a comparison between vector graphics and raster graphics display system and justify your

  Define the specific implementation matrix for each level

In Week 1, you discussed GIG, Inc.'s benefits and concerns with moving to the cloud. In Week 2, you created a high-level diagram of a system using built-in AWS.

  What is meant by failover time

What is meant by failover time? What are the two types of technology that support metropolitan area networks?

  The module review questions listed below these questions

1.answer the module review questions listed below. these questions were chosen to demonstrate your understanding and

  What was the most difficult concept for you to understand

Review this week's lecture presentation. What was the most difficult concept for you to understand? What additional resources on the topic have you been able.

  Compute the parameters of black-sholes model

Using historical data for the five companies and assuming that the strike price K is lower than current stock price by 2 dollars and then risk free rate is 3%, find the following. The value of a 5-year call option price written on those stocks. Fi..

  What is the probability of getting exactly k heads

What is the probability of getting exactly k heads on n tosses, where coin has a probability of p in coming up heads on each toss? What about k or more heads?

  How much time you expect to put into this class

Transferring a Document to Another Computer Time Required: 15 minutes Objective: Create a document and copy it to your instructor's computer.

  Define the advantages of the following types

define the advantages of the following types.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd