...
Question 7690 – Engineering-Mathematics
April 8, 2024
UGC NET CS 2014 Dec – paper-3
April 9, 2024
Question 7690 – Engineering-Mathematics
April 8, 2024
UGC NET CS 2014 Dec – paper-3
April 9, 2024

Question 7699 – Engineering-Mathematics


The following multithreaded algorithm computes transpose of a matrix in parallel:

p Trans (X, Y, N)

if N = 1

then Y[1, 1] ← X[1, 1]

else partition X into four (N/2) × (N/2) submatrices X11, X12,
X21, X22

partition Y into four (N/2) × (N/2) submatrices X11, X12,
X21, X22

spawn p Trans (X11, Y11, N/2)

spawn p Trans (X12, Y12, N/2)

spawn p Trans (X21, Y21, N/2)

spawn p Trans (X22, Y22, N/2)

What is the asymptotic parallelism of the algorithm?

Correct Answer: A

A
B
C
D
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x