Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions