edited by
1,287 views
0 votes
0 votes
Professor Caesar wishes to develop a matrix-multiplication algorithm that is asymptotically faster than Strassen’s algorithm. His algorithm will use the divide and conquer method, dividing each matrix into pieces of size $n/4 *n/4$,and the divide and combine steps together will take $\Theta(n^2)$ time. He needs to determine how many subproblems his algorithm has to create in order to beat Strassen’s algorithm. If his algorithm creates $a$ subproblems, then the recurrence for the running time $T(n)$ becomes $T(n)=aT(n/4)+\Theta(n^2)$.What is the largest integer value of $a$ for which Professor Caesar’s algorithm would be asymptotically faster than Strassen’s algorithm?
edited by

1 Answer

0 votes
0 votes

Strassen's Matrix Multiplication Recurrence:

$T(n) = 7T(n/2) + n^{2}$ = $n^{\log_{2}7}$

 

Given $T(n)=aT(n/4)+Θ(n2)T(n)=aT(n/4)+Θ(n2)$ = $n^{\log_{4}a}$

For Professor Caesar’s algorithm to be asymptotically faster than Strassen’s algorithm

-> $n^{\log_{4}a}$ $<$  $n^{\log_{2}7}$

-> ${\log_{4}a}$ $<$  ${\log_{2}7}$

solving above equation we get $a$ $<$ $49$ , hence largest value of $a = 48$

Related questions

0 votes
0 votes
1 answer
2
akash.dinkar12 asked Apr 5, 2019
286 views
Can the master method be applied to the recurrence $T(n)=4T(n/2)+n^2\ lg\ n$ ?Why or why not? Give an asymptotic upper bound for this recurrence.
0 votes
0 votes
0 answers
3
akash.dinkar12 asked Apr 5, 2019
253 views
Use the master method to show that the solution to the binary-search recurrence $T(n)=T(n/2) + \Theta(1)$ is $T(n)=\Theta(lg\ n)$.
0 votes
0 votes
0 answers
4