Question: The attached template has a 2 - dimensional array of 2 5 6 numbers. The problem is to find the minimum value in the array,

The attached template has a 2-dimensional array of 256 numbers. The problem is to find the minimum value in the array, the first occurrence location (row, col) of the minimum value, and the count the number of times it occurs.
In order to parallelize the computation, check for the minimum in each row in parallel. Then consolidate the results from each parallel computation making sure to lock appropriately so that the minimum and its occurrences are correctly combined.
The correct output should be displayed as:
array minimum is 1.5E+000, first occurs at (1,11) and occurs 6 times
NUMBER OF PROCESSORS USED: 17

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!