[Solved] CS471 Assignment1-Matrix Multiplication

$25

File Name: CS471_Assignment1-Matrix_Multiplication.zip
File Size: 367.38 KB

SKU: [Solved] CS471 Assignment1-Matrix Multiplication Category: Tag:
5/5 - (1 vote)

Matrix Multiplication: Write a matrix multiplication program. Matrices dimensions and values are taken as an input from user. Multiply the two matrices together then print the result to the console.

Note: Must use dynamic allocation.

Example:

Welcome to Matrix multiplication program!

Please enter dimensions of the first matrix: 3 2

Please enter its elements:

1 2

5 8

1 5

Please enter dimensions of the second matrix: 2 2

Please enter its elements:

6 8

10 30

Result Matrix is ( 3 x 2):

26 68 110

180 56 158

You will develop a parallel program of The matrix Multiplication using the Master-Slave Paradigm.

  1. Use send and receive to distribute the work on slaves.

Example for a parallel scenario (use the scenario you find suitable):

  1. Divide rows of 1st matrix across slaves and send to them the complete 2nd
  2. Divide rows of 1st matrix and columns of 2nd matrix across slaves.
  1. Handle the remainder workload with any scenario you find suitable.
  2. Matrix input is taken from the user.

Check if the two matrices can be multiplied first.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CS471 Assignment1-Matrix Multiplication
$25