online advertising
Loading [MathJax]/jax/output/HTML-CSS/jax.js

Wednesday, November 25, 2015

Algorithms: Design and Analysis, Part 1 - Exam Question 19

Problem:

Running time of Strassen's matrix multiplication algorithm: Suppose that the running time of an algorithm is governed by the recurrence T(n)=7T(n/2)+n2 .Whatstheoverallasymptoticrunningtime(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