Master Method: Difference between revisions
Jump to navigation
Jump to search
[Next in Algorithms] [Next in Algorithm Complexity]
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Recursive_Algorithms_Complexity#The_Master_Method_.28Master_Theorem.29|Recursive Algorithms Complexity]] | |||
=Overview= | =Overview= | ||
Revision as of 17:24, 20 September 2021
Internal
Overview
The master method is a method of analyzing running time of recursive algorithms by using the "master theorem". The master theorem applies to algorithms whose running times can be expressed as a recurrence equation. A generic form of a recurrence equation is:
T(n) = a⋅T(n/b) + f(n)
where a ≥ 1, b > 1 and f(n) is a function that approximates the non-recursive cost. Note that the above expression does include a boundary condition for n = 1. The reasons is that T(1) does not significantly change the solution to the recurrence, it may change it with a constant factor, but the order of growth will stay unchanged.
TODO CLRS page 93.
TODO integrate after class:
Integrate class https://www.coursera.org/learn/algorithms-divide-conquer/lecture/HkcdO/formal-statement