Problem:
Running time of Strassen's matrix multiplication algorithm: Suppose that the running time of an algorithm is governed by the recurrence T(n)=7∗T(n/2)+n2 .What′stheoverallasymptoticrunningtime(i.e.,thevalueof T(n) $)?
Solution:
Applying master theorem, we have the variables a=7,b=2,d=2, and we have the 7=a>bd=4 case, therefore the answer is θ(nlog27)
Running time of Strassen's matrix multiplication algorithm: Suppose that the running time of an algorithm is governed by the recurrence T(n)=7∗T(n/2)+n2 .What′stheoverallasymptoticrunningtime(i.e.,thevalueof T(n) $)?
Solution:
Applying master theorem, we have the variables a=7,b=2,d=2, and we have the 7=a>bd=4 case, therefore the answer is θ(nlog27)
No comments:
Post a Comment