for relationship
T (n) = T (n-1) + T (n / 2) + n
can I first solve the term (T (n-1) + n) that gives O (n ^ 2), then solve the term T (n / 2) + O (n ^ 2)?
according to the main theorem, which also gives O (n ^ 2), or is it false?
algorithm complexity-theory time-complexity recurrence master-theorem
adnanmuttaleb
source share