Hello I am trying to get the efficiency for Strassen’s algorithm but need some help.
The recurrence relation for the algorithm is the following:
A(n) = 7A(n/2)+18(n/2)^2, for n>1, A(1) = 0.
I’ve solved it to the point where I have
a(n) = 6( 7^(log base(2) n) - 4^(log base(2) n) )
Does this mean the efficiency of the algorithm is O( 7^log(n) ) ?
Yes and no.
As you’ve found,
where the
4^(log2 n)can be discarded, and 6 is just a constant factor, sowhich is similar to what you get. However, the base 2 here is important because it affects the exponent: