how to find complexity of an algorithm based on recurrence relation?
Answers
Answered by
1
By Master Theorem :-
It's often possible to compute the time complexity of a recursive function by formulating and solving a recurrence relation.
Master theorem
T(n) = Θ(nd) if a < bd,
T(n) = Θ(ndlog n) if a = bd,
T(n) = Θ(nlogba) if a > bd.
Answered by
0
By Master Theorem:
It's often possible to compute the time complexity of a recursive function by formulating and solving a recurrence relation.
Master Theorem
T(n)= (nd) if a <bd,
T(n)= (ndlog n) if a=bd
T(n)= (nlogba) if a>bd.
Similar questions
Physics,
4 months ago
India Languages,
4 months ago
Social Sciences,
8 months ago
Math,
8 months ago
Math,
1 year ago
Computer Science,
1 year ago