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

Leave a Reply

Your email address will not be published. Required fields are marked *