Question: Setup The P - MATRIX - MULTIPLY - RECURSIVE procedure from chapter 2 6 . 2 must allocate a temporary matrix D of size n

Setup
The P-MATRIX-MULTIPLY-RECURSIVE
procedure from chapter 26.2 must allocate a temporary matrix D
of size n\times n
, which can adversely affect the constants hidden by the \Theta
-notation. The procedure has high parallelism, however: \Theta (n3/log2n)
. For example, ignoring the constants in the \Theta
-notation, the parallelism for multiplying 1000\times 1000
matrices comes to approximately 10003/102=107
, since log100010
. Most parallel computers have far fewer than 10 million processors.
Part A
Parallelize MATRIX-MULTIPLY-RECURSIVE
from chapter 4.1 without using temporary matrices so that it retains it \Theta (n3)
work.
TIP
Spawn the recursive calls, but insert a sync in a judicious location to avoid races.
Part B
Give and solve recurrences for the work and span of your implementation.
Part C
Analyze the parallelism of your implementation. Ignoring the constants in the \Theta
-notation, estimate the parallelism on 1000\times 1000
matrices. Compare with the parallelism of P-MATRIX-MULTIPLY-RECURSIVE
, and discuss whether the trade-off would be worthwhile.

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!