Solution of T(n) = 2T(n/2) + 2 Recurrence Relation By Substitution Method | Algorithms

preview_player
Показать описание
Learn stap by step
Solution of T(n) = 2T(n/2) + 2 Recurrence Relation By Substitution Method with detailed and conceptual clarity. It is most important part of the divide and conquer algorithm for finding maximum and minimum among elements.
As the solution can be O(n) but exact order of magnitude is way more important for solving many application problems directly.

#algorithms #substitutionmethod #recurrencerelation

Рекомендации по теме
Комментарии
Автор

Hello, as a person who cannot understand this solution anywhere else, your detailed explanation makes EVERYTHING clear. I have found so many places that says the result is 3n/2 -2 but when I do it myself I never get that. You explained this very well and I thank you very much.

lppofthepool
Автор

How would we calculate the complexity if the tree is balanced ? Would the result change (because it is suppose to be logn, right ?)

emirhandemir