1.

What is the recurrence relation used in Strassen’s algorithm?(a) 7T(n/2) + Theta(n^2)(b) 8T(n/2) + Theta(n^2)(c) 7T(n/2) + O(n^2)(d) 8T(n/2) + O(n^2)This question was addressed to me during an interview for a job.My enquiry is from Number Theory in division Number Theory of Data Structures & Algorithms II

Answer»

Right choice is (a) 7T(n/2) + Theta(n^2)

To explain: The recurrence RELATION used in STRASSEN’s algorithm is 7T(n/2) + Theta(n^2) since there are only 7 recursive MULTIPLICATIONS and Theta(n^2) scalar additions and subtractions involved for computing the product.



Discussion

No Comment Found

Related InterviewSolutions