1.

The number of scalar additions and subtractions used in Strassen’s matrix multiplication algorithm is ________(a) O(n^2.81)(b) Theta(n^2)(c) Theta(n)(d) O(n^3)This question was posed to me in semester exam.The origin of the question is Number Theory topic in portion Number Theory of Data Structures & Algorithms II

Answer»

Correct answer is (b) THETA(n^2)

EXPLANATION: Using Theta(n^2) scalar additions and subtractions, 14 matrices are computed each of which is n/2 X n/2. Then seven matrix products are computed RECURSIVELY.



Discussion

No Comment Found

Related InterviewSolutions