For matrix multiplication, if we use divide and conquer algorithm, then ______ A. the running time is T(n)=Θ(n3) B. the running time is T(n)= Θ(n2 log n) C. The recurrence can be defined as T(n)=8T(n/2)+Θ(n2) D. the recurrence relation is T(n)= 8T(2n)+Θ(n2log n) E. Masters theorem, one of the cases is applicable Choose the most appropriate answer from the options given below:
A, C, E only
The simple divide-and-conquer matrix multiplication splits each n × n matrix into four n/2 × n/2 blocks and computes each block of the product as a sum of two block products, giving 8 recursive multiplications plus \(\Theta(n^{2})\) work for the block additions.
Step 1 — Recurrence: \(T(n) = 8T(n/2) + \Theta(n^{2})\), so C is correct. D is wrong: the subproblems are of size n/2, not 2n, and the combine cost is \(\Theta(n^{2})\), not \(\Theta(n^{2}\log n)\).
Step 2 — Master theorem: a = 8, b = 2, \(n^{\log_{b} a} = n^{\log_{2} 8} = n^{3}\). Since \(f(n) = \Theta(n^{2}) = O(n^{3-\epsilon})\) with \(\epsilon = 1\), case 1 applies, so E is correct.
Step 3 — Hence \(T(n) = \Theta(n^{3})\), so A is correct and B (\(\Theta(n^{2}\log n)\)) is wrong.
Every combination containing B or D includes a false claim; only the set of A, C and E is fully correct. (Strassen's method lowers the count to 7 products and gives \(\Theta(n^{\log_{2} 7})\), which is not what is described here.)
A, C, E only option is correct.
Which of the following is not a divide and conquer method
Which of the following is not a divide and conquer method