








































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









































1
2
Analyzing divide-and-conquer algorithms
For all , every path of recursion terminates in a defined base case within a finite number of recursive invocations. T ( n ) n 0
n < n 0 T ( n ) = Θ( 1 ) n ≥ n 0 5 Can consider the running time constant for small problem sizes. The recursive algorithm terminates.
Methods for solving recurrences
c ij = c ij
n ∑ k = 1 a ik ⋅ b kj i , j = 1,2,..., n A ⋅ B C 8
Simple divide-and-conquer algorithm
n > 1 A B C n / 2 × n / 2 A = (
11
12 A 21
22
11
12 B 21
22
11
12 C 21
22
10
Simple divide-and-conquer algorithm
Idea
Example of reducing multiplications
Analysis
) O ( n 3 ) 19