Please enable JavaScript.
Coggle requires JavaScript to display documents.
Divide-and-Conquer - Coggle Diagram
Divide-and-Conquer
-
Running time T (n):
-
f(n) counts for the time spent on dividing an instance
of size n into instances of size n/b and combining their solutions.
-
Merge Sort
-
Efficiency:
Key Comparisons
C(n) = 2C(n/2) + Cmerge(n) for n > 1, C(1) = 0.
Ex:
Compute the sum of n numbers a0,...,an−1
-