Sorting Flashcards

1
Q

Master theorum for T(n) = aT(n/b) + f(n)

A

if f(n) = theta(n^d), where d >= 0,
T(n) = theta(n^d) if a < b^d
T(n) = theta(n^d logn) if a = b^d
T(n) = theta(n^log b a) if a > b^d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly