Masters Theorem
Masters Theorem
(Reading Material)
Master’s Method or Master’s Theorem is a direct way to get the solution for a
recursive code’s Time Complexity. Master’s theorem works only for the following
type of recurrences or for recurrences that can be transformed into the following
type :
Case 2 : If work done at leaves and root is asymptotically the same, then our result
becomes height multiplied by work done at any level
Case 3 : If work done at the root is asymptotically more, then our result becomes
work done at the root